Skip to content

Latest commit

 

History

History
127 lines (106 loc) · 7.29 KB

release-control-remediation-0.56.0.md

File metadata and controls

127 lines (106 loc) · 7.29 KB

v0.56.0 Release-Control Remediation

Status: fixes implemented; clean external retest confirmed by the maintainer on 2026-09-05. This remediation history is not the permanent PASS attestation.

The incremental review of v0.55.0 through 4bb67147e72f6ac3168403c44e781a2246d61cb9 reported two Medium release-integrity findings and one Low dependency-provenance finding. No arithmetic finding was confirmed. This remediation changes no Rust, dependency versions or field APIs.

F1: Shortened Cumulative Baseline

The preceding public checkpoint is derived from the fixed five-minor cadence, not accepted from supplied metadata. Its tag must exist, as must every scheduled intermediate minor. All intervening minor/patch tags must be listed, signed by an authorized release key, ancestors of the candidate, and in chronological ancestry order. Stale, internal, missing and future baselines fail closed. The separate 1.0 candidate policy is not inferred from pre-1.0 arithmetic.

F2: Unauthenticated Or Failed Prior Reports

Readiness now inspects committed reports for the entire train, including the public baseline. Each report requires exactly one nonempty status, reviewed commit, tester, scope and real calendar date. The status must be PASS and the report must be a direct, single-parent, report-only child of its reviewed commit. Internal reports bind to their actual predecessor and current range end; public checkpoint reports use the cumulative baseline contract. The historical 0.55 anchor retains its original report format, without newly invented Assessment fields, but receives the same signature/lineage checks.

Signature verification uses only security/release-allowed-signers from the candidate's committed HEAD, not the operator's general keyring or a dirty policy file. The existing release key is identified by fingerprint SHA256:EoLRQ5k4J5pYz3UMFmkrV798gYFNkToGS2xEPvebqB4, verified against the published v0.55.0 tag. This file contains a public key only. Key rotation is a reviewed policy change before the report-only commit; retain historical keys needed to authenticate the release train. Invalid or untrusted signatures, lightweight tags, merge report commits and unrelated ancestry are rejected. The signed object's embedded version name must also match the requested tag. Verification and ancestry use a captured immutable object ID, not repeated reads of a mutable tag reference.

F3: Inherited Dependency Contracts

Cumulative change detection now compares effective Cargo dependency contracts against an authenticated baseline snapshot in a temporary directory. It covers requirements, features, default features, optionality, dependency kinds, targets, renames, registry/source identities and package feature maps. Workspace-relative paths are normalized; checkout relocation alone is not a package change. Unsupported escaping paths or nonregular archive entries fail closed rather than influencing a release comparison.

cargo metadata --offline --no-deps runs from the reviewed working directory with an explicit snapshot manifest, without modifying the active checkout or building the baseline. Source-path changes and internal version dependency closure remain enforced as before. Library dependency contracts and lockfile resolution are distinct: SBOM and transitive lockfile review remain required.

R1: Caller Identity Binding On Retest

The retest of c7373628f3f1ce6d32f5778767ce230c457d7bce confirmed the original F1-F3 cases fixed, but found a Medium release-authentication regression: callers compared a short Git version reference while discarding the different commit returned by the signature verifier. A competing refs/vVERSION could authorize an unsigned descendant or hide source changes. Git's reference resolution rules explain why a short version name is not an authoritative tag identity.

The publisher and post-tag evidence validator now share authenticated_candidate: capture HEAD once, authenticate the fully qualified tag against that candidate, and require the returned commit to equal it. Candidate movement during authentication or evidence validation fails closed. Pre-tag checks still permit a missing candidate tag when explicitly allowed. Current report validation reads the captured commit, not a new HEAD lookup.

Cumulative source and Cargo-contract comparisons now use the same baseline commit returned by one authentication call. The archive helper accepts only a full commit ID and never re-resolves a version. These are point-in-time checks; the release checkout must remain exclusively controlled throughout publication.

Regression Evidence

The tests use disposable repositories and temporary SSH keys, never real tag mutation or publication. Signed positive fixtures exercise the actual readiness shell script for internal and public candidates, including a patch milestone. Only SBOM generation is stubbed in these small readiness fixtures; real signature verification and evidence/ancestry checks run unchanged.

Negative cases cover shortened and stale baselines, missing checkpoint/minor tags, omitted patches, unsigned/untrusted/corrupted tags, dirty trust-policy replacement, FAIL/empty/duplicate-field reports, invalid dates and reviewed commits, wrong assessment/range/predecessor, unrelated history, merge parents and mixed code/report commits. Cargo fixtures test root-only inherited version, feature, default-feature and target-specific alias changes, correct dependency release classification, and equivalent contracts across temporary paths. R1 regressions additionally exercise signed current-tag success, unsigned descendants with and without shadow refs, actual post-tag readiness and its Python evidence entry point, source-only changes hidden behind a competing baseline ref, candidate movement in both directions, baseline movement before source/contract comparison, and rejection of mutable archive references.

python3 scripts/test-release-train.py
python3 scripts/test-release-evidence.py
python3 scripts/test-release-dependencies.py
python3 scripts/test-release-crates.py
scripts/test-release-readiness.sh
scripts/checks.sh

R1 local verification on 2026-09-05 passed: 16 signed-evidence tests, 8 dependency tests, 8 train tests, publisher/readiness regressions, and the full scripts/checks.sh suite (731 Rust tests passed, 0 failed, 4 ignored). Separate fuzz-workspace Clippy with --all-targets -- -D warnings also passed. These are remediation checks, not an independent clean pentest attestation.

Final release admission requires the permanent report, green CI/CodeQL and explicit maintainer approval. The updated runbook separates host-dependent integration evidence from tag-stage admission; the Podman limitation is retained in the report, not hidden or marked passed. The ignored root PENTEST.md is consumed and removed; this document preserves the actionable findings; the maintainer subsequently confirmed the R1 retest clean for e638f37. No Rust implementation changed during release-document finalization.

Reference contracts: Git SSH signature trust, Cargo configuration discovery, and Cargo metadata fields.