fix: address code review — restrict ReadOnlyPaths to unlock-password, clarify amount error message

ReadOnlyPaths for nwc-lnurl.service now lists only the specific file
/var/lib/albyhub/unlock-password (least-privilege) instead of the
whole /var/lib/albyhub directory.

Amount-duplicate error message changed to "A single amount parameter is
required" (clearer for 2+ values than "Exactly one").

Test assertion updated to match new message text.
This commit is contained in:
copilot-swe-agent[bot]
2026-07-27 04:09:41 +00:00
committed by GitHub
parent 2f744c0850
commit ecd83a8262
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ lib.mkIf config.sovran_systemsOS.features."nwc-wallets" {
ProtectSystem = "strict";
ReadOnlyPaths = [
"/var/lib/domains/lightning"
"/var/lib/albyhub"
"/var/lib/albyhub/unlock-password"
];
};
};