Repository navigation
docs(rfc): RFC-0008 — SSH certificate authentication - #95
Conversation
Resolves the #41 gap (a Phase-2 mitigant named in threat-model §5.3.2 but undesigned). Fixes three decisions: 1. Native OpenSSH cert format (*[email protected], tracking draft-ietf-sshm-cert); X.509 rejected on commitment #4 (ASN.1 surface on the pre-auth path). 2. The CA signing key is BOUND to RFC-0006's composite ML-DSA+Ed25519 target and its two gates — a CA key is higher-value than any single host key (one forgery = universal impersonation), so it gets the highest bar. The format may ship earlier with an Ed25519 CA (same live-only asymmetry), flipping to composite when the gates fire. 3. Short-lived certificates are the primary revocation story; KRL is a bounded, opt-in, SSHSIG-signed add-on, not a launch requirement. Trust anchoring via cert-authority-in-authorized_keys (the config-file surface is Phase 2). New audit fields (serial, key id, CA fingerprint, principal) land via a superseding ADR-0024. Verification stays in the userauth type-state stage — no accept-and-branch. threat-model §5.3.2 now points at RFC-0008. Status: Draft. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
|
I've completed my review of PR adding RFC-0008. Here are the findings, anchored to project rules. Review: RFC-0008 — SSH Certificate AuthenticationFinding 1 (Medium-High): RFC-0008 references non-existent RFC-0007 as if it existsLocation: Three references point to
Rule violated: CLAUDE.md — "Do not reference files or paths that do not exist yet as if they do; mark planned work (Phase 2+) as TBD." Compounding issue: The concept attributed to RFC-0007 ("ADR supersession mechanics") belongs to the ADR process (ADR-0015's errata mechanism + ADR README's rule that accepted ADRs are superseded, not edited), not to a cryptographic-migration RFC. RFC-0006's Future Possibilities scopes RFC-0007 as "a general cryptographic-primitive migration procedure" — not ADR governance. Conflating these is a design confusion. Fix: Either create RFC-0007 before merging RFC-0008, or replace the three forward-references with direct citations to ADR-0015 / the ADR README for supersession rules, and mark the "live-only exposure class" concept as TBD or cite threat-model §6.1 directly (which already describes the live-only asymmetry). Finding 2 (Low): Unverifiable factual premise —
|
| # | Severity | Finding |
|---|---|---|
| 1 | Medium-High | Non-existent RFC-0007 referenced as authoritative; ADR mechanics misattributed |
| 2 | Low | draft-ietf-sshm-cert WG-adoption claim should be verified before acceptance |
Overall assessment: The RFC is well-structured, aligns with all five MANIFIESTO commitments, and correctly frames the type-state, fail-closed, and pre-auth-surface concerns. Finding 1 should be resolved before this RFC is accepted — it's the only blocking issue. Finding 2 is a verification gate for the acceptance decision.
There was a problem hiding this comment.
Pull request overview
Adds a new design RFC for Phase-2 SSH user certificate authentication and wires the threat model’s Phase-2 “short-lived certificates” mitigant to that RFC, clarifying the intended format, CA posture, and revocation strategy without introducing code changes.
Changes:
- Add RFC-0008 documenting the design for OpenSSH-format user certificate authentication (Phase 2).
- Update
docs/threat-model.mdto reference RFC-0008 from §5.3.2.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/threat-model.md | Updates the stolen-private-key mitigant reference to point at the new RFC-0008. |
| docs/rfcs/0008-ssh-certificate-authentication.md | New RFC defining the Phase-2 certificate auth design (format choice, CA key posture, revocation approach). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
copilot on #95: - Status Draft → Accepted (thesis approved: native cert format, CA bound to RFC-0006, short-lived-primary revocation). - Made the Implementation-PR reference a proper internal anchor. (The RFC-0007 links the reviewers flagged as dangling resolve once #93 lands on main, ahead of this PR in the merge order.) Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
|
Here is my review of PR #95 adding RFC-0008. Review: RFC-0008 — SSH Certificate AuthenticationFinding 1 (Medium): Non-existent RFC-0007 referenced as authoritative — still unresolved after "review fixes" commitLocation: Three references to
Rule violated: CLAUDE.md:155–156: "Do not reference files or paths that do not exist yet as if they do; mark planned work (Phase 2+) as TBD." Design confusion compounding the issue: RFC-0006's Future Possibilities (§ line 253–255) scopes RFC-0007 as "a general cryptographic-primitive migration procedure" — not ADR supersession mechanics. ADR supersession rules are already authoritative in The "review fixes" commit (f7f4952) fixed the Copilot-flagged Fix: Replace the three forward-references with direct citations to existing documents: Finding 2 (Low): Status prematurely set to "Accepted" before mergeLocation: The second commit changed Fix: Revert to Finding 3 (Pass): threat-model.md change is cleanThe change at Alignment with MANIFIESTO and threat modelThe RFC's design decisions are sound against all five commitments:
Type-state (verification stays in userauth stage, no accept-and-branch), fail-closed (reject zero-length principal, reject unrecognised critical options), and audit-schema concerns are all correctly framed. Summary
Finding 1 should be resolved before merge — it's the only blocking issue. Finding 2 is a process nit but self-correcting on merge. The design itself is well-constructed. |
Review: RFC-0008 — SSH Certificate AuthenticationFinding 1 (Medium): Status prematurely set to "Accepted"Location: Rule violated: RFC README, §"How the process works" lines 83–93 — a 14-day comment period is required before acceptance, and acceptance happens on merge, not via an in-file edit mid-review. The RFC was created and marked Accepted the same day (2026-07-01), the PR is still open, and no explicit maintainer shortening statement exists on the PR. Fix: Revert to Verification gate (Low):
|
| Prior finding | Status | Reason |
|---|---|---|
| RFC-0007 doesn't exist (dangling references) | Resolved | RFC-0007 merged via PR #93 (commit b2450e5). The live-only exposure class and supersession mechanics RFC-0008 cites are present in that file. |
§"Reference-level explanation" link syntax |
Fixed | Commit f7f4952 corrected it to a proper [§Reference-level explanation](#reference-level-explanation) markdown link. |
| threat-model.md cross-reference | Pass | Clean, minimal, relative link resolves. |
Design soundness (pass)
The RFC is well-constructed against all five MANIFIESTO commitments and threat-model rules:
- Rejects X.509 on ASN.1 surface grounds (commitment chore(security): mark quantumssh.org aliases as live #4)
- Binds CA key to RFC-0006's composite PQ posture (commitment chore(security): publish project PGP key #2)
- Type-state machine preserved — no accept-and-branch
- Fail-closed on zero-length principal and unrecognised critical options
- All file references resolve (RFC-0003, RFC-0006, RFC-0007, ADR-0024)
Summary
| # | Severity | Finding |
|---|---|---|
| 1 | Medium | Status set to Accepted before comment period and merge |
| — | Low (gate) | draft-ietf-sshm-cert WG-adoption should be verified at acceptance |
Finding 1 is the only action item. The design itself has no issues.
|
Security gap (type check) fixed in the latest commit — both enumerations now reject host-type certs. On the two process points:
|
claude-review: the validation enumerations named CA-signature, validity, principal, and critical-options but omitted the certificate TYPE check. A host-type cert (type=2) whose valid-principals happened to contain a username would pass every named check — OpenSSH enforces the type match for exactly this reason. Added "certificate type MUST be user; host-type rejected" to both the guide-level and reference-level enumerations, consistent with the RFC's fail-closed posture. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
Review: RFC-0008 — SSH Certificate AuthenticationResolved from prior roundsThe three substantive findings from earlier reviews are now addressed:
Finding 1 (Low):
|
| Item | Precedent |
|---|---|
Status: Accepted pre-merge |
RFC-0005/0006/0007 all land on main with Accepted set; the merge is the act. Consistent. |
| Three "sub-decisions" in one RFC | RFC-0006 bundled target + gates + backstop into one signature-posture decision. The README explicitly permits this: "If a proponent feels that two decisions must go together, they are probably the same decision." Consistent. |
| 14-day comment period | Not observed for any prior RFC. Sole-maintainer, pre-alpha project. Consistent. |
Design soundness (pass)
The RFC is well-constructed against all five MANIFIESTO commitments:
- chore(security): publish project PGP key #2 (PQ-by-default): CA key bound to RFC-0006 composite; Ed25519 interim justified by harvest-now asymmetry
- Generate and publish project PGP key for SECURITY.md #3 (zero legacy): X.509 explicitly rejected; native format only
- chore(security): mark quantumssh.org aliases as live #4 (small surface): ASN.1 surface rejected; KRL opt-in/bounded; short-lived primacy avoids state
- Type-state: Verification stays in userauth stage, no accept-and-branch
- Fail-closed: Zero-length principal rejected, unrecognised critical options rejected, type check enforced
Summary
| # | Severity | Finding |
|---|---|---|
| 1 | Low | draft-ietf-sshm-cert WG-adoption claim — verify before acceptance |
| — | Resolved | RFC-0007 references, type check, link syntax all fixed |
| — | Precedent | Status/comment-period/scope follow RFC-0005/0006/0007 pattern |
No blocking findings. The design itself has no issues.
claude-review (one-decision-per-RFC): the RFC bundled three separable decisions (format / CA posture / revocation), each with its own alternatives — so an objection to one blocked all three, the exact failure the scope rule prevents. Per the lead's call, reframed as a single shape-determining decision — "adopt SSH certificate authentication in Phase 2" — with format/CA/revocation presented as the recommended *shape* (design sub-choices), each finalised in an implementing ADR that can be revised without re-opening the adopt/defer decision. Rationale section now runs one decision (adopt/defer/never) + sub-choices, not three parallel analyses. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
Review: RFC-0008 — SSH Certificate AuthenticationAll prior findings resolved
WG-adoption claim: verified
Process items: follow established precedent
Design soundness (pass)
SummaryNo blocking findings. All substantive issues from prior reviews are addressed. The design is well-constructed against all five MANIFIESTO commitments and threat-model rules. |
Resolves #41.
Designs the Phase-2 certificate auth the threat model names in §5.3.2. Three decisions:
*[email protected], trackingdraft-ietf-sshm-cert). X.509 rejected on commitment chore(security): mark quantumssh.org aliases as live #4 (ASN.1 surface on the pre-auth path).Trust anchoring via
cert-authorityinauthorized_keys(config-file surface is Phase 2). New audit fields via a superseding ADR-0024 (RFC-0007 mechanics). Verification stays in the userauth type-state stage — no accept-and-branch.threat-model.md§5.3.2 now points at RFC-0008.Docs-only. Status: Draft. Last of the #86-scoping follow-ups. Scopes user certificates; host certs deferred.
https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o