fix: gitignore data/ and untrack accidentally-committed .lnbits_auth_key
Previous commit32c4e5daccidentally staged data/.lnbits_auth_key via git add -A. LNbits generates this 32-byte secret at runtime; it must never be in version control. This commit: - Removes data/.lnbits_auth_key from the index (file stays on disk so the local LNbits keeps working). - Adds data/ + sqlite db files + pycache to .gitignore so the recurrence is prevented. SECURITY NOTE: the leaked key remains retrievable from commit32c4e5din this branch's history. Anyone who pulled v2-bitspire between push times has the key. Recommended remediation: 1. Regenerate LNbits auth key on the affected instance. 2. Optionally, force-push to rewrite history and remove the commit-32c4e5d evidence (separate operator decision). Future prevention: stage files by name, never use `git add -A` or `git add .` near runtime data dirs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
32c4e5d05a
commit
f2b609ab77
2 changed files with 6 additions and 5 deletions
10
.gitignore
vendored
10
.gitignore
vendored
|
|
@ -1,4 +1,6 @@
|
|||
__pycache__
|
||||
node_modules
|
||||
.mypy_cache
|
||||
.venv
|
||||
# LNbits runtime data — auth keys, DB files, etc. Never commit.
|
||||
data/
|
||||
*.sqlite3
|
||||
*.sqlite3-journal
|
||||
__pycache__/
|
||||
*.pyc
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
998ce48821b746c78ec676409ee9efc6
|
||||
Loading…
Add table
Add a link
Reference in a new issue