fix(security): enforce sk-* UP and UV flags once russh exposes the signature
メンテナーはふだん 1 日以内に返信
@inureyes がすでに取り組んでいます。
2026年11月5日 から。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
Read docs/UPSTREAM_PR_RUSSH.md and inspect russh’s server/encrypted.rs and src/server/handler.rs to understand the signature handoff; the upstream API change and release are prerequisites. Then trace src/server/auth/publickey.rs and the security key signature code, starting with tests that encode signatures. Done means the real auth flow enforces UP and UV as specified, tests cover both key types and flag failures, and the two security docs are updated.
索引モデルが issue の本文から書いたものです。
説明
Depends on #338.
Problem
After #338, bssh-server accepts an [email protected] or [email protected] user key only when its authorized_keys line has no-touch-required and lacks verify-required, because bssh cannot read the signature's flags byte. OpenSSH accepts the other lines too, enforcing user presence (UP, flag 0x01) unless no-touch-required is set and user verification (UV, flag 0x04) when verify-required is set.
Current Behavior
- russh 0.64.1
server/encrypted.rs:1060-1074runsVerifier::verify, then callshandler.auth_publickey(user, key)with the key only, sosrc/server/handler.rs:349never sees the signature. - ssh-key's sk verifiers (
signature.rs:456-490) authenticateSHA256(app) || flags || counter || SHA256(msg)but do not test the flags. The flags byte is the 5th-to-last byte of the decoded signature (flags || u32 countertrailer).
Proposed Solution
- Propose an upstream russh change that passes the verified
Signature(or its sk flags) to the server handler, for example aHandlermethod called after verification with(user, key, signature)whose default delegates toauth_publickey. Record the proposal indocs/UPSTREAM_PR_RUSSH.md. - Once a russh release contains it, bump
russhinCargo.toml. - In
src/server/auth/publickey.rs, for sk keys requireflags & 0x01unless the matching line hasno-touch-required, andflags & 0x04when it hasverify-required. Replace #338's fail-closed rejection with this check.
Acceptance Criteria
- Upstream proposal filed and recorded in
docs/UPSTREAM_PR_RUSSH.md; russh bumped to a release containing it. - UP required by default and relaxed only by
no-touch-required. - UV required when
verify-requiredis set. - Enforced in the real
auth_publickeyflow;docs/security.mdanddocs/openssh-compatibility-status.mdupdated. - Tests sign with
encode_signature(src/ssh/security_key/signature.rs) or fixed vectors, cover both key types, and each fails when its flag check is removed.
Verification
cargo test server::auth
cargo clippy --all-targets -- -D warnings
- 主要言語
- Rust
- スター
- 71
- フォーク
- 7
- 平均マージ
- 4時間 51分
- マージ済み PR(30日)
- 14
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
lablup/bssh のほかの issue
-
feat(ssh): add webauthn-sk host-key support対応中かも @inureyes が 24 日前に担当しました。 オープンpriority:low status:blocked type:enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
fix(security): verify the server host key presented on re-key対応中かも @inureyes が 24 日前に担当しました。 オープンpriority:low status:blocked type:security
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
feat(agent): bind destination-constrained agent keys with [email protected]対応中かも @inureyes が 24 日前に担当しました。 オープンpriority:medium status:blocked type:enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
perf(sftp): adopt the russh-sftp borrowed write API in upload dispatch対応中かも @inureyes が 24 日前に担当しました。 オープンpriority:medium status:backlog type:performance
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
feat: Implement real-time streaming output with interactive multi-node UI対応中かも @inureyes が 396 日前に担当しました。 オープンpriority:medium status:backlog type:enhancement
メンテナーはふだん 1 日以内に返信
似ている issue
-
area:ui effort:medium enhancement P7 source:agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
documentation priority: low tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
nledford/Ladderback#1823 ·
メンテナーはふだん 1 日以内に返信
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)対応中かも @ealwanlee が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
psmux/psmux-plugins#47 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
メンテナーはふだん 1 日以内に返信