src.nth.io/

summaryrefslogtreecommitdiff
path: root/bitcoind
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-07-30 18:19:43 -0500
committerLuke Hoersten <[email protected]>2026-07-30 18:19:43 -0500
commit81809160f41aed1161070148d8cf60a1ed24a6f3 (patch)
tree6646351354adff64ba98e09d37bbc287e06493a9 /bitcoind
parent4d15c92944280312d47198d6861918b3316784bf (diff)
bitcoind-prometheus-exporter: grant read access to bitcoin.conf
The exporter reads rpc credentials from bitcoin.conf but the bitcoind role writes it 0600 bitcoin:bitcoin, so the prometheus user could never read it (only long-lived processes predating the tightened mode kept working). Make the conf group-readable and add prometheus to the bitcoin group.
Diffstat (limited to 'bitcoind')
-rw-r--r--bitcoind/tasks/main.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitcoind/tasks/main.yaml b/bitcoind/tasks/main.yaml
index a11dbbf..f99256c 100644
--- a/bitcoind/tasks/main.yaml
+++ b/bitcoind/tasks/main.yaml
@@ -49,7 +49,9 @@
dest: "{{bitcoind_conf_dir}}/bitcoin.conf"
owner: "{{bitcoind_user}}"
group: "{{bitcoind_user}}"
- mode: "0600"
+ # group-readable: the prometheus exporter reads rpc credentials from this
+ # file (its role adds the prometheus user to the bitcoin group)
+ mode: "0640"
notify: restart bitcoind
no_log: true