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
@@ -194,7 +194,7 @@ def _make_handler(manager: "AlbyHubManager") -> type:
400,
{
"status": "ERROR",
"reason": "Exactly one amount parameter is required",
"reason": "A single amount parameter is required",
},
)
return