Repository navigation
Conversation
…an.org Closes the ADR-0020 follow-up (noted there, tracked from the #86 review): the interop gate pinned the base image by digest but still ran `apt-get install openssh-client` against live trixie, so the client version could drift silently between runs. Now the install replaces trixie's live sources with a frozen snapshot.debian.org timestamp (20260507T000000Z) and pins openssh-client=1:10.0p1-7+deb13u4 (binary OpenSSH_10.0p2), asserting the resolved version fail-closed. A version change now fails the install as a reviewed event rather than passing unnoticed. Bumping the snapshot or the pinned version is the reviewed event, in lockstep with the digest pin. Version + archive confirmed against packages.debian.org (trixie) and the snapshot.debian.org binfiles API (deb13u4 first seen 20260506T205057Z in the `debian` archive). Not locally reproducible — validated by the openssh-interop gate itself. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
|
Here's my review of this PR. Classification: CI/workflow changeSummaryStraightforward hardening that implements the snapshot-pinned OpenSSH installation ADR-0020 already decided. No blocking issues. FindingsNo high-signal findings. The change:
Nit (non-blocking)The VerdictLGTM. Ready to merge once CI passes (the interop gate itself will validate the snapshot resolves). |
There was a problem hiding this comment.
Pull request overview
This PR hardens the ADR-0020 OpenSSH interop gate by making the OpenSSH client install reproducible: it freezes APT to a specific snapshot.debian.org timestamp and pins openssh-client to an exact package version, so drift becomes a deliberate, reviewed change rather than a silent CI variation.
Changes:
- Replace live Debian trixie APT sources with a frozen
snapshot.debian.orgtimestamp (with Valid-Until checks disabled for archived metadata). - Pin
openssh-clientto an exact package version and fail the job if the resolved version differs. - Update the workflow commentary/error messaging to reflect the new “fully pinned” behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie main" \ | ||
| > /etc/apt/sources.list.d/snapshot.list | ||
| apt-get -o Acquire::Check-Valid-Until=false update |
There was a problem hiding this comment.
Bug: apt-get update runs over HTTPS before ca-certificates is installed
debian:trixie-slim does not ship ca-certificates. The snapshot source is configured with https://, so apt-get update (line 55) must verify the TLS certificate for snapshot.debian.org — but the CA trust store (/etc/ssl/certs/ca-certificates.crt) doesn't exist yet. The step aborts with server certificate verification failed. CAfile: none before it ever reaches the apt-get install that would have provided the certs.
The fix is to use http:// for the snapshot URL. APT's trust comes from the GPG-signed Release file, not TLS, so switching to plain HTTP causes no security regression — the archive is authenticated the same way as any Debian mirror.
Reference: .github/workflows/interop.yml L52–L57
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie main" \ | |
| > /etc/apt/sources.list.d/snapshot.list | |
| apt-get -o Acquire::Check-Valid-Until=false update | |
| echo "deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie main" \ | |
| > /etc/apt/sources.list.d/snapshot.list | |
| apt-get -o Acquire::Check-Valid-Until=false update |
| ssh -V 2>&1 | grep -qE "OpenSSH_10\.0p[0-9]" \ | ||
| || { echo "::error::expected OpenSSH 10.0p line in trixie"; ssh -V; exit 1; } | ||
| || { echo "::error::expected OpenSSH 10.0p line"; ssh -V; exit 1; } |
There was a problem hiding this comment.
CLAUDE.md violation: ADR-0020 decision contradicted without a superseding ADR
ADR-0020 explicitly records the following decision (line 20):
ssh -Voutput … must containOpenSSH_10.0p1
The pinned package (1:10.0p1-7+deb13u4) ships binary OpenSSH_10.0p2, and the regex here was relaxed to OpenSSH_10\.0p[0-9] to match that reality — which is the right operational move. But it means a concrete decision in an Accepted ADR is now contradicted by the implementation.
CLAUDE.md is explicit: "to change a decision, write a superseding ADR." Adding an errata banner to ADR-0020 wouldn't be sufficient here either, because per ADR-0015 errata correct claims that were wrong at acceptance — the original 10.0p1 claim was correct when ADR-0020 was accepted. The upstream version drift is a decision change, not a factual correction.
Suggested remedy: open a short superseding ADR (or an errata-tagged amendment if the maintainer judges this a factual correction rather than a policy change) that records: the pinned package version, the fact that trixie's build ships the 10.0p2 binary, and the relaxed regex policy. The ADR need not be large — it just needs to be the authoritative record.
First snapshot attempt failed: the trixie-slim base ships no CA bundle, so apt could not verify snapshot.debian.org over HTTPS and every index fetch failed. Install ca-certificates from the base image's own index first (it is a cert bundle, not the client under test), then switch to the frozen snapshot for curl/gcc/libc6-dev and the pinned openssh-client. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
The pinned openssh-client 1:10.0p1-7+deb13u4 is a security update, so it lives in trixie-security, not trixie main — the snapshot needs both the debian and debian-security archives at the frozen timestamp. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
|
Here's my review of this PR. Classification: CI/workflow changeImplements the snapshot-pinning hardening that ADR-0020:20-23 explicitly names as its pinning mechanism. No Rust code changes, no new dependencies, no crypto surface. Findings1. ADR-0020 version assertion is out of date (non-blocking)ADR-0020:20 states Per CLAUDE.md:167-168: "to change a decision, write a superseding ADR." And per ADR-0015:37: errata cover factual corrections to claims that were wrong at acceptance time. The original 2.
|
|
I've reviewed the PR against CLAUDE.md, the threat model, and the MANIFIESTO commitments. Here's my review: Classification: CI/workflow changeFindings1. ADR-0020 is now factually stale (high-signal)ADR-0020 line 20 states:
The pinned package CLAUDE.md:167: "Do not edit an accepted ADR in place … to change a decision, write a superseding ADR." ADR-0015 permits errata only for claims that were wrong at acceptance time — the That said, the ADR's core decision was about pinning, not about the specific version substring. The distinction between a superseding ADR vs. an errata annotation is debatable here since the normative requirement was reproducibility through pinning (which this PR fulfills), not the Recommendation: add an errata to ADR-0020 per ADR-0015, or a one-line superseding ADR. This is a governance blocking issue — CLAUDE.md is clear that an accepted ADR's concrete claims must match the code. 2. Non-blocking: redundant
|
deb13u4 lands in trixie-updates (same debian archive), not a separate debian-security snapshot. Point the snapshot sources at trixie + trixie-updates so the pinned version resolves. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
Review: CI/workflow changeImplements the snapshot-pinning hardening that ADR-0020:20-23 explicitly names. No Rust code, no new dependencies, no crypto surface. Finding 1: ADR-0020
|
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
| { | ||
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie main" | ||
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie-updates main" | ||
| } > /etc/apt/sources.list.d/snapshot.list |
There was a problem hiding this comment.
The interop job fails here in ~14 seconds because openssh-client=1:10.0p1-7+deb13u4 cannot be resolved from the configured snapshot sources.
The +deb13u4 version suffix identifies a Debian security-archive build. On snapshot.debian.org the security archive lives at a separate path — archive/debian-security/ — distinct from the main archive at archive/debian/. The snapshot source list here only configures archive/debian/ (trixie + trixie-updates), so apt cannot find the pinned version and exits immediately with "Version '1:10.0p1-7+deb13u4' for 'openssh-client' was not found".
The comment on lines 60–62 ("the deb13uN openssh-client update lands in trixie-updates … in the debian archive, not debian-security") describes the expected state but contradicts the actual CI outcome. The fix is to add the frozen debian-security snapshot source alongside the existing ones — and update that comment accordingly.
Reference: docs/adr/0020-phase-1-ci-openssh-interop-gate.md (exact-version pin rationale); relevant lines:
quantumssh/.github/workflows/interop.yml
Lines 60 to 67 in ae19b22
| { | |
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie main" | |
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie-updates main" | |
| } > /etc/apt/sources.list.d/snapshot.list | |
| { | |
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie main" | |
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie-updates main" | |
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian-security/${SNAPSHOT}/ trixie-security main" | |
| } > /etc/apt/sources.list.d/snapshot.list |
| # trixie + trixie-updates from the debian archive: the deb13uN | ||
| # openssh-client update lands in trixie-updates (snapshot API | ||
| # reports it in the `debian` archive, not debian-security). | ||
| { | ||
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie main" | ||
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie-updates main" | ||
| } > /etc/apt/sources.list.d/snapshot.list |
There was a problem hiding this comment.
The openssh-interop required gate is failing at this commit (ae19b22). The root cause is this sources block: openssh-client=1:10.0p1-7+deb13u4 carries a +deb13u4 suffix, which marks it as a Debian security update published to the trixie-security suite of the debian-security archive — not to trixie-updates in the debian main archive. With only the debian archive sources present, apt cannot resolve the pinned version and the install fails.
ADR-0020 designates this gate as a required check for merging to main. CLAUDE.md also requires: "everything committed must be functional."
The debian-security snapshot source is the correct approach — it was present in an earlier iteration of this PR. Replace this block with:
| # trixie + trixie-updates from the debian archive: the deb13uN | |
| # openssh-client update lands in trixie-updates (snapshot API | |
| # reports it in the `debian` archive, not debian-security). | |
| { | |
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie main" | |
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie-updates main" | |
| } > /etc/apt/sources.list.d/snapshot.list | |
| # main + security: the deb13uN openssh-client is a security update | |
| # (trixie-security), so both snapshot archives are needed. | |
| { | |
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian/${SNAPSHOT}/ trixie main" | |
| echo "deb [check-valid-until=no] https://snapshot.debian.org/archive/debian-security/${SNAPSHOT}/ trixie-security main" | |
| } > /etc/apt/sources.list.d/snapshot.list |
Reference:
quantumssh/.github/workflows/interop.yml
Lines 59 to 67 in ae19b22
Simplify the ADR-0020 snapshot hardening: freeze to a snapshot.debian.org timestamp and take trixie main's openssh-client as-is, instead of pinning the exact security-update revision (deb13u4), which lives across snapshot suites and proved a moving target to resolve. The gate needs a fixed, reproducible OpenSSH 10.x — which the frozen snapshot guarantees — not the newest revision. The resolved version is logged for the audit trail and asserted to the 10.0p line; bumping SNAPSHOT is the reviewed event. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
…kages The digest-pinned base already carries updated revisions (libc6 deb13u3), so pulling only trixie main from the snapshot conflicted (libc6-dev deb13u2 vs installed libc6 deb13u3). Add trixie-updates from the same snapshot so the updated revisions are available and openssh-client resolves to the current one — no exact-version pin (the frozen snapshot is the pin). Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
Review: CI/workflow changeImplements the snapshot-pinning hardening ADR-0020:20-23 explicitly names. No Rust code changes, no new dependencies, no crypto surface. Finding 1: ADR-0020
|
|
Closing without merge — the snapshot version-pin doesn't compose with the current gate design. What was learned (6 CI iterations):
Correct approach (a real follow-up, not a tweak): don't mix a newer digest-pinned base with an older snapshot. Either build the container The gate on |
|
Now I have the complete picture. Here's my review. Classification: CI/workflow changeSummaryAdds ADR-0020's snapshot.debian.org freeze (the hardening ADR-0020 already named) to the interop gate. Six commits across iterative refinement. No Rust code, no new dependencies, no crypto surface. The first commit ( Findings1. ADR-0020 explicit version pin was committed then retracted (high-signal, governance)ADR-0020:19:
Commit Commit This is a decision-level deviation from ADR-0020. The snapshot freeze alone is deterministic (same timestamp → same package), so the function is equivalent, but the ADR's explicitly named mechanism (
And ADR-0015: "Errata are for 'we said X but X is incorrect'; supersession is for 'we decided X, now we decide Y.'" Resolution paths:
2. ADR-0020
|
…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]>
Closes the ADR-0020 follow-up (the snapshot-pin hardening the ADR named, tracked from the #86 review).
Problem
The interop gate pinned the base image by digest, but
apt-get install openssh-clientstill hit live trixie — so the client version could drift silently between runs (the gate already had to relax itsssh -Vgrep to10.0p[0-9]when trixie moved p1→p2).Change
The install step now:
20260507T000000Z),check-valid-until=no(archived Release files are past Valid-Until).openssh-client=1:10.0p1-7+deb13u4(binaryOpenSSH_10.0p2).Version + archive verified against packages.debian.org/trixie/openssh-client and the snapshot.debian.org binfiles API (deb13u4 first seen
20260506T205057Z,debianarchive — not security, so no extra repo needed).Note
Not reproducible locally (needs the trixie container) — validated by the
openssh-interopgate in this PR's CI. If the snapshot/version doesn't resolve, the gate fails and I'll adjust.https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o