upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric <tilcboy44@gmail.com>2026-07-30 07:34:47 -0600
committerGitHub <noreply@github.com>2026-07-30 10:34:47 -0300
commit68b11f46fc4d3035292b41ef1dee9ae957e0a0ef (patch)
tree6b024d24a362d28081cd01be92811d4f91d4bc1f
parenta3f9d87ef3c610f4158b64e44ac6b074d386b06a (diff)
gitignore: cover the key files the node actually writes (#43)
.gitignore ignores *.dat and wallet.dat, but the node also writes three files in its data directory that are not .dat and are just as sensitive: btf_enc.key this node's .btf service key -- its network identity nostr.key the Nostr key its descriptors are signed with walletrpc.token bearer token authorising spends over the wallet API A node run with its data directory inside a working tree -- which is the obvious thing to do while developing -- leaves all three untracked but committable, and `git add -A` takes them. Losing btf_enc.key means losing your address; publishing walletrpc.token hands over the wallet to anyone who can reach the port. Also ignore key backup archives and stray .patch/.rej/.orig files. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
-rw-r--r--.gitignore22
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index b997d34..9f7153b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -36,3 +36,25 @@ dist/
36.DS_Store 36.DS_Store
37Thumbs.db 37Thumbs.db
38src/bitflash 38src/bitflash
39
40# Key material and secrets the node creates in its data directory.
41# *.dat above already covers wallet.dat, but these are not .dat files and are
42# every bit as sensitive: btf_enc.key and nostr.key are this node's .btf
43# identity, and walletrpc.token is bearer authority to spend from the wallet.
44*.key
45btf_enc.key
46nostr.key
47walletrpc.token
48
49# Wallet/key backups
50*.tgz
51*.tar.gz
52bitflash-keys-*
53
54# Mempool dump, if a node is configured to write one
55mempool.txt
56
57# Patches and scratch files kept alongside a working tree
58*.patch
59*.rej
60*.orig