Skip to main content

max / docengine

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: e3908c26257cb38f1a90ba33a24908622916810b
Parent: 956329b
1 file changed, +15 insertions, -0 deletions
M .gitignore +15
@@ -2,3 +2,18 @@
2 2 **/target
3 3 Cargo.lock
4 4 .DS_Store
5 +
6 + # Secrets and credentials. The baseline every repo under ~/Code carries, kept
7 + # identical so no repo is the one that forgot. Suffix-matched rather than
8 + # `*.env`, which would also catch committed environment files that hold no
9 + # secrets (sweep systemd/sweep.env). `.env.example` is a tracked template and
10 + # is negated back in.
11 + .env
12 + .env.*
13 + !.env.example
14 + *.pem
15 + *.key
16 + *.p8
17 + *.p12
18 + *.pfx
19 + credentials.json