RTL/backend
Suheb 86d876b09e
Stop logging the eclair auth header at DEBUG level (#1664)
* Stop logging the eclair auth header at DEBUG level

getChannels in the eclair channels controller logged its whole request
options object. Eclair authenticates with HTTP basic auth, so those
options carry the configured lnApiPassword in an authorization header -
raising an eclair node's logLevel to DEBUG wrote
"authorization":"Basic <base64>" into the node log file, which is a
recoverable form of the credential and is routinely shared when
debugging.

The log now carries only the request url and form, matching every other
DEBUG log in the controllers. This was the only site in server/ passing a
whole options object to the logger; the rest log options.form, .url,
.body or .qs, none of which hold credentials.

Present since 0.12.0 and only reachable by opting in to DEBUG (the
default log level is ERROR), but it contradicted the logging guarantee
stated for #1659.

Found by scanning node logs at DEBUG while verifying the 0.15.10 branch
against the regtest fixture. Regression test added in
test/backend/eclair-channels.test.mjs; it fails on the previous code with
"auth header key must not reach the node log".

* Fill in PR number in release note (#1664)
2026-08-03 22:42:27 -07:00
..
controllers Stop logging the eclair auth header at DEBUG level (#1664) 2026-08-03 22:42:27 -07:00
models Add Disable Authentication option in the backend 2026-07-19 22:01:23 -07:00
routes Harden login request validation (#1654) 2026-08-03 22:42:27 -07:00
utils Reduce exposure of authentication secrets in logs and config responses (#1659) 2026-08-03 22:42:27 -07:00