Skip to content

Commit 0cf4f20

Browse files
fix(gitleaks): add inline allowlist for age public keys
Add gitleaks:allow comments to suppress false positives on age public keys. Age public keys are safe to commit (they're encryption keys, not secrets), but gitleaks flags them as generic-api-key due to base64-like format. Files updated: - ci-cd-setup.md: CI age key documentation (age public key) - sops-bootstrap.sh: placeholder age keys for bootstrap detection
1 parent 5a08c5c commit 0cf4f20

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/docs/src/content/docs/guides/ci-cd-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ CI_AGE_KEY: age-secret-key-1... # CI age private key from .sops.yaml
5252
```
5353
5454
The `CI_AGE_KEY` should be the private key corresponding to the public key:
55-
`age1m9m8h5vqr7dqlmvnzcwshmm4uk8umcllazum6eaulkdp3qc88ugs22j3p8`
55+
`age1m9m8h5vqr7dqlmvnzcwshmm4uk8umcllazum6eaulkdp3qc88ugs22j3p8` <!-- gitleaks:allow - age public key -->
5656

5757
### 1.5 Encrypt the Secrets File
5858

scripts/sops-bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ fi
1919
CURRENT_KEY=$(grep "^ - &${ROLE} " .sops.yaml | awk '{print $3}')
2020

2121
# Placeholder keys indicate this is a fresh bootstrap
22+
# gitleaks:allow - age public keys used as placeholders
2223
if [ "$CURRENT_KEY" = "age1dn8w7y4t4h23fmeenr3dghfz5qh53jcjq9qfv26km3mnv8l44g0sghptu3" ] || \
2324
[ "$CURRENT_KEY" = "age1m9m8h5vqr7dqlmvnzcwshmm4uk8umcllazum6eaulkdp3qc88ugs22j3p8" ]; then
2425
IS_ROTATION=false

0 commit comments

Comments
 (0)