feat(agent): bind destination-constrained agent keys with [email protected]
メンテナーはふだん 1 日以内に返信
@inureyes がすでに取り組んでいます。
2026年11月5日 から。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
Read docs/openssh-compatibility-status.md and upstream russh PR #794 to understand the dependency boundary and required binding data. Then inspect the agent authentication path and the agent-restrict regression harness; work can begin once a released russh version exposes the binding API. Done means both binding modes are covered and agent-restrict passes on Linux and macOS.
索引モデルが issue の本文から書いたものです。
説明
Problem / Background
Follow-up to #314. The pinned OpenSSH V_10_3_P1 regress test agent-restrict still fails on both CI platforms. After #314 the phases that do not need destination constraints pass: authentication w/o agent (including the certificate hosts host_d and host_e, which needed host-certificate verification), authentication with agent (no restrict), unrestricted keylist, authentication with agent incorrect key (basic restrict), username incorrect, agent restriction honours certificate principal, multihop without agent, multihop agent unrestricted, multihop wrong username, multihop cycle no agent, multihop cycle agent unrestricted, and multihop cycle restricted deny.
The phases that still fail are exactly the ones where a destination-constrained key must be usable: authentication with agent (basic restrict), keylist (basic restrict), username, username wildcard, multihop restricted, multihop username, multihop wildcard username, and multihop cycle restricted allow. Each fails with SSH agent authentication error: Agent failure because the agent refuses to sign with a constrained key for a client that has not sent [email protected].
Upstream dependency
Sending [email protected] requires the exact negotiated host key or host certificate blob, the initial key-exchange session ID, and the server's key-exchange signature, plus a per-connection binding mode (direct authentication versus a forwarded agent connection). russh 0.64.1 does not expose that tuple to the client handler. The upstream proposal is russh PR #794 (https://github.com/Eugeny/russh/pull/794), still open. Per the dependency boundary in docs/openssh-compatibility-status.md, only an immutable merged upstream revision followed by a crates.io release may be consumed; no fork or contributor branch.
Proposed Solution
- When russh ships the binding API, send
[email protected]to the agent before listing identities, with the certificate blob when one was negotiated, the initial session ID (never a rekeyed one), and the forwarding flag set for forwarded agent connections. - Keep constraints intact: never drop or rewrite agent constraints to make authentication succeed.
- Re-run
tests/openssh-regress/run.py --test agent-restricton Linux and macOS.
Reproduction
python3 tests/openssh-regress/run.py --test agent-restrict --results /tmp/agent-restrict.json. On hosts where the regress directory path is longer than sockaddr_un allows, the agent socket cannot be created and the verdict is environmental; run the script through a short symlinked OBJ directory to reach the failing phases.
Acceptance Criteria
-
agent-restrictpasses on Linux and macOS CI with the pinnedV_10_3_P1harness. - Destination-constrained identities are bound with the negotiated host key or certificate, the initial session ID, and the correct forwarding mode; a regression test exercises both binding modes.
- The dependency is a released russh version (or an immutable merged upstream revision as a temporary measure), recorded in
docs/openssh-compatibility-status.md.
- 主要言語
- 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): enforce sk-* UP and UV flags once russh exposes the signature対応中かも @inureyes が 24 日前に担当しました。 オープンpriority:medium status:blocked type:security
難易度 5/5 1週間以上 初心者へのやさしさ 35/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 日以内に返信
-
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 日以内に返信