Files
nix-bitcoin/modules
Jonas Nick df184b6e06 lnd: don't pass the admin macaroon in curl argv
`lnd-create-macaroons` interpolated the hex-encoded admin macaroon into
`curl`'s argv, where any local user could read it from world-readable
`/proc/<pid>/cmdline`. The unit's `ProtectProc=invisible` doesn't apply,
because `nbLib.rootScript`'s `+` prefix disables sandboxing for the
process. Pass the header on a file descriptor instead, so the credential
never enters any argv (`printf` is a bash builtin); the request sent to
lnd is unchanged. Only configurations with a non-empty
`services.lnd.macaroons` were affected, which `services.charge-lnd` and
`services.btcpayserver` with `lightningBackend = "lnd"` set automatically.
2026-08-12 18:02:07 +00:00
..
2024-11-27 21:35:46 +01:00
2024-07-18 20:57:00 +02:00
2024-07-20 22:41:18 +02:00
2024-07-18 20:57:00 +02:00
2026-05-11 08:15:49 +00:00
2026-05-11 08:14:22 +00:00
2025-06-02 10:46:55 +02:00
2023-10-31 13:44:04 +01:00
2024-11-27 18:48:24 +01:00
2024-07-18 20:57:00 +02:00
2024-07-18 20:57:00 +02:00
2024-07-18 20:57:00 +02:00