Skip to content

Commit 340ed46

Browse files
butler54claude
andcommitted
fix: remove embedded sigstore key, download from Red Hat instead
Remove keys/SIGSTORE-redhat-release3 from the repo — signing keys should not be checked into source control. Replace the Makefile targets with a single `make cache-keys` that downloads both the sigstore and GPG public keys from official Red Hat URLs: - Sigstore: https://www.redhat.com/security/data/63405576.txt - GPG: https://access.redhat.com/security/data/fd431d51.txt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 58a3b38 commit 340ed46

2 files changed

Lines changed: 9 additions & 37 deletions

File tree

Makefile

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,17 @@
44

55
include Makefile-common
66

7-
##@ GPG Key Management
8-
.PHONY: cache-gpg-keys
9-
cache-gpg-keys: ## Download and cache Red Hat GPG public keys to ~/.coco-pattern/
10-
11-
.PHONY: cache-sigstore-keys
12-
cache-sigstore-keys: ## Download and cache Red Hat sigstore public keys to ~/.coco-pattern/
13-
@echo "Fetching Red Hat sigstore public keys..."
14-
@mkdir -p ~/.coco-pattern
15-
@cp keys/SIGSTORE-redhat-release3 ~/.coco-pattern/SIGSTORE-redhat-release3
16-
@echo "Sigstore key cached at ~/.coco-pattern/SIGSTORE-redhat-release3"
17-
@echo "Key fingerprint: E60D446E63405576"
18-
@echo "Fetching Red Hat GPG public keys..."
7+
##@ Key Management
8+
.PHONY: cache-keys
9+
cache-keys: ## Download Red Hat signing keys from official sources to ~/.coco-pattern/
1910
@mkdir -p ~/.coco-pattern
11+
@echo "Fetching Red Hat sigstore public key (release key 3)..."
12+
@curl -fsSL https://www.redhat.com/security/data/63405576.txt -o ~/.coco-pattern/SIGSTORE-redhat-release3
13+
@echo " Cached at ~/.coco-pattern/SIGSTORE-redhat-release3"
14+
@echo "Fetching Red Hat GPG public key (release key 2)..."
2015
@curl -fsSL https://access.redhat.com/security/data/fd431d51.txt -o ~/.coco-pattern/RPM-GPG-KEY-redhat-release
21-
@echo "GPG key cached at ~/.coco-pattern/RPM-GPG-KEY-redhat-release"
22-
@echo "Key fingerprint (verify this matches Red Hat official):"
23-
@gpg --import-options show-only --import < ~/.coco-pattern/RPM-GPG-KEY-redhat-release 2>/dev/null | grep -A1 "^pub" || echo "Install gpg to verify fingerprint"
16+
@echo " Cached at ~/.coco-pattern/RPM-GPG-KEY-redhat-release"
17+
@echo "Done. Verify fingerprints at https://access.redhat.com/security/team/key/"
2418

2519

2620
##@ Reference Value Collection

keys/SIGSTORE-redhat-release3

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)