Skip to content

Commit 8dbef55

Browse files
Petrus PennanenPetrus Pennanen
authored andcommitted
stop tracking local agent configs that held live API keys
Public git history still has them. Rotate those keys. Working copies stay on disk, untracked.
1 parent a1131e5 commit 8dbef55

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,17 @@ data/*.json
99

1010
# Local machine configs hold live API keys - never commit
1111
config/*.json
12+
!config/*.example.json
1213
config/*.bak*
1314
*.bak.*
14-
# ...and so do the .env variants, which config/*.json above does NOT cover
15-
# and the bare `.env` rule above does not either (that matches a file named
16-
# exactly ".env", not "grok.env"). Found on the MacBook 2026-08-03: an
17-
# unignored config/grok.env holding a live key, one `git add -A` away from
18-
# a PUBLIC repo - the same leak as 2026-07-09, through the sibling nobody
19-
# added a rule for.
2015
*.env
2116
config/*.env
22-
# Per-agent poller configs hold live API keys - never commit (leaked 2026-07-09)
2317
gemini-config.json
2418
gemini-config.json.bak*
2519
scripts/__pycache__/
26-
27-
# Backup copies of edited files. The `*.bak.*` rule above requires a dot
28-
# AFTER "bak", so it matches "foo.bak.1" and silently does NOT match a plain
29-
# "foo.bak" outside config/. Found 2026-08-03: 14 such files sitting untracked
30-
# in a clone of this PUBLIC repo, one `git add -A` from being published. The
31-
# cp-before-edit habit is a good one; it just needs the ignore rules to match
32-
# the names it actually produces.
3320
*.bak
3421
*.bak_*
3522
*-bak
3623
*-bak.*
37-
38-
# Run logs. `*.log` above does not cover them, because start-all writes .out.
39-
# A log is a plausible place for a key to land: the file that prompted this
40-
# was logs/start-all.out on the Mini, which contained a live xfb_ agent key.
4124
logs/
4225
*.out

0 commit comments

Comments
 (0)