banger/internal/updater
Thales Maciel b7c9661c99
updater: embed real cosign public key for v0.1.0 release signing
The placeholder in BangerReleasePublicKey is replaced with the
production cosign public key (P-256 ECDSA). The matching private
key is stored offline by the maintainer; this is the public half
that every banger CLI baked from this commit forward will use to
verify SHA256SUMS signatures.

cosign.pub is also committed at the repo root so external auditors
can re-verify a release without parsing the Go source.

The placeholder-refuses test now swaps the embedded key for a
synthetic placeholder for the duration of the test, since the
default value is no longer a placeholder.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 12:50:52 -03:00
..
download.go updater: download/stage/swap/rollback flow steps 2026-04-29 12:30:22 -03:00
flow_test.go updater: download/stage/swap/rollback flow steps 2026-04-29 12:30:22 -03:00
manifest.go update: docs + publish script for the self-update feature 2026-04-29 12:43:46 -03:00
manifest_test.go updater: manifest + SHA256SUMS parsing scaffolding 2026-04-29 12:24:36 -03:00
sha256sums.go updater: manifest + SHA256SUMS parsing scaffolding 2026-04-29 12:24:36 -03:00
sha256sums_test.go updater: manifest + SHA256SUMS parsing scaffolding 2026-04-29 12:24:36 -03:00
stage.go update: docs + publish script for the self-update feature 2026-04-29 12:43:46 -03:00
swap.go update: docs + publish script for the self-update feature 2026-04-29 12:43:46 -03:00
verify_signature.go updater: embed real cosign public key for v0.1.0 release signing 2026-04-29 12:50:52 -03:00
verify_signature_test.go updater: embed real cosign public key for v0.1.0 release signing 2026-04-29 12:50:52 -03:00