You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config: add super macaroon startup flags and path validation
Introduce configuration flags to enable baking a super macaroon on
startup. Add --bake-super-macaroon (none, read-only, read-write) and
--super-macaroon-path.
Also add validation logic to ensure that the configured super macaroon
path ends with the expected '.macaroon' suffix, rejecting startup early
otherwise.
// Config is the main configuration struct of lightning-terminal. It contains
@@ -203,6 +226,9 @@ type Config struct {
203
226
204
227
MacaroonPathstring`long:"macaroonpath" description:"Path to write the macaroon for litd's RPC and REST services if it doesn't exist."`
205
228
229
+
BakeSuperMacaroonstring`long:"bake-super-macaroon" description:"Bake a super macaroon on startup if it doesn't exist." choice:"none" choice:"read-only" choice:"read-write"`
230
+
SuperMacaroonPathstring`long:"super-macaroon-path" description:"Path to write the auto-baked super macaroon. This must include both the directory and the name of the macaroon file itself (which must end with the .macaroon suffix)."`
231
+
206
232
FirstLNCConnDeadline time.Duration`long:"firstlncconndeadline" description:"The duration after a new LNC session will be revoked if no connection is made with it. This only applies for the first connection which is made using the pairing phrase. "`
207
233
208
234
// DatabaseBackend is the database backend we will use for storing all
0 commit comments