Repository navigation
ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) - #161
Conversation
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) (#161)Decision: 🟡 Minor changes Executive summaryThe workflow appropriately pins the container image, Debian snapshot, OpenSSH package version, and asserted client version; actions are SHA-pinned and permissions remain minimal. The new ADR correctly documents this hardening, but its status conflicts with the repository’s ADR lifecycle once its implementation merges. New findings🟡 Important (should be resolved)docs/adr/0034-openssh-interop-client-pinned-to-image-build-snapshot.md:3-6 — ADR lifecycle (confidence: 88)
|
|
Re Codex review #1, ADR-0034 Status: For the record, this PR's |
PR Review: ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) (#161)Decision: 🟢 Approved Executive summaryThis PR completes the supply-chain pin ADR-0020 originally decided but left unimplemented in #84: No issues found. Checked for bugs, CLAUDE.md compliance (CI: unpinned actions, token permissions, authorization gates, supply-chain; ADR: soundness against all five MANIFIESTO commitments and the threat model). |
PR Review: ci(interop): pin openssh-client to the snapshot the image was built from (#161)Decision: 🟢 Approved Executive summaryThe PR implements the package-version pin ADR-0020 decided, by pointing apt at the snapshot timestamp recorded in the digest-pinned image and asserting Verification performedThe install recipe was reproduced end-to-end against the digest-pinned image. The digest Previous issuesNone — this is the first review of the PR. New findingsNo finding reaches the reporting threshold (≥80/100), so there is nothing to block on. Three candidate issues were raised and each refuted before reaching this report:
Limitations: the workflow's execution on the GitHub-hosted runner itself was not observed; the recipe was verified against the pinned image directly. The Decision: 🟢 Approved |
…each edit touched Claude checked the Links lines against the milestone PRs' file lists and found four wrong attributions: server.rs (ADR-0016) and everything ADR-0022 names landed in M0 (#62), not M5/M3; transport.rs (ADR-0021) landed in M3 (#65), not M2; and log_fields.rs (ADR-0024) came with #101 on 2026-07-06, after the ADR's acceptance. All four corrected, with the banners' milestone references. Each banner now says which section the edit touched (Context in 0018/0019, Related in 0021/0023/0024, both in 0022) instead of the same sentence everywhere. ADR-0020's Links line no longer carries a note about the unimplemented package pin — that is decision-level content and lives in ADR-0034 (#161). ADR-0023 no longer points at "PR #50 in review" for the event schema, and ADR-0021 drops a "(TBD)" next to the kex module. docs/adr/README.md step 5 distinguishes the governance state from the file's Status line and lists what actually happened (ADR-0027 merged Accepted; 0028/0029 flipped in their implementing PRs; 0030-0032 in #158) instead of calling one instance the practice. docs/infrastructure.md says first-party unsafe would need a superseding ADR, as ADR-0018 states, not an RFC. Findings by Claude and opencode on #159. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
…rom (ADR-0034) Implements the package-version pin ADR-0020 decided and #84 left out. The digest-pinned image (debian:trixie-20260623-slim) records in its own debian.sources the snapshot.debian.org timestamp it was built from; apt now reads from that timestamp, installs openssh-client=1:10.0p1-7+deb13u4 with the build prerequisites, and the job asserts the exact `ssh -V` string, OpenSSL build included. The step checks that SNAPSHOT matches the image before apt runs. #98 failed by pointing apt at a snapshot older than the image (its libc6 was already newer than the archive). Reproduced locally in the same image on 2026-09-22: the build timestamp installs with no libc6 change; later timestamps install the same package but move libc6 and OpenSSL under it; earlier ones cannot resolve libc6-dev. Timestamp and version pin together, and the timestamp is read from the image. http rather than https because the slim image has no CA bundle and apt verifies the Release signatures anyway; Check-Valid-Until off because the archived trixie-updates/-security Release files are past their validity window. ADR-0034 records the mechanism and the bump procedure; ADR-0020's Status line points at it. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
0e42268 to
fb19e87
Compare
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) (#161)Decision: 🟢 Approved Executive summaryThe workflow now binds the container filesystem, Debian archive state, OpenSSH package, and asserted client build together, while retaining SHA-pinned actions and minimal permissions. No Rust or transport-security surface changes; the gate continues to require the hybrid PQ KEX. Previous issues
No new finding reaches the reporting threshold. Decision: 🟢 Approved |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) (#161)Decision: 🟢 Approved Executive summaryThe workflow now binds the digest-pinned Debian image, its recorded snapshot timestamp, the explicit OpenSSH package version, and the exact Previous issues
No new finding reaches the reporting threshold. Decision: 🟢 Approved |
PR Review: ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) (#161)Decision: 🟢 Approved Executive summaryThis PR closes the supply-chain pin ADR-0020 decided but left unimplemented in #84: Previous issues
New findingsNo finding reaches the ≥80 threshold. The change is a strict hardening over the previous workflow (adds
Limitations: I could not observe the GitHub-hosted run, the Decision: 🟢 Approved |
Summary
The OpenSSH interop gate installs
openssh-client=1:10.0p1-7+deb13u4from the snapshot.debian.org archive state its digest-pinned image was built from, and asserts the exactssh -Vstring. This is the package-version pin ADR-0020 decided and #84 left out; ADR-0034 records the mechanism and supersedes ADR-0020's literalOpenSSH_10.0p1assertion.Motivation
libc6was already newer than the archive;libc6-devcould not resolve. Reproduced locally on 2026-09-22 in the exact image (debian@sha256:28de0877…=debian:trixie-20260623-slim, amd64): the image's owndebian.sourcescarries the snapshot timestamp it was built from (20260623T000000Z); at that timestamp the package installs with nolibc6change andssh -VreadsOpenSSH_10.0p2 Debian-7+deb13u4, OpenSSL 3.5.6 7 Apr 2026. One day and three months later the same package version still installs butlibc6and OpenSSL move underneath it; earlier timestamps fail as ci(interop): pin openssh-client to an exact version via snapshot.debian.org #98 did. So timestamp and version pin together, and the timestamp is read from the image, not chosen. The step checksSNAPSHOTagainst the image before apt runs.httprather thanhttps(the slim image has no CA bundle; fetching one from the live mirror first is the mixed state ci(interop): pin openssh-client to an exact version via snapshot.debian.org #98 failed on; apt verifies the Release signatures) andCheck-Valid-Untiloff (archivedtrixie-updates/-securityRelease files are past their seven-day validity).trixie-securityoffered only an olderopenssh-clientat every timestamp; kept for symmetry.This PR's own
openssh-interoprun is the first CI execution of the recipe; the local measurements (three timestamps, no throttling, ~2× slower than the CDN mirror from that network) are in ADR-0034's Context.Type of change
Checklist
Developer Certificate of Origin
(
git commit -s).cargo fmt --allandcargo clippy --workspace --all-targets -- -D warningslocally. (N/A: no Rust;actionlintpasses.)docs/, orREADME.md) where appropriate.CHANGELOG.mdentry under## [Unreleased]if this change is user-visible. (N/A)cargo deny check. (N/A)Security considerations
Supply-chain hardening of the gate: base filesystem, package and OpenSSL now come from one frozen archive state, verified by apt's Release signatures; an OpenSSH change reaches the gate only through a reviewed bump of four values that move together (digest,
SNAPSHOT,OPENSSH_CLIENT_VERSION,SSH_V_EXPECTED). New runtime dependency: snapshot.debian.org reachability, withAcquire::Retries "3". Every value in therun:script enters throughenv:.Notes for reviewers
Proposedon merge and flips in a follow-up.Automated reviews
PRs authored by
dependabot[bot](and other bots) do not trigger opencode, Claude Code Review or codex.They are covered by CI (
commit-lint,build,cargo deny,openssh-interop;cargo auditruns weekly) and manual review when needed.https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa