Commit ab0a8d4
chore(security): gitignore testdata/publisher.key + clarify in README
Audit before forking work to teammates: testdata/publisher.key (the
ed25519 private key used to sign attestation-good.json) was always
local-only and never in git history (verified via
`git log --all --diff-filter=A -- testdata/publisher.key` returning
empty). The repo's README incorrectly listed it as if it shipped.
Belt-and-suspenders:
- .gitignore now excludes testdata/publisher.key, testdata/*.key,
and *.pem at repo root
- README revised: explicitly notes the key is gitignored, public key
embedded in verifier.go (PublisherPublicKeyB64), and gives the
regeneration recipe for the rare case someone needs to rotate
Public key in verifier.go is the only key surface in this repo by
design — that's the verification path. Private key never goes in.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 706c7a8 commit ab0a8d4
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
4 | 14 | | |
5 | 15 | | |
6 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
68 | 90 | | |
69 | 91 | | |
70 | 92 | | |
0 commit comments