mirror of
https://github.com/go-sigma/sigma.git
synced 2026-10-28 15:05:06 +08:00
The authorization token, signing key and SCM credentials handed to a build runner were encrypted with AES-CTR, which has no integrity protection: a tampered environment value decrypted into garbage that downstream code would only fail on much later. Use crypt.Seal/crypt.Open for those values. The key stays the same per-build key derived from the builder and runner IDs, and every secret is sealed once up front instead of inline in the env list, so a failure is reported before the runner starts. Verification: - go build -tags "netgo,timetzdata,exclude_graphdriver_btrfs,containers_image_openpgp" ./... - CI_DATABASE_TYPE=turso go test -tags "netgo,timetzdata,exclude_graphdriver_btrfs,containers_image_openpgp" ./pkg/background/build/...