Skip to content

chore(security): mark quantumssh.org aliases as live - #4

Merged
gonzafg2 merged 1 commit into
mainfrom
chore/dns-live
May 10, 2026
Merged

gonzafg2 merged 1 commit into
mainfrom
chore/dns-live

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

Summary

The Cloudflare zone for quantumssh.org is configured. The transient "DNS not yet provisioned" caveat in SECURITY.md is no longer accurate and is removed.

Verification

Check Result
dig +short NS quantumssh.org candy.ns.cloudflare.com. + lee.ns.cloudflare.com.
dig +short A quantumssh.org 172.67.141.216, 104.21.27.83 (Cloudflare anycast)
dig +short AAAA quantumssh.org 2606:4700:3032::6815:1b53, 2606:4700:3033::ac43:8dd8
dig +short MX quantumssh.org route1/2/3.mx.cloudflare.net (Cloudflare Email Routing)
dig +short TXT quantumssh.org SPF: v=spf1 include:_spf.mx.cloudflare.net ~all
dig +short TXT _dmarc.quantumssh.org v=DMARC1; p=none; rua=...
dig +dnssec DNSKEY quantumssh.org Keys present, DNSSEC active
curl -sI https://quantumssh.org HTTP/2 301 Location: https://github.com/gonzafg2/quantumssh
curl -sI https://www.quantumssh.org same
curl -sI https://quantumssh.org/issues redirect preserves path
Test email to [email protected] delivered

Files

  • SECURITY.md: removed the 4-line blockquote pointing reporters to the maintainer's personal contact
  • CHANGELOG.md: new bullet under [Unreleased] -> Changed

Checklist

  • Commit signed and DCO sign-off
  • CI required checks will run
  • CHANGELOG updated
  • No PII or secrets in diff

The Cloudflare zone for `quantumssh.org` is now configured: the apex
and `www` proxy through Cloudflare, the Redirect Rule answers with a
301 to `https://github.com/gonzafg2/quantumssh` preserving the request
path, and Email Routing forwards `security@` and `conduct@` to the
project lead's verified destination address.

The transient "DNS not yet provisioned" blockquote in `SECURITY.md`
that pointed reporters at the maintainer's personal contact during
Phase 0 is no longer accurate, so it is removed. Reporters can now
reach the project at `[email protected]` directly, encrypted
under the published PGP key.

Verified externally:

- `dig +short A quantumssh.org` -> Cloudflare anycast (172.67.x, 104.21.x)
- `dig +short MX quantumssh.org` -> route1/2/3.mx.cloudflare.net
- `curl -sI https://quantumssh.org` -> HTTP/2 301 Location: github.com/...
- `curl -sI https://www.quantumssh.org` -> same
- DNSKEY published; DNSSEC chain established
- Test mail to `[email protected]` delivered to the destination

`CHANGELOG.md` records the transition under `[Unreleased] -> Changed`.

Signed-off-by: Gonzalo Fleming <[email protected]>
Copilot AI review requested due to automatic review settings May 10, 2026 06:03
@gonzafg2
gonzafg2 merged commit ac6cc99 into main May 10, 2026
9 checks passed
@gonzafg2
gonzafg2 deleted the chore/dns-live branch May 10, 2026 06:04

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

Removes an outdated note in SECURITY.md that warned quantumssh.org email aliases were not yet provisioned, now that the domain’s DNS/redirects are live and verified.

Changes:

  • Deleted the temporary “DNS not yet provisioned” caveat from SECURITY.md.
  • Added an [Unreleased] changelog entry noting the security@ / conduct@ aliases and quantumssh.org redirects are operational.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
SECURITY.md Removes the no-longer-accurate warning about quantumssh.org DNS/email alias availability.
CHANGELOG.md Records the change under [Unreleased] -> Changed to document the now-live aliases and redirects.

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

gonzafg2 added a commit that referenced this pull request May 12, 2026
Copilot reviewer flagged that the draft introduced an explicit
"Likelihood, conditional on capability" field on §3.2.6, contradicting
docs/threat-model.md §1.1 which states the document is not a risk
assessment and assigns no likelihoods or impact ratings.

This commit removes the sixth field from the proposed §3.2.6 actor
specimen so the format matches §3.2.1-§3.2.5 exactly (Capability,
Intent, Targeting, Typical techniques, Implication for design). The
rationale for documenting the actor now is preserved in the Motivation
and Drawbacks sections, framed by reference to the existing or
committed-to mitigations rather than by a probability claim.

Cascading edits:
- Summary: replace likelihood sentence with §1.1-consistent framing.
- Drawbacks #4: rephrase to argue from mitigation existence, not from
  likelihood rating.
- Unresolved questions #2: declare resolved (field removed); note that
  any future move to add likelihood ratings would be a separate,
  larger RFC.
- Unresolved questions #5 ("When to re-rate likelihood"): removed,
  moot.
- Rationale "Why Moderate-High capability": remove the
  capability-vs-likelihood orthogonality argument that referenced the
  now-removed body paragraph; preserve the substantive point that
  capability is rated by what the adversary can do.

Refs PR #22 review by copilot-pull-request-reviewer.
gonzafg2 added a commit that referenced this pull request May 12, 2026
* docs(rfc): draft RFC 0001 -- project maintainer compromise actor

Adds a draft RFC under docs/rfcs/ proposing a new in-scope threat
actor (§3.2.6 Project maintainer compromise) for docs/threat-model.md,
with specimen text for the actor entry, refinement of §5.5.2 into
upstream-dependency and own-project sub-cases, re-targeting of §6.4
mitigations with explicit "covers / does not cover" pairings, and
specimen amendments to the §3.2 intro paragraph, §7 (Residual risk),
and a new §8.11 (Out of scope).

The RFC honestly surfaces the gap that branch protection with
required_approving_review_count = 0 (ADR-0008) does not provide
four-eyes review during single-maintainer phases, and identifies
reproducible builds (Phase 3, RFC-gated) as the only control that
retains value against a fully-compromised maintainer because
verification occurs outside the maintainer's trust boundary.

Tracks issue #20. The threat model itself is not amended here; a
follow-up implementation PR will apply the proposed text on RFC
acceptance per the maintenance clause in docs/threat-model.md.

* docs(rfc): remove §3.2.6 likelihood field to preserve §1.1 framing

Copilot reviewer flagged that the draft introduced an explicit
"Likelihood, conditional on capability" field on §3.2.6, contradicting
docs/threat-model.md §1.1 which states the document is not a risk
assessment and assigns no likelihoods or impact ratings.

This commit removes the sixth field from the proposed §3.2.6 actor
specimen so the format matches §3.2.1-§3.2.5 exactly (Capability,
Intent, Targeting, Typical techniques, Implication for design). The
rationale for documenting the actor now is preserved in the Motivation
and Drawbacks sections, framed by reference to the existing or
committed-to mitigations rather than by a probability claim.

Cascading edits:
- Summary: replace likelihood sentence with §1.1-consistent framing.
- Drawbacks #4: rephrase to argue from mitigation existence, not from
  likelihood rating.
- Unresolved questions #2: declare resolved (field removed); note that
  any future move to add likelihood ratings would be a separate,
  larger RFC.
- Unresolved questions #5 ("When to re-rate likelihood"): removed,
  moot.
- Rationale "Why Moderate-High capability": remove the
  capability-vs-likelihood orthogonality argument that referenced the
  now-removed body paragraph; preserve the substantive point that
  capability is rated by what the adversary can do.

Refs PR #22 review by copilot-pull-request-reviewer.

* docs(rfc): correct GitHub require_signed_commits semantics in §6.4

Second Copilot reviewer pass flagged that the RFC overstated what
ADR-0006 + ADR-0008 actually deliver against §3.2.6. GitHub's
require_signed_commits branch-protection setting validates that a
commit carries a signature "verified" against any key registered to
a collaborator of the repo. It does not pin to a specific fingerprint,
so the control is bypassable by:

  (a) a session hijack that uploads a fresh signing key to the
      compromised collaborator account,
  (b) theft of the maintainer's existing SSH signing key,
  (c) a malicious co-maintainer's own registered signing key.

The pinned-fingerprint guarantee is available only out of band
(downstream allowed_signers verification per ADR-0006's recipe in
docs/operations.md).

Changes:
  - §6.4 specimen bullet "Signed releases and signed commits on main":
    rewritten to distinguish server-side enforcement from out-of-band
    verification, and to enumerate the three bypass paths explicitly.
  - Mitigations table row "SSH commit signing on main": cells
    rewritten so the "covers" list reflects what GitHub's setting
    actually rejects (unsigned commits, unverified signatures) and
    the "does not cover" list enumerates the three bypass paths.
  - Future possibilities "Independent monitoring of main integrity":
    refined to make publishing a canonical pinned-fingerprint set
    the explicit precondition, and to name the bypass path that
    monitoring closes.

Secondary wording cleanup detected in the same pass:
  - "§3.2.1-§3.2.5 ladder (which moves from outside-in by capability)"
    -> ordered by capability tier; removes awkward phrasing.
  - "maintainership handoff to a colluding identity"
    -> "(co-maintainer addition or successor handoff)"; matches the
    sub-division already documented in §3.2.6 Capability.

Refs Copilot review comments 3224399579 (line 195) and 3224399618
(line 319) on PR #22.

* docs(rfc): scope §6.4 reproducible-builds and "signed releases" claims honestly

Addresses Copilot review comments on commit 21d7bc4:

- §3.2.6 Implication-for-design: drop the claim that reproducible
  builds are "the only defence-in-depth that survives a maintainer
  who is fully compromised". They retain value against the
  build-pipeline-compromise sub-case (build env, release host,
  distribution channel) because verification occurs outside the
  maintainer's trust boundary, but against a maintainer who merges
  malicious source on `main` and produces matching reproducible
  binaries the source/artefact pair remains internally consistent.
  Point readers at the §6.4 reference-level table for the precise
  per-control bound and at ADR-0008's zero-required-reviews stance
  for the source-side residual.

- §6.4 specimen bullet: rename "Signed releases and signed commits on
  `main`" → "Signed commits on `main`". ADR-0006 documents only SSH
  commit signing; there is no signed-tag, signed-release-artefact,
  or signed-checksum-manifest control established by any current
  ADR. The bullet now explicitly notes that the implementation PR
  will apply the same correction to `docs/threat-model.md:1091`,
  which carries the same overstated phrasing today.

- §7 (Residual risk) specimen: replace "signed-tag verification by
  downstream consumers" with "downstream signed-commit verification
  against a pinned `allowed_signers` set", per ADR-0006's recipe,
  and note that adoption of signed release tags or signed release
  artefacts is deferred to a future ADR/RFC.

- Honest acknowledgment paragraph: replace "downstream verification
  of signed releases" with "downstream verification of signed commits
  against a pinned `allowed_signers` set" for the same reason.

- Unresolved questions: add #5 explicitly scoping what "signed
  releases" would mean (signed tags via the ADR-0006 key vs a
  dedicated tag-signing key, signed checksum manifests, Sigstore or
  minisign artefact signing) and recording that this RFC takes no
  position on which path.

- Future possibilities: add "Signed release tags or signed release
  artefacts as a future ADR" immediately before the existing
  transparency-log-witnessed entry, since the basic signing
  primitive is the prerequisite for the witnessed-signature variant.

No substantive scope change to the actor entry or to the §6.4
control re-targeting; this commit tightens redaction to match what
each control actually guarantees today.

* docs(rfc): address PR #22 round-4 review — collaborator framing, deny.toml scope, reproducible-builds consistency

Three substantive corrections to RFC 0001 from the latest Copilot
review pass (PR #22, round 4):

1. **`require_signed_commits` semantics (3 occurrences).** Removes
   the "any key registered to a collaborator" framing introduced in
   21d7bc4. GitHub's check verifies that the signature resolves to
   any Verified GitHub identity, not specifically to a collaborator;
   collaborator-only push to `main` is enforced separately by
   repository permissions and branch protection. Updated in the §6.4
   specimen, the mitigations table row, and the Future possibilities
   monitoring entry.

2. **`deny.toml` scope (2 occurrences).** Removes the implication
   that `deny.toml` enforces a per-crate allowlist. Verified against
   the file: `[bans] deny = []`. What cargo-deny actually enforces
   today: licence allowlist (`[licenses] allow`), registry/git-source
   allowlist (`[sources]`), wildcard version ban
   (`[bans] wildcards = "deny"`), RustSec advisories. A new
   permissively-licensed crate from crates.io is not blocked.
   Updated in the §6.4 specimen bullet and the mitigations table row.

3. **Reproducible builds internal consistency (2 occurrences).** The
   11fd3c5 correction to the §3.2.6 narrative did not propagate to
   the §6.4 specimen and the mitigations table row, which still read
   "the only control that retains value against a fully-compromised
   maintainer". Both are now scoped to the *build-pipeline-compromise*
   sub-case, and the table's "does not cover" cell explicitly names
   the matching-reproducible-binaries-from-malicious-source path.

Editorial nits bundled in:

- Brittle line-number citations replaced with anchor citations
  ("Lines 9–15 of docs/threat-model.md" → "The Maintenance note at
  the top"; "line 1091" → "§6.4 first bullet").
- §3.2.6 paraphrase of §5.5.3 tightened from "honest acknowledgment
  that not every threat has a precise ATT&CK identifier" to "the
  §5.5.3 entry's explicit note that no specific ATT&CK technique
  applies".
- "Proposed amendments elsewhere in docs/threat-model.md" gains a
  fourth bullet: the implementation PR removes the trailing
  "long-lived implants in the maintainer's development environment"
  clause from §3.2.5's Typical techniques (line 397–398), now
  subsumed by §3.2.6's persistent-implant path at the High tier.
- §8.11 "must rely on" softened to "rely on".
gonzafg2 added a commit that referenced this pull request May 27, 2026
Closes CodeQL alerts #2 (ci.yml) and #4 (deny.yml), both
`actions/missing-workflow-permissions` (medium). Without an explicit
permissions block, both workflows inherit the repository default
GITHUB_TOKEN scope, which is broader than they need.

Neither workflow writes to the repository: ci.yml runs fmt/clippy/
test/build, deny.yml runs cargo-deny check. `contents: read` is the
minimum to allow `actions/checkout` and is sufficient for both.

Matches the pattern already established in audit.yml, which scopes
its broader `issues: write` permission alongside `contents: read`
only because cargo-audit needs to file issues.
gonzafg2 added a commit that referenced this pull request Jun 10, 2026
* docs(rfc): draft RFC 0003 -- Phase 1 SSH stack greenfield vs russh

Proposes the foundational decision for Phase 1's SSH-2 transport,
KEX, authentication, and channel layers. Three options analysed
against the five MANIFIESTO commitments and threat-model §3.2.6:

  A. Greenfield-modular on audited primitive crates (chosen).
  B. russh with maximum mitigations (named fallback).
  C. Hybrid -- ssh-key for authorized_keys parsing only.

A wins on MANIFIESTO #1 (memory safety), #3 (zero legacy),
#4 (small surface), on threat-model containment, and on cargo audit
cleanliness. The only dimension where B won -- the README's old
'Phase 1 takes weeks' commitment -- no longer exists after PR #25
removed per-phase calendar estimates on 2026-05-27.

The decision is RFC-level (not ADR-level) because Phase 1's
foundation determines what code runs in QuantumSSH's pre-auth path
for the lifetime of the project; reversing later costs an order of
magnitude more than choosing once. Four follow-up ADRs become
unblocked when this RFC merges (workspace topology, unsafe_code
forbid promotion, ML-KEM crate selection, CI interop hard gate).

Source material: claudedocs/phase1-open-decisions.md (2026-05-13)
adversarial panel analysis with external citations. This RFC is
the public, normative version of that analysis.

Roadmap issue: #9 (Phase 1 / Hito 1).

* docs(rfc): fix crate count and GOVERNANCE.md link text in RFC-0003
gonzafg2 added a commit that referenced this pull request Jul 2, 2026
* docs(rfc): RFC-0008 — SSH certificate authentication

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]>

* docs(rfc): RFC-0008 review fixes; Status → Accepted

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]>

* docs(rfc): RFC-0008 — reject host-type certificates in user auth

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]>

* docs(rfc): RFC-0008 — reframe as one decision (adopt cert auth)

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]>

---------

Signed-off-by: Gonzalo Fleming <[email protected]>
gonzafg2 added a commit that referenced this pull request Oct 11, 2026
opencode review #4 on #174: ACVP sigGen vectors are defined against
FIPS 204's internal interface, so sign_deterministic (external framing)
cannot reproduce them. Decision 5 now names the calls upstream's own
harness uses at ml-dsa/v0.1.1: from_seed for keyGen, sign_internal for
sigGen (deterministic with zeroed rnd and hedged with the vector's rnd),
verify_internal for sigVer, in tests only. The production framing
(sign_randomized with ctx and the composite M') is covered by the LAMPS
composite vectors where published and end to end by the ADR-0020
OpenSSH interop gate.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
gonzafg2 added a commit that referenced this pull request Oct 28, 2026
opencode review #4 on #174: ACVP sigGen vectors are defined against
FIPS 204's internal interface, so sign_deterministic (external framing)
cannot reproduce them. Decision 5 now names the calls upstream's own
harness uses at ml-dsa/v0.1.1: from_seed for keyGen, sign_internal for
sigGen (deterministic with zeroed rnd and hedged with the vector's rnd),
verify_internal for sigVer, in tests only. The production framing
(sign_randomized with ctx and the composite M') is covered by the LAMPS
composite vectors where published and end to end by the ADR-0020
OpenSSH interop gate.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit 605636e)
Signed-off-by: Gonzalo Fleming <[email protected]>
gonzafg2 added a commit that referenced this pull request Oct 28, 2026
…ML-DSA-44 half (Proposed) (#174)

* docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed)

Subsidiary ADR 1 of RFC-0012 (the dependency layer of RFC-0007 section 2),
paralleling ADR-0019. Chooses RustCrypto ml-dsa (pure Rust, forbid,
from_seed + ctx-aware hedged signing) over libcrux-ml-dsa, aws-lc-rs (no
ctx parameter), fips204 and pqcrypto-mldsa (unmaintained).

Version rule: the first release containing RustCrypto/signatures#1386
(constant-time fixes, merged 2026-06-24, unreleased as of 2026-10-11),
pinned exactly; 0.1.1 is rejected because host-key signing is reachable
before authentication. Stays Proposed until that release exists and
flips to Accepted in the PR that adds the dependency.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit fb682ea)
Signed-off-by: Gonzalo Fleming <[email protected]>

* docs(adr): ADR-0035 — per-feature rationale; RNG is getrandom::SysRng (sys_rng)

claude-review on #174: the feature list justified only pkcs8, and hedged
signing named no concrete CryptoRng.

- Decision 2 now gives each enabled and dropped feature its own reason
  (rand_core gates sign_randomized; getrandom stays off to keep one OS
  randomness path; alloc is unused by the composite's surface).
- Decision 3 names the RNG: getrandom::SysRng from the workspace's
  existing getrandom 0.4 dependency via its sys_rng feature, which
  implements rand_core 0.10 TryCryptoRng with no new crate (rand_core
  0.10.1 is already in Cargo.lock). Verified end to end with ml-dsa 0.1.1
  and getrandom 0.4.3 in a scratch crate.
- Records the rejected sign_internal path (upstream marks it test-only)
  and a first-party adapter.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit a64f2c7)
Signed-off-by: Gonzalo Fleming <[email protected]>

* docs(adr): ADR-0035 — stable releases only; RNG failure fails closed

claude-review round 2 on #174:

- Version rule: the first stable (non-pre-release) ml-dsa release that
  contains RustCrypto/signatures#1386.
- Decision 3: SysRng is fallible, so host-key signing becomes fallible
  (HostKey::sign returns Vec<u8> today, host_key.rs:165); an RNG error
  aborts the key exchange with SSH_DISCONNECT_KEY_EXCHANGE_FAILED, the
  path kex.rs already takes for getrandom failures, and never panics.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit 100a423)
Signed-off-by: Gonzalo Fleming <[email protected]>

* docs(adr): ADR-0035 — conformance vectors as tests; record SHAKE-state erasure gap

opencode review #3 suggestions on #174 (below its threshold, applied):

- Decision 5: the implementation PR runs NIST ACVP ML-DSA-44 keyGen,
  sigVer and deterministic sigGen vectors (and the LAMPS composite
  vectors where published), as ADR-0019 required for ML-KEM.
- Negative: ml-dsa 0.1.1's zeroize feature does not reach its shake
  dependency (declared default-features = false), so the SHAKE sponge
  state is not erased; recorded as within threat-model 4.3's best-effort
  erasure.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit b820b43)
Signed-off-by: Gonzalo Fleming <[email protected]>

* docs(adr): ADR-0035 — ACVP vectors through FIPS 204 internal interfaces

opencode review #4 on #174: ACVP sigGen vectors are defined against
FIPS 204's internal interface, so sign_deterministic (external framing)
cannot reproduce them. Decision 5 now names the calls upstream's own
harness uses at ml-dsa/v0.1.1: from_seed for keyGen, sign_internal for
sigGen (deterministic with zeroed rnd and hedged with the vector's rnd),
verify_internal for sigVer, in tests only. The production framing
(sign_randomized with ctx and the composite M') is covered by the LAMPS
composite vectors where published and end to end by the ADR-0020
OpenSSH interop gate.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit 605636e)
Signed-off-by: Gonzalo Fleming <[email protected]>

* docs(adr): ADR-0035 — note the deprecated from_expanded used by the ACVP harness

opencode review #5 suggestion on #174: the ACVP vectors carry expanded signing keys, loaded through ExpandedSigningKey::from_expanded, which upstream deprecates and wraps in allow(deprecated) in its own harness. Item 5 now records the same test-only use and what happens if upstream gates or removes it.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit 644307a)
Signed-off-by: Gonzalo Fleming <[email protected]>

* docs(adr): ADR-0035 — record ml-dsa's un-erased signing temporaries as a residual

Codex (App) P1 on #174: sign_randomized creates rnd, rhopp and the mask
y as plain buffers inside the crate (upstream master signing.rs:316-329,
397-401); the zeroize feature covers only key structures (646-655).

Per the maintainer's decision, RFC-0012 (#172, 5082d25) now scopes its
normative zeroization rule to first-party signing state and asks the
crate ADR to record crate-internal temporaries as a residual under
threat-model 4.3's best-effort erasure. This records them next to the
existing SHAKE-state residual.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit 4116313)
Signed-off-by: Gonzalo Fleming <[email protected]>

* docs(adr): ADR-0035 — 'add no duplicate' for the shared ml-dsa dependencies

From claude's review #7 on #174: say what the dependencies add rather
than what the lockfile holds. crypto-common has one locked version on
main (0.2.2), so the statement is unchanged in substance.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit 34c83f4)
Signed-off-by: Gonzalo Fleming <[email protected]>

* docs(adr): ADR-0035 — signature 3.0.0 is already locked under ADR-0036

ed25519-dalek 3.0.0 brought in signature 3.0.0, and ml-dsa 0.1.1 asks
for signature ^3. The dependency adds three crates, not four, and there
is no second signature major to retire. ADR-0036 joins the Related line.

Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp
Signed-off-by: Gonzalo Fleming <[email protected]>
(cherry picked from commit 587b8fe)
Signed-off-by: Gonzalo Fleming <[email protected]>

---------

Signed-off-by: Gonzalo Fleming <[email protected]>
gonzafg2 added a commit that referenced this pull request Oct 30, 2026
…intainer residuals

From opencode's fourth review of this PR (suggestions, applied at the
project lead's request):

- The provider-key check scanned only the sliced report, so a key before
  the heading or in a final answer without one was missed, and the
  invalid-report branch then printed the agent's text to the log. It now
  scans every text part the agent wrote, before slicing, and the job
  stops before anything is published or printed. The text is written to
  a file first, because `jq | grep -q` under pipefail would read an early
  match as a pipe failure.
- ADR-0049 Decision 8 maps the /oc residual to the threat model's
  maintainer-compromise actor (§3.2.6, §5.5.2.b) and says what a writer
  could already do: run an edited workflow through pull_request, or merge
  one to main.
- ADR-0049 records the §5.5.2.a residual of a release compromised before
  a bump, and what bounds it.
- ADR-0032's Status also names the permission configuration of its
  "No hangs" bullet (review #4, partly resolved item).

Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp
Signed-off-by: Gonzalo Fleming <[email protected]>
gonzafg2 added a commit that referenced this pull request Oct 30, 2026
…235)

* ci(opencode): run the reviewer on a pinned OpenCode 2 CLI (ADR-0049)

Upstream removed the opencode GitHub Action on 2026-10-25
(anomalyco/opencode#59032), and `opencode github run`, which it calls,
exists only in OpenCode 1. The action also looked up the latest release
with an anonymous api.github.com call that fails on a rate-limited
runner, and installed an unpinned CLI (#166).

The workflow now downloads opencode-linux-x64.tar.gz v2.2.3 from the
GitHub release, checks the SHA-256 GitHub publishes for it, and runs
`opencode run --standalone --format json` on the PR head commit read
during the fork refusal. Two jobs split on privilege: `review` runs the
model with read-only permissions and hands the report over as an
artifact, and `post`, which runs no model and checks out nothing,
comments with pull-requests: write. id-token: write is dropped, reviews
come from github-actions[bot], and the proof of review holds by
construction.

ADR-0049 records the decision and supersedes the matching parts of
ADR-0025, ADR-0032 and ADR-0033, whose Status lines say so.

Closes #166

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

* ci(opencode): give the agent read-only tools and fetch the PR for it

The agent read PR comments, which anyone can write on a public PR, while
it had a shell, the provider key in its environment and a GitHub token:
a prompt injection could expand the key and send it out, or into the
public review. That was true of the OpenCode 1 action as well.

OPENCODE_CONFIG_CONTENT now denies every permission except read, grep,
glob, list and subagent (subagents inherit the rules), and allows reading
only /etc and the PR files outside the checkout. A step before the run
fetches the PR, its diff, its commits with their verification, and the
earlier comments and reviews, as the Codex workflow of ADR-0030 did, so
the agent runs with no GitHub token. Checked against OpenCode 2.2.3 in a
container: shell and webfetch are not offered to the agent or its
subagents, and /proc/self/environ is denied. ADR-0049 records it.

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

* ci(opencode): drop checkout symlinks and refuse a report with the key

OpenCode 2.2.3's read and grep tools follow a symlink in the checkout to
any path, and the external_directory rules only see the path inside the
checkout: a symlink to a file outside it was read in a container test.
The repository tracks no symlinks, so the job now deletes every one
after the checkout.

As a last line of defence, the review job fails without handing the
report to `post` when the report contains the provider key. ADR-0049
records both.

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

* ci(opencode): print opencode's error events when the run fails

With --format json, `opencode run` reports a failure as an `error` event
on stdout and writes nothing to stderr. The first run on this PR exited
with status 1 after 16 minutes and left no cause in the log, because the
events file went with the runner. The step now prints each error event's
type and message before failing.

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

* ci(opencode): ignore the checkout's opencode project configuration

OpenCode loads opencode.json and .opencode/ from the working directory,
which here is the PR's code. A container test with OpenCode 2.2.3 loaded
a checkout's opencode.json that allowed the shell and declared a local
MCP server, which is a command OpenCode runs, with the provider key in
its environment. CodeQL's untrusted-checkout alerts on this PR point at
the same path.

OPENCODE_DISABLE_PROJECT_CONFIG, OPENCODE_PURE and
OPENCODE_DISABLE_EXTERNAL_SKILLS make it read only the inline
configuration: with them set, the same test loads neither file. The
prompt already names what the agent reads. ADR-0049 records it.

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

* ci(opencode): pin the agent's diff to the checkout, and publish only a final report

From opencode's own review of this PR:

- The diff and commits were fetched by PR number, so a push between the
  checkout and the fetch could pair one tree with another diff. They now
  come from the compare of the base and head read during the fork
  refusal, which is the same three-dot diff (checked byte for byte on
  this PR). The records keep only the fields a review uses, so the
  agent can read them whole.
- The extractor took the last text part that merely mentioned the
  heading, so a final answer without a report fell back to an earlier
  part, such as a quoted comment. Now only the agent's final text
  counts, from a line that starts with the heading, and it must carry a
  **Decision**: line.
- The permission config names bash, edit, webfetch and websearch as
  denied, not only through "*".
- The Status lines of ADR-0032 and ADR-0045 name everything ADR-0049
  supersedes, and ADR-0049 no longer says the /oc comment's text stays
  away from the model, or that no api.github.com call happens.
- .github/REVIEW-FORMAT.md says a reviewer without a shell reads the
  saved comment files.

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

* docs(adr): record /oc's checkout as ADR-0049's accepted residual

From opencode's second review of this PR: the /oc path checks out a PR
head it resolved itself while it holds the provider key, the shape
ADR-0030 (since superseded) rejected for a /codex trigger, and CodeQL
reports it as alerts 15 and 16. ADR-0049 now records that the project
lead kept the checkout, what bounds the risk, and that both alerts were
dismissed with that justification.

pr.json also carries the compare's total_commits, so the agent can tell
when the commit list is clipped at 250.

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

* ci(opencode): log each tool call and model step while the review runs

With --format json, `opencode run` writes nothing to the log until it
ends, and a review took up to 20 minutes with no sign of where. The
events now go through `tee` to the file and through a jq filter that
prints one line per tool call (tool, status, duration, path, pattern or
subagent description) and per model step (duration and token counts),
with the time since the start. Tool outputs are never printed. The
filter lives in the step's env, as the prompt does, and its exit status
leaves opencode's untouched under pipefail. Checked in a container with
a run that succeeds and one the provider refuses.

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

* ci(opencode): show reasoning tokens in the step progress lines

The run on b9e0924 took 26 minutes with steps of 51 s and 99 s that
produced 165 and 114 output tokens. The step_finish event also carries
the reasoning token count: many reasoning tokens in a slow step mean the
model is thinking, few mean the provider made it wait. The progress line
now prints it.

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

* ci(opencode): scan all agent text for the key; record the bump and maintainer residuals

From opencode's fourth review of this PR (suggestions, applied at the
project lead's request):

- The provider-key check scanned only the sliced report, so a key before
  the heading or in a final answer without one was missed, and the
  invalid-report branch then printed the agent's text to the log. It now
  scans every text part the agent wrote, before slicing, and the job
  stops before anything is published or printed. The text is written to
  a file first, because `jq | grep -q` under pipefail would read an early
  match as a pipe failure.
- ADR-0049 Decision 8 maps the /oc residual to the threat model's
  maintainer-compromise actor (§3.2.6, §5.5.2.b) and says what a writer
  could already do: run an edited workflow through pull_request, or merge
  one to main.
- ADR-0049 records the §5.5.2.a residual of a release compromised before
  a bump, and what bounds it.
- ADR-0032's Status also names the permission configuration of its
  "No hangs" bullet (review #4, partly resolved item).

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

---------

Signed-off-by: Gonzalo Fleming <[email protected]>
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.

2 participants