feat(agent): bind destination-constrained agent keys with [email protected]
Les mainteneurs répondent en général sous 1 jour
@inureyes y travaille déjà.
Depuis le 5/11/2026.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Rust
- Étoiles
- 71
- Forks
- 7
- Merge moyen
- 4 h 51 min
- PR mergées (30 j)
- 14
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de lablup/bssh
-
feat(ssh): add webauthn-sk host-key supportPeut-être pris @inureyes l’a pris il y a 24 jours. Ouvertepriority:low status:blocked type:enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
lablup/bssh#345 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
fix(security): enforce sk-* UP and UV flags once russh exposes the signaturePeut-être pris @inureyes l’a pris il y a 24 jours. Ouvertepriority:medium status:blocked type:security
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
lablup/bssh#340 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
fix(security): verify the server host key presented on re-keyPeut-être pris @inureyes l’a pris il y a 24 jours. Ouvertepriority:low status:blocked type:security
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
lablup/bssh#336 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
perf(sftp): adopt the russh-sftp borrowed write API in upload dispatchPeut-être pris @inureyes l’a pris il y a 24 jours. Ouvertepriority:medium status:backlog type:performance
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
lablup/bssh#323 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
feat: Implement real-time streaming output with interactive multi-node UIPeut-être pris @inureyes l’a pris il y a 396 jours. Ouvertepriority:medium status:backlog type:enhancement
lablup/bssh#68 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de lablup/bssh
Issues similaires
-
area:ui effort:medium enhancement P7 source:agent
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
marketing
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Read a requested CodeRabbit PR review's findings with `coderabbit pullrequest --show-threads`Ouvertedocumentation priority: low tech-debt
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
nledford/Ladderback#1823 ·
Les mainteneurs répondent en général sous 1 jour
-
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)Peut-être pris @ealwanlee l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
psmux/psmux-plugins#47 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 87/100
Les mainteneurs répondent en général sous 1 jour