Skip to content

docs(rfc): RFC-0008 — SSH certificate authentication - #95

Merged
gonzafg2 merged 5 commits into
mainfrom
docs/rfc-0008-cert-auth
Jul 2, 2026
Merged

gonzafg2 merged 5 commits into
mainfrom
docs/rfc-0008-cert-auth

Conversation

@gonzafg2

@gonzafg2 gonzafg2 commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Resolves #41.

Designs the Phase-2 certificate auth the threat model names in §5.3.2. Three decisions:

  1. Native OpenSSH cert format (*[email protected], tracking draft-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).
  2. CA signing key bound to RFC-0006 — the composite ML-DSA+Ed25519 target + its two gates. A CA key is higher-value than any single host key (one forgery = universal impersonation), so it earns the highest bar. The format may ship earlier with an Ed25519 CA (same live-only asymmetry — a cert signature is only forgeable at validation time), flipping to composite when RFC-0006's gates fire.
  3. Short-lived certificates primary (time replaces revocation); KRL opt-in, bounded, SSHSIG-signed — not a launch requirement.

Trust anchoring via cert-authority in authorized_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

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]>
Copilot AI review requested due to automatic review settings July 2, 2026 01:01
@opencode-agent

opencode-agent Bot commented Jul 2, 2026

Copy link
Copy Markdown

I've completed my review of PR adding RFC-0008. Here are the findings, anchored to project rules.


Review: RFC-0008 — SSH Certificate Authentication

Finding 1 (Medium-High): RFC-0008 references non-existent RFC-0007 as if it exists

Location: docs/rfcs/0008-ssh-certificate-authentication.md:139, :187-189

Three references point to 0007-cryptographic-primitive-migration-procedure.md, which does not exist in the repository:

Line 139: "per the RFC-0007 supersession mechanics"

Lines 187-189: "RFC-0007 (the live-only exposure class the CA key falls in, and the supersession mechanics the audit-schema change follows)"

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 — draft-ietf-sshm-cert WG adoption

Location: docs/rfcs/0008-ssh-certificate-authentication.md:74-75, :181

The RFC states as fact that draft-ietf-sshm-cert is "WG-adopted." The format decision (native OpenSSH cert over X.509) and the alignment claim ("aligned with the ADR-0020 client and the WG track") rest on this premise. If the draft has not been WG-adopted, the factual basis for rejecting X.509 in favor of this specific IETF track weakens.

Note: The draft URL resolves to the IETF datatracker. Since this is a Draft RFC, this should be verified before the RFC is flipped to Accepted. Not a merge-blocker for the Draft, but a gate for acceptance.


Summary

# 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.

github run

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md to 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]>
@opencode-agent

opencode-agent Bot commented Jul 2, 2026

Copy link
Copy Markdown

Here is my review of PR #95 adding RFC-0008.


Review: RFC-0008 — SSH Certificate Authentication

Finding 1 (Medium): Non-existent RFC-0007 referenced as authoritative — still unresolved after "review fixes" commit

Location: docs/rfcs/0008-ssh-certificate-authentication.md:139, :187-189

Three references to 0007-cryptographic-primitive-migration-procedure.md, which does not exist in the repo:

  • L139: "per the RFC-0007 supersession mechanics"
  • L188–189: "RFC-0007 (the live-only exposure class the CA key falls in, and the supersession mechanics the audit-schema change follows)"

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 docs/adr/README.md:83–100 and ADR-0015. The "live-only exposure class" concept is already in threat-model §6.1 and RFC-0006 §Summary. Attributing both concepts to a non-existent RFC-0007 misallocates existing project authority and creates a broken dependency chain.

The "review fixes" commit (f7f4952) fixed the Copilot-flagged §"Reference-level explanation" link syntax — but left this substantive dangling-reference issue unaddressed. Both Copilot and opencode-agent flagged it.

Fix: Replace the three forward-references with direct citations to existing documents: docs/adr/README.md / ADR-0015 for supersession rules, and threat-model §6.1 / RFC-0006 for the live-only exposure asymmetry. If RFC-0007 is genuinely planned to cover these topics, mark the references as TBD until the file exists.


Finding 2 (Low): Status prematurely set to "Accepted" before merge

Location: docs/rfcs/0008-ssh-certificate-authentication.md:3

The second commit changed Status: Draft → Status: Accepted (2026-07-01) while the PR remains open. The RFC README (§ line 83–86) requires a 14-day comment period before acceptance; the RFC was created and marked Accepted the same day. Per the RFC process (README line 87–93), acceptance happens on merge, not via an in-file Status edit in a mid-review commit. This creates a self-contradiction: the file claims Accepted, but the PR is still in review with unresolved findings.

Fix: Revert to Status: Draft and let the merge act constitute acceptance.


Finding 3 (Pass): threat-model.md change is clean

The change at docs/threat-model.md:893 replacing "a Phase 2 feature behind RFC" with "a Phase 2 feature designed in RFC-0008" is minimal, correct, and uses a relative link that will resolve once the RFC is merged. No issues.


Alignment with MANIFIESTO and threat model

The RFC's design decisions are sound against all five commitments:

  • Commitment 1 (memory-safety): N/A (docs-only), but the design correctly scopes cert parsing as bounded/fuzzable pre-auth work
  • Commitment 2 (PQ-by-default): Binds the CA key to RFC-0006's composite ML-DSA+Ed25519 posture — the highest bar for the highest-value key
  • Commitment 3 (zero legacy): Explicitly rejects X.509 and all legacy formats
  • Commitment 4 (small surface): Rejects X.509 on ASN.1 surface grounds; KRL is opt-in and bounded; short-lived certs as primary avoids revocation-list state
  • Commitment 5 (permanently open): Clean Apache-2.0 posture

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

# Severity Finding
1 Medium Dangling RFC-0007 references + design misattribution (supersession/live-only live elsewhere)
2 Low Status prematurely set to Accepted before merge and comment period
3 Pass threat-model.md cross-reference is clean

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.

github run

@gonzafg2

gonzafg2 commented Jul 2, 2026

Copy link
Copy Markdown
Owner Author

The RFC-0007 links resolve once #93 lands on main — this PR is merged after #93 in the batch order. Resolving the link threads on that basis.

@opencode-agent

opencode-agent Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review: RFC-0008 — SSH Certificate Authentication

Finding 1 (Medium): Status prematurely set to "Accepted"

Location: docs/rfcs/0008-ssh-certificate-authentication.md:3:

- **Status:** Accepted (2026-07-01)

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 Status: Draft and let the merge act constitute acceptance.


Verification gate (Low): draft-ietf-sshm-cert WG-adoption claim

Location: Lines 75, 181. The format decision (native OpenSSH cert over X.509) rests on the premise this draft is WG-adopted. This is an external fact unverifiable from the repo. Not a merge blocker for a Draft — but a gate the acceptance decision should verify.


Resolved from prior reviews

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:

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.

github run

@gonzafg2

gonzafg2 commented Jul 2, 2026

Copy link
Copy Markdown
Owner Author

Security gap (type check) fixed in the latest commit — both enumerations now reject host-type certs.

On the two process points:

  • Status=Accepted: consistent with the established pattern — RFC-0005/0006/0007 were all merged with Accepted set in their accepting PR; per README §6 the merge is the act of acceptance, and the field records the state that lands on main.
  • One decision per RFC: RFC-0008 makes a single shape-determining decision — how QuantumSSH does certificate auth — of which the format choice, the CA-key posture, and the revocation story are facets, exactly as RFC-0006 bundled target + gates + backstop into the one signature-posture decision. Not separable without fragmenting one decision.

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]>
@opencode-agent

opencode-agent Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review: RFC-0008 — SSH Certificate Authentication

Resolved from prior rounds

The three substantive findings from earlier reviews are now addressed:

  • RFC-0007 dangling references — RFC-0007 lives at docs/rfcs/0007-cryptographic-primitive-migration-procedure.md (merged via docs(rfc): RFC-0007 — cryptographic-primitive migration procedure #93). Both citations resolve.
  • Certificate type check — The guide-level explanation (L57) and reference-level enumeration (L132) both now include type == user; host-type certs rejected.
  • §"Reference-level explanation" link syntax — Corrected to a working anchor.

Finding 1 (Low): draft-ietf-sshm-cert WG-adoption claim — unverifiable gate

Location: docs/rfcs/0008-ssh-certificate-authentication.md:76, :183

The format decision (native OpenSSH cert over X.509) and the alignment claim ("aligned with the ADR-0020 client and the WG track") rest on the premise draft-ietf-sshm-cert is WG-adopted. This is an external fact — correct or not, it's unverifiable from the repo.

Rule violated (gate): CLAUDE.md's "No mock, stub, or placeholder code" principle extends by analogy to factual claims underpinning design decisions. Not a merge-blocker for Draft, but a gate the acceptance decision must verify.

Process items (not blocking — follow established precedent)

Both were flagged by earlier reviewers. Against RFC-0005/0006/0007 precedent:

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:

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.

github run

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]>
@opencode-agent

opencode-agent Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review: RFC-0008 — SSH Certificate Authentication

All prior findings resolved

Prior finding Resolution
RFC-0007 dangling references RFC-0007 merged (#93). Both citations resolve — live-only class at RFC-0007 §1, supersession mechanics at RFC-0007 §2.
Certificate type check absent Fixed at L58–60 (guide-level) and L134 (reference-level) — both enumerate type == user; host-type certs rejected.
§"Reference-level explanation" link syntax Corrected to a working markdown anchor.

WG-adoption claim: verified

draft-ietf-sshm-cert is listed as Active Internet-Draft (sshm WG) with WG state: WG Document on the IETF datatracker. The draft-ietf- namespace prefix confirms WG adoption. The factual basis for the format decision stands.

Process items: follow established precedent

  • Status: Accepted pre-merge — RFC-0005, 0006, and 0007 all landed on main with Accepted set. Consistent.
  • One decision per RFC — RFC-0008 frames itself as a single decision ("adopt SSH certificate authentication") with sub-choices that are "the shape of a single feature." Matches RFC-0006's pattern of bundling target + gates + backstop into one "signature posture" decision. The README escape hatch applies: "if they must go together, they are probably the same decision."

Design soundness (pass)

Summary

No blocking findings. All substantive issues from prior reviews are addressed. The design is well-constructed against all five MANIFIESTO commitments and threat-model rules.

github run

@gonzafg2
gonzafg2 merged commit 75524a2 into main Jul 2, 2026
11 checks passed
@gonzafg2
gonzafg2 deleted the docs/rfc-0008-cert-auth branch July 2, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

design: no RFC for SSH certificate authentication (named Phase 2 deliverable in threat model)

2 participants