Skip to content

docs(rfc): RFC-0010 — TOML configuration file - #112

Merged
gonzafg2 merged 6 commits into
mainfrom
rfc/0009-configuration-file
Jul 18, 2026
Merged

gonzafg2 merged 6 commits into
mainfrom
rfc/0009-configuration-file

Conversation

@gonzafg2

@gonzafg2 gonzafg2 commented Jul 7, 2026 •

Copy link
Copy Markdown
Owner

Agrega RFC-0010 (Draft) — el workstream keystone de Phase 2 (la nota de scoping lo identifica como lo que destraba todo lo demás).

Renumerado de 0009 → 0010: el PR #96 (abierto desde el 2-jul) ya reclama el 0009 para la enmienda zero-legacy. Le cedo el número al reclamante con antigüedad.

La decisión (una sola, shape-determining)

Adoptar un archivo de configuración TOML como interfaz de configuración de QuantumSSH desde Phase 2 — la superficie que el README ya nombra ("TOML, not sshd_config"). Define la forma:

  • Schema-versioned (schema_version desde v1): hace sobrevivible el freeze de 0.1.0, cuando el schema se vuelve contrato público (mismo freeze de ADR-0021/0024).
  • Fail-closed en dos frentes: claves desconocidas → error de arranque (atrapa el typo en config de seguridad); permisos inseguros (writable por otros) → refuse-to-start estilo StrictModes, extendido a los archivos de confianza referenciados.
  • Cargado una vez al arranque, nunca pre-auth — input confiable (§4.4), no parser de red.
  • Precedencia CLI > config > default, flags de Phase 1 retenidos como override.

Qué destraba

Es el hogar extensible que tres documentos ya aceptados difieren acá: el slot trusted_user_ca_keys de RFC-0008, la política env de ADR-0023, los rate-limits per-source de ADR-0022, y las secciones key→UID/PAM/rlimit que Phase 3 necesita.

Disciplina de gobernanza

  • Una decisión por RFC: las claves exactas, el set de flags CLI retenidos y el crate de TOML se dejan a ADRs implementadores, no empaquetados acá.
  • Ancla el permission-check en un mandato existente: §5.5.3 ya exige refuse-to-start ante host key world-readable; el RFC lo generaliza a writability de todo archivo de confianza.
  • Argumenta contra sí mismo en Drawbacks (nuevo parser + dependencia, el freeze del schema, el costo del fail-closed en forward-compat).

Roadmap issue: #109. Per el proceso RFC, período de comentarios de ≥14 días antes de merge; se decide por lazy consensus.

Part of #109

https://claude.ai/code/session_017JuwgCHx6Uv5E13g1BHAud

Adds RFC-0009 (Draft), the keystone Phase-2 workstream: one
shape-determining decision — adopt a TOML configuration file as
QuantumSSH's configuration interface from Phase 2. Sets the shape
(schema-versioned, fail-closed on unknown keys and insecure
permissions, restart-time-loaded, operator-trusted, CLI>config>default
precedence) and reserves the extensible home the deferred surfaces
plug into: RFC-0008's trusted_user_ca_keys slot, ADR-0023's env
policy, ADR-0022's per-source limits, and the Phase-3 privsep
key->UID/PAM/rlimit sections.

Grounds the permission check in the existing threat-model §5.5.3
world-readable refuse-to-start mandate (generalised to writability
of every trusted file the config names) and §4.4 config integrity.
Exact keys, retained CLI flags, and the TOML crate are left to
implementing ADRs per the one-decision-per-RFC discipline.

Part of #109.

Claude-Session: https://claude.ai/code/session_017JuwgCHx6Uv5E13g1BHAud
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2 gonzafg2 added the rfc Request for comments / design proposal label Jul 7, 2026
Copilot AI review requested due to automatic review settings July 7, 2026 02:14
@gonzafg2 gonzafg2 added the rfc Request for comments / design proposal label Jul 7, 2026
@opencode-agent

opencode-agent Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review: RFC-0009 — TOML configuration file

Verdict: Approve. One design observation, no blocking findings.


Findings

1. StrictModes generalization extends the letter of §5.5.3 (non-blocking)

The RFC (line 133–136) anchors the writability-check-on-all-trusted-files rule on threat-model §5.5.3, which mandates refuse-to-start for world-readable host keys only. The RFC generalizes this to writability (the integrity threat) and extends it to every file the config references — CA trust files, authorized_keys, etc.

This is correct engineering: an attacker-writable config is worse than an attacker-readable one (§4.4 config integrity). But the RFC should acknowledge that the generalization is new policy, not a mechanical restatement of §5.5.3. The implementing ADR should close this gap by citing RFC-0009 as the authority for the writability extension, not §5.5.3 alone.

2. All cross-references are valid and correctly anchored (positive)

The RFC grounds every section in existing authoritative documents that demonstrably defer their configuration surface here:

  • ADR-0023 Consequences line 61: env policy "revisited with the config work in Phase 2" ✓
  • ADR-0022 line 41: rate-limits and half-open caps "land with Phase 2" ✓
  • RFC-0008 §Trust-anchoring: defers TrustedUserCAKeys to "the Phase-2 config RFC" ✓
  • RFC-0007 §Reference-level explanation line 145: explicitly warns against "over-generalizing … a config surface that does not exist" ✓

3. Config is correctly sited outside the highest-trust surface (positive)

The RFC (lines 99–101, 126–128) explicitly places config parsing in the synchronous startup path, not on the pre-auth wire path. This respects the §4.1/§4.4 boundary separation and means the bounded-allocation/fuzzable mandate of §4.1 does not bind the TOML parser with equal force. The implementing ADR must preserve this property: config parsing must never drift into the per-connection hot path.

4. Schema versioning mirrors ADR-0021/ADR-0024 freeze discipline (positive)

The schema_version from v1 (lines 50, 140) correctly parallels the one-way 0.1.0 freeze that already binds the negotiation profile (ADR-0021) and the audit-log schema (ADR-0024). The fail-closed rule — refuse-to-start on a newer schema_version the binary doesn't understand — is the correct posture for a security config.


Classification summary

Rule Finding
Threat model §4.4 (config integrity) Fail-closed permission checks are well-motivated; §5.5.3 generalization should be acknowledged as extension
MANIFIESTO #4 (small surface) New TOML-crate dependency acknowledged as cost; crate selection deferred to implementing ADR with cargo deny gating — correct discipline
CLAUDE.md: one decision per RFC Maintained — decides that + shape; exact keys, crate, and flag set are implementing-ADR territory
Threat model §4.1 (pre-auth surface) Config correctly sited in startup path, never pre-auth; implementing ADR must preserve this boundary
ADR-0021/0024 (one-way freeze) schema_version from v1 is the correct mechanism to make the freeze survivable

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 RFC-0009 (Draft) to define the shape-determining decision that QuantumSSH will adopt a schema-versioned, fail-closed TOML configuration file as the primary configuration surface starting in Phase 2, with documented precedence (CLI > config > default) and strict permission validation for trusted files.

Changes:

  • Introduces a new RFC describing the TOML config file interface, schema-versioning, and fail-closed parsing/permissions model.
  • Documents intended config sections (server, auth, limits, logging, session) and how they relate to existing ADR/RFC requirements.
  • Captures key operational/security failure modes (unknown keys, unsupported schema versions, insecure permissions).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/rfcs/0010-configuration-file.md Resolved
Comment thread docs/rfcs/0010-configuration-file.md Resolved
Comment thread docs/rfcs/0010-configuration-file.md Resolved
PR #96 (open since 2026-07-02) already claims RFC-0009 for the
zero-legacy-moving-frontier amendment. Yield the number to the
senior claimant and take 0010 for the configuration-file RFC; the
process assigns numbers by merge order, but two live 0009 drafts are
needlessly confusing.

Part of #109.

Claude-Session: https://claude.ai/code/session_017JuwgCHx6Uv5E13g1BHAud
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2 gonzafg2 changed the title docs(rfc): RFC-0009 — TOML configuration file docs(rfc): RFC-0010 — TOML configuration file Jul 7, 2026
@opencode-agent

opencode-agent Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review: RFC-0010 — TOML configuration file

Verdict: Approve with comments. Three findings, one blocking.


Findings

1. Permission-check shape fails to satisfy §5.5.3 (blocking)

The RFC (line 136) defines the fail-closed permission check as "owner-writable-only" and states it "generalises" §5.5.3. But §5.5.3 mandates refuse-to-start when the host-key file is world-readable — a confidentiality check, not an integrity check. A host private key with mode 0644 (world-readable but not world-writable) would pass "owner-writable-only" while violating the threat model's explicit requirement. The implementing ADR must add a separate readability check for the host private key, distinct from the writability check on config/trust files. The RFC should acknowledge this split rather than claiming the generalization covers both.

Anchored to: Threat model §5.5.3, CLAUDE.md "Key material is never exposed."

2. RFC number is inconsistent across title, filename, and body (non-blocking)

PR title calls it RFC-0009. The file is 0010-configuration-file.md. The RFC body says "RFC 0010" (line 1). Since RFC-0008 is the highest existing RFC, one of these is wrong — the file should likely be 0009-configuration-file.md to match the PR and the sequential numbering. Resolve before merge.

3. accept_env = ["LC_*"] example implies wildcard matching without a decision (non-blocking, forward-looking)

Line 87 shows a glob LC_* in the illustrative config example, but the unresolved-questions section (line 283) correctly defers the exact grammar. The implementing ADR must decide whether accept_env items are exact-match or pattern-match — a wildcard in a security allowlist is a different surface from a string literal, and this RFC's example shouldn't create an expectation either way without a decision.


Positive confirmations

  • All cross-references verifiably point to documents that defer their config surface to Phase 2: ADR-0023 line 61, ADR-0022 line 41, RFC-0008 §Trust-anchoring, RFC-0007 line 25. Valid.
  • One-decision-per-RFC discipline maintained: decides that + shape, defers exact keys, crate, and flags to implementing ADRs (CLAUDE.md "RFC vs ADR vs plain PR").
  • Config correctly sited in startup path, never pre-auth: respects §4.1/§4.4 boundary (CLAUDE.md "pre-authentication path is the highest-trust surface").

Classification summary

Rule Finding
Threat model §5.5.3 "owner-writable-only" alone does not satisfy the world-readable host-key check; split needed
CLAUDE.md "Hard security rules" Key material exposure via lax file permissions is not fully covered by writability check alone
RFC numbering convention Title/body/filename inconsistent (0009 vs 0010)
MANIFIESTO #4 (small surface) TOML crate acknowledged as cost, deferred to implementing ADR with cargo deny — correct discipline

github run

Comment thread docs/rfcs/0010-configuration-file.md Resolved
Comment thread docs/rfcs/0010-configuration-file.md Resolved
gonzafg2 added 2 commits July 6, 2026 22:37
…dentiality

Review (claude[bot] + Copilot): Property 3 collapsed two orthogonal
controls into one and, by framing the check as writability 'rather
than only readability', silently dropped the threat-model §5.5.3
world-readable-host-key mandate — a mode-0644 host key would have
passed. Split them explicitly across the guide-level, reference-level,
and failure-modes sections:

- Integrity (writability): config + every trusted file it names must
  be owner-writable-only (§4.4). The RFC's contribution — generalise
  it to every referenced trust file.
- Confidentiality (readability): the private host key must also be
  owner-readable-only. The existing §5.5.3 mandate, carried over
  unchanged, NOT replaced by the writability check.

The host key is subject to both. Also qualify the two bare
'commitment #4' references as 'MANIFIESTO commitment #4' (Copilot),
matching RFC-0007's style.

Part of #109.

Claude-Session: https://claude.ai/code/session_017JuwgCHx6Uv5E13g1BHAud
Signed-off-by: Gonzalo Fleming <[email protected]>
Review (claude[bot]): the Motivation claimed three documents 'defer
their configuration to the Phase-2 config file', listing ADR-0022 as
the third — but ADR-0022 never mentions a config file; it defers the
per-source rate-limit FEATURE to Phase 2's concurrent accept loop,
and that text is in its Decision section, not Consequences. Only
RFC-0008 and ADR-0023 explicitly name the config file. Reword to
separate the feature deferral from the config deferral (matching the
RFC's own Summary phrasing) and fix the section anchor to §Decision,
here and in the schema-shape table.

Part of #109.

Claude-Session: https://claude.ai/code/session_017JuwgCHx6Uv5E13g1BHAud
Signed-off-by: Gonzalo Fleming <[email protected]>
@opencode-agent

opencode-agent Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review: RFC-0010 — TOML configuration file

Verdict: Approve with minor comments. The two previous blocking findings (permission-check shape conflating integrity with confidentiality, and unqualified "commitment #4" references) are resolved in the current revision. Two non-blocking observations remain.


Findings

1. ADR-0022 is mischaracterized as "explicitly deferring configuration" — and the section reference is wrong (non-blocking)

Lines 36–41 claim three documents "explicitly defer their configuration to 'the Phase-2 config file'", listing ADR-0022 as the third with a §Consequences citation. This is inaccurate:

  • Content: ADR-0022 defers the rate-limit feature to Phase 2 ("lands with Phase 2" at Decision line 40), not its configuration to a config file. It never mentions a config file. Only RFC-0008 and ADR-0023 do.
  • Section reference: The rate-limit deferral is in the Decision section (line 40), not Consequences.

The RFC's own Summary (line 24) correctly distinguishes the ADR-0022 case — "lands with Phase 2" vs "defers to config" — creating an internal inconsistency. The same §Consequences citation reappears in the schema table at line 174.

Anchored to: CLAUDE.md "one decision per RFC" — the implementing-ADR authors use these cross-references. Overstating them misleads about the source of authority.

Suggested fix: Replace lines 36–41 with wording that separates the two cases:

Two already-accepted documents explicitly defer their configuration to "the Phase-2 config file" that does not yet exist (RFC-0008 §Trust-anchoring; ADR-0023 §Consequences). A third — ADR-0022 §Decision — defers the rate-limiting feature itself to Phase 2's concurrent accept loop; that feature will need configuration here.

And bump the table reference at line 174 from §Consequences to §Decision.

2. RFC-0009 is skipped without in-file explanation (hygiene, non-blocking)

The repo has RFCs 0001–0008 and now 0010. The reason for the skip is in the PR body only (PR #96 claims 0009 for a zero-legacy amendment). A brief footnote or a (RFC 0009 is reserved — see issue #…) line in the file would help future readers who don't have the PR body available.


Addressed from previous reviews

Previous finding Status
§5.5.3 readability check collapsed into writability (blocking) Resolved — lines 136–151 now split into integrity (writability) and confidentiality (readability), with the explicit mode-0644 counterexample
"Commitment #4" without source document Resolved — now reads "MANIFIESTO commitment #4" (lines 187, 260)
RFC number inconsistent (0009 vs 0010) Resolved — renumbered to 0010 across title, body, and filename

Positive confirmations

  • Cross-references to RFC-0008, ADR-0023, ADR-0021, ADR-0024, and RFC-0007 are correctly anchored to documents that verifiably defer their configuration/policy surface to Phase 2.
  • Permission-check shape (§Property 3, lines 136–151) now satisfies threat-model §5.5.3 with two orthogonal controls; mode-0644 host key is an explicit failure.
  • One-decision-per-RFC discipline maintained: decides that + shape (schema-versioned, fail-closed, precedence), defers exact keys, crate, and CLI flags to implementing ADRs.
  • Config correctly sited in startup path (lines 99–101, 131–134), respecting the §4.1/§4.4 boundary.
  • TOML crate dependency acknowledged as cost, gated behind cargo deny in an implementing ADR — correct per MANIFIESTO chore(security): mark quantumssh.org aliases as live #4.
  • All referenced files (docs/plans/phase2-scoping.md, docs/plans/phase3-privsep-scoping.md) exist.

github run

@opencode-agent

opencode-agent Bot commented Jul 7, 2026

Copy link
Copy Markdown

Now I have a complete picture. Let me trace the resolution of prior review findings against the current file text.


Review: RFC-0010 — TOML configuration file

Verdict: Approve. All three prior review findings are resolved in the current text. One minor observation on cross-reference formatting.


Resolution of prior findings

Finding 1 (permission checks — was blocking). Resolved. The RFC now explicitly defines two orthogonal controls at lines 138–153: integrity (writability) on config/trust files + confidentiality (readability) on the host private key per §5.5.3. The Failure modes list (lines 199–201) enumerates both. A mode-0644 host key correctly fails. The §5.5.3 mandate is carried over unchanged, not replaced.

Finding 2 (ADR-0022 mischaracterization). Resolved. Lines 39–43 now separate the claim into two categories: two documents (RFC-0008, ADR-0023) that explicitly defer configuration; a third (ADR-0022) that defers the feature to Phase 2 and "will need its configuration here." The §Decision citation is correct (the deferral text is at ADR-0022 line 41 in the Decision section).

Finding 3 (RFC numbering inconsistency). Resolved. Title, filename, and body are all RFC-0010. The 0009→0010 renumbering is justified (PR #96 already claimed 0009) and documented in the PR body.

Finding 4 (commitment #4 without qualified source). Resolved. Line 189 and line 262 both read "MANIFIESTO commitment #4."


Remaining observation

Cross-reference RFC-0008 §Trust-anchoring (line 38, line 174). RFC-0008 §Reference-level explanation uses the heading "Trust anchoring, revocation, and policy" (no hyphen, three-part name). The cross-reference §Trust-anchoring is a minor mismatch — the underlying claim (RFC-0008 defers TrustedUserCAKeys to the Phase-2 config RFC at lines 113–116) is correct. Non-blocking.


Positive confirmations

  • One decision per RFC (CLAUDE.md): decides that + shape; defers exact keys, crate, flags to implementing ADRs. ✓
  • Config correctly sited in startup path, never pre-auth — respects §4.1/§4.4 boundary separation. ✓
  • Schema versioning mirrors ADR-0021/ADR-0024 freeze discipline with schema_version from v1. ✓
  • Fail-closed on unknown keys, unsupported schema versions, insecure permissions. ✓
  • TOML crate acknowledged as cost, deferred to implementing ADR with cargo deny gating (MANIFIESTO chore(security): mark quantumssh.org aliases as live #4). ✓
  • accept_env glob example (line 90) is illustrative; exact grammar correctly deferred to unresolved questions (line 305). ✓
  • All cross-references to existing ADRs, RFCs, and plans documents resolve to real files. ✓

github run

Comment thread docs/rfcs/0010-configuration-file.md Resolved
Comment thread docs/rfcs/0010-configuration-file.md Resolved
Comment thread docs/rfcs/0010-configuration-file.md Resolved
Comment thread docs/rfcs/0010-configuration-file.md Resolved
Comment thread docs/rfcs/0010-configuration-file.md Resolved
Comment thread docs/rfcs/0010-configuration-file.md Resolved
Re-review (claude[bot] + Copilot) on the corrected draft:

- StrictModes overstated (2 threads): the check specified only mode
  bits while claiming full StrictModes equivalence, leaving two real
  bypasses (attacker-owned 0600 file; correctly-moded file in a
  group-writable directory). Extend the shape to name all three
  predicates — mode, ownership (root or service UID), and the
  parent-directory chain — in guide- and reference-level.
- authorized_keys citation: §4.2 (process boundary) is the section
  that names authorized_keys in the permission-trusted set, not §4.4
  (config-file scope). Fixed; §4.4 kept for the integrity goal.
- Confidentiality check described as 'carried over unchanged' but it
  tightens §5.5.3's world-readable to also reject group-readable
  (0640). Reframed as an explicit extension.
- Crypto-migration future-possibility now bounded by MANIFIESTO #2:
  no non-hybrid/classical-only KEX may ever be expressible via config
  (no downgrade path).

Part of #109.

Claude-Session: https://claude.ai/code/session_017JuwgCHx6Uv5E13g1BHAud
Signed-off-by: Gonzalo Fleming <[email protected]>
@opencode-agent

opencode-agent Bot commented Jul 7, 2026

Copy link
Copy Markdown

Here's my review of the current RFC state (commit 6a5a3c8).


Review: RFC-0010 — TOML configuration file

Verdict: Approve. All prior review findings are resolved. One commit-history hygiene note remains.


Resolution of prior findings

All five final-round claude findings (02:52:57Z–02:55:15Z) are resolved in the current revision:

Finding Commit Status
StrictModes equivalence claim overstated (missing owner/parent-dir checks) 6a5a3c8 Resolved — lines 142–151 enumerate all three predicates (mode, ownership, ancestor chain)
"carried over unchanged" inaccurate for §5.5.3 f9ed3ba Resolved — lines 159–164 now say "extends" and "tightening"
Wrong threat-model citation (§4.4 → §4.2) for authorized_keys 6a5a3c8 Resolved — lines 153–154 correctly cite §4.2 for the permission-trusted set; §4.4 for the config-integrity goal
Crypto-migration knobs lacking PQ constraint 6a5a3c8 Resolved — lines 333–340 explicitly ban non-hybrid KEX from ever being expressible via config
Wrong RFC number in commit ce1ffac7 — Unresolved (see below)

Remaining finding (non-blocking)

Commit ce1ffac7 has wrong RFC number in its message. The headline reads docs(rfc): RFC-0009 — TOML configuration file. This is permanent in git log after merge unless rebased. The follow-up commit 0452004 confirms it was an error. Consider an interactive rebase to correct the headline to docs(rfc): RFC-0010 — TOML configuration file before merge. Hygiene only — does not affect the RFC's content or the PR's decision.


Positive confirmations

  • One decision per RFC (CLAUDE.md): decides that + shape; defers exact keys, crate, and CLI flags to implementing ADRs. ✓
  • Config correctly sited in startup path, never pre-auth — respects §4.1/§4.4 boundary separation. ✓
  • Fail-closed on two orthogonal checks: integrity (writability, ownership, ancestor-chain) for all trusted files + confidentiality (readability) for the host private key. Both anchored to correct threat-model sections (§4.2, §4.4, §5.5.3). ✓
  • Schema versioning mirrors ADR-0021/ADR-0024 freeze discipline. ✓
  • MANIFIESTO chore(security): publish project PGP key #2 (PQ by default): future crypto-migration config is explicitly bounded to hybrid PQ profiles only (lines 333–340). ✓
  • MANIFIESTO chore(security): mark quantumssh.org aliases as live #4 (small surface): TOML crate acknowledged as cost, deferred to implementing ADR with cargo deny gating. ✓
  • All cross-references resolve to real files and correct section anchors (ADR-0022 §Decision, ADR-0023 §Consequences, RFC-0008 §Trust anchoring). ✓
  • RFC-0008 heading is "Trust anchoring, revocation, and policy" (no hyphen); the RFC's §Trust-anchoring shorthand is a minor formatting mismatch — non-blocking, already noted in prior reviews. ✓

github run

Comment thread docs/rfcs/0010-configuration-file.md Resolved
Comment thread docs/rfcs/0010-configuration-file.md Resolved
Re-review (claude[bot]):

- The error codes used ADR-0024's dot-notation event-name convention
  (config.insecure_permissions), so an implementor could read them as
  new tracing events and silently extend the frozen schema. Add a
  lead-in stating they are message-field values of the existing
  server.config_error event, no new event names; strip the config.
  prefix from each so they no longer look like event targets.
- The blanket 'All are startup errors' swept in the flag-precedence
  case, which is not an error (the server boots). Carve it out: the
  first five abort via server.config_error, the precedence override
  is an info note and startup continues.

Part of #109.

Claude-Session: https://claude.ai/code/session_017JuwgCHx6Uv5E13g1BHAud
Signed-off-by: Gonzalo Fleming <[email protected]>
@opencode-agent

opencode-agent Bot commented Jul 7, 2026

Copy link
Copy Markdown

Review: RFC-0010 — TOML configuration file

Verdict: Approve. The RFC has been through five review rounds across three automated reviewers (Copilot, claude, opencode-agent). All previously-identified blocking and non-blocking findings are resolved in the current text at commit 6a5a3c8. Three minor observations remain.


Resolution of prior findings

Finding (prior reviewer) Status How resolved
Permission checks collapsed writability + readability (Copilot, claude, blocking) Resolved Two orthogonal controls at lines 138–164: integrity on all trusted files + confidentiality on host key; mode-0644 host key fails
ADR-0022 mischaracterized as "deferring configuration" (claude) Resolved Lines 39–43 now separate "defers feature" (ADR-0022 §Decision) from "defers config" (RFC-0008, ADR-0023)
"Commitment #4" lacked MANIFIESTO qualifier (Copilot) Resolved Lines 189, 262: "MANIFIESTO commitment #4"
RFC numbering inconsistent — 0009 vs 0010 (opencode-agent) Resolved Renumbered to 0010 across title, body, filename; PR body documents the skip
§5.5.3 "carried over unchanged" inaccurate (claude) Resolved Line 160–163: now says "extends" — tightening from world-readable to also reject group-readable
Wrong threat-model citation for authorized_keys (claude) Resolved Line 153: now cites §4.2 (process boundary — names authorized_keys explicitly)
StrictModes equivalence claimed mode-bits-only (claude) Resolved Lines 142–151: names all three predicates — mode, ownership, ancestor chain
Crypto-migration config lacked PQ constraint (claude) Resolved Lines 333–345: "no non-hybrid or classical-only KEX may ever be expressible via config"
"All" swept flag-wins case into error path (claude) Resolved Lines 233–235: "first five abort startup … precedence override is an info-level note and the server continues"
Failure codes looked like new event names (claude) Resolved Lines 215–218: explicit preamble — these are message field values in server.config_error, no new event names
Commit ce1ffac7 has wrong RFC number (claude, hygiene) Author response Squash-merge drops the bad headline; correct PR title prevails

Remaining observations (non-blocking)

1. server.config_error carries both integrity and confidentiality failures under the same insecure_permissions code (lines 220–224).

Both the integrity failure ("group/world-writable trust file") and the confidentiality failure ("world/group-readable host key") map to the same insecure_permissions message value. An operator receiving server.config_error with message = "insecure_permissions" won't know from the event alone whether the failure was integrity or confidentiality — they'll rely on the human-readable detail in the full message string. The implementing ADR should consider whether a distinct code (e.g. readable_host_key) would serve §5.5.3's diagnostic surface better.

Anchored to: CLAUDE.md "Audit log fields are mandated" — diagnostic clarity of server.config_error supports the fail-closed posture.

2. "never on the pre-auth path" (line 103) is ambiguous without the §4.1 qualifier that follows at lines 135–138.

A reader who stops at line 103 could parse "pre-auth" as "before any authentication happens" — which startup is. The explicit §4.1 boundary clarification three paragraphs later resolves this, but the first occurrence could mislead. Consider adding "wire" or "network" qualifier: "never on the §4.1 wire pre-auth path."

Anchored to: Threat model §4.1 — "pre-authentication path" has a specific definition (bytes before auth on the network boundary).

3. The config file's own path is not itself subject to the parent-directory-chain check.

The integrity check (lines 146–151) applies to files the config references. The config file's own path is implied to be checked (line 107: "the config file and every trusted file it names"), but the chain-walk predicate is listed under "the config file and every trusted file it names" (line 146). Real StrictModes walks the config file's own path too. The implementing ADR should confirm this is covered — a config file at mode 0600 root:root inside /etc/quantumssh (group-writable) is as replaceable as any trust file.

Anchored to: Threat model §4.4 — "configuration file's filesystem permissions exclude unauthorised writers."


Positive confirmations

  • One decision per RFC (CLAUDE.md): decides that + shape; defers exact keys, crate, and flags to implementing ADRs. ✓
  • Config correctly sited in startup path (lines 135–138), never on the §4.1 wire path. ✓
  • Fail-closed on two orthogonal controls (lines 138–164): integrity (writability + ownership + ancestor chain) + confidentiality (readability). Both anchored to correct threat-model sections. ✓
  • Schema versioning mirrors ADR-0021/ADR-0024 freeze discipline (lines 173–178). ✓
  • MANIFIESTO chore(security): publish project PGP key #2 (PQ by default): future crypto-migration config bounded to hybrid PQ only (lines 342–345). ✓
  • MANIFIESTO chore(security): mark quantumssh.org aliases as live #4 (small surface): TOML crate acknowledged as cost, gated behind implementing ADR + cargo deny (lines 204–211). ✓
  • ADR-0024 freeze respected: no new event names introduced (lines 215–218). ✓
  • All cross-references resolve to real files with correct section anchors (ADR-0022 §Decision, ADR-0023 §Consequences, RFC-0008 §Trust anchoring, etc.). ✓

github run

@claude

claude Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

Checked:

  • All five MANIFIESTO commitments: no legacy crypto introduced, no non-hybrid KEX expressible via config (the RFC explicitly prohibits kex_algorithm = "curve25519-sha256" and similar), no unsafe, no Apache-2.0 narrowing, new TOML-crate dependency correctly deferred to implementing ADR with cargo deny gate
  • Hard security rules: config stays off the pre-auth path (startup-only, frozen for process lifetime); all five non-precedence failure paths are refuse-to-start fail-closed; server.config_error reused without minting new audit event names (honoring the ADR-0024 freeze); host-key confidentiality tightening (0640 → reject) is a strict widening of §5.5.3, not a relaxation
  • RFC lane: shape-determining decision (new public config API) is the correct lane; one decision per RFC discipline holds; exact keys, crate, and retained flag set correctly deferred to implementing ADRs
  • Conventional Commits: docs(rfc): RFC-0010 — TOML configuration file ✓

@gonzafg2
gonzafg2 merged commit e937ece into main Jul 18, 2026
14 checks passed
gonzafg2 added a commit that referenced this pull request Jul 18, 2026
* docs(rfc): mark RFC-0010 as Accepted

RFC-0010 merged in #112; per the RFC process, merge is acceptance.
Flip the Status field to Accepted with the merge date, matching the
convention of RFCs 0005-0008.

Claude-Session: https://claude.ai/code/session_01J2SZwLuDm1KjfYyPM8npTa
Signed-off-by: Gonzalo Fleming <[email protected]>

* docs(rfc): mark RFC-0004 as Accepted

RFC-0004 merged as a draft in #61 while its subsidiary ADR-0022 was
still in review. ADR-0022 was accepted in the #86 governance sweep and
the Phase-1 implementation (Tokio runtime, M1-M6) has landed, so the
adoption decision is settled. Flip the Status field to Accepted,
matching the convention of RFCs 0005-0008.

Claude-Session: https://claude.ai/code/session_01J2SZwLuDm1KjfYyPM8npTa
Signed-off-by: Gonzalo Fleming <[email protected]>

---------

Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2
gonzafg2 deleted the rfc/0009-configuration-file branch July 18, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rfc Request for comments / design proposal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants