Skip to main content

max / quasi

Carry the shared secrets baseline in .gitignore Only MNW ignored *.pem/*.key/*.p8/*.p12/*.pfx, and spaghetti, buckets_of_money and most libraries had no .env rule at all, so the guardrail depended on which repo a secret happened to land in. Suffix matching rather than *.env keeps committed environment files that hold no secrets visible, and .env.example is negated back in.
Author: Max Johnson <me@maxj.phd> · 2026-08-08 23:47 UTC
Signed with PGP, not checked
Commit: b34b74e5359971b86577ed4575f35fb9f2d386cd
Parent: 29b0c50
1 file changed, +15 insertions, -0 deletions
M .gitignore +15
@@ -5,3 +5,18 @@
5 5 CLAUDE.md
6 6 CLAUDE.local.md
7 7 .claude/
8 +
9 + # Secrets and credentials. The baseline every repo under ~/Code carries, kept
10 + # identical so no repo is the one that forgot. Suffix-matched rather than
11 + # `*.env`, which would also catch committed environment files that hold no
12 + # secrets (sweep systemd/sweep.env). `.env.example` is a tracked template and
13 + # is negated back in.
14 + .env
15 + .env.*
16 + !.env.example
17 + *.pem
18 + *.key
19 + *.p8
20 + *.p12
21 + *.pfx
22 + credentials.json