security: bind release artifact identity end to end - #354
Merged
codeforester merged 4 commits intoAug 31, 2026
Merged
Conversation
codeforester
deleted the
security/348-20260831-security-bind-release-verification-to-one-complete-coherent
branch
August 31, 2026 03:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Issue
Fixes #348
Validation
bats tests/release-artifact.bats(7 passed, including omitted/duplicate/unsafe checksum, altered provenance subject/commit, SBOM mismatch, version mismatch, and ambiguous asset cases)tests/bash-42-release-smoke.sh(release guard plus canonical artifact build/verify passed locally)./tests/validate.sh(567 BATS tests and every repository validation stage passed)bash -n scripts/release-artifact tests/bash-42-release-smoke.shshellcheck scripts/release-artifact tests/release-artifact.bats tests/bash-42-release-smoke.shgit diff --checkDemo Impact
None.
Docs Impact
The release process now states the complete, coherent asset-set invariant and its fail-closed handling.
API Impact
No library API changes.
scripts/release-artifact verifynow rejects incomplete, ambiguous, noncanonical, or internally inconsistent inputs that previously passed.CI Impact
The host runner builds a canonical fixture, then mounts it read-only into the networkless Bash 4.2 container; artifact verification itself executes under Bash 4.2 and enforces the minimum-version requirement for this trust boundary.
Security Notes
Verification no longer trusts whichever matching file or checksum rows happen to appear first. Even after an attacker recomputes external checksums, the selected archive digest, embedded version/commit metadata, provenance, and SBOM must reconstruct to the repository's canonical records.
Notes
Verification remains offline and uses only the repository's existing Bash, Git, tar, gzip, checksum, and POSIX text-tool dependencies.
Checklist
<category>/<issue>-<YYYYMMDD>-<slug>.base_manifest.yamlare complete.Fixes #348.