Commit graph

14 commits

Author SHA1 Message Date
Elle Mouton
76250ca835
litcli: use cancellable contexts
In this commit, we use the signal.Interceptor to cancel the contexts we
use for our CLI calls.
2025-01-13 09:29:53 +02:00
Oliver Gugger
d3413ae637
accounts+cmd/litcli: fix formatting 2024-01-03 11:14:51 +01:00
Brian
c39cd3cde9
main: make cmd documentation coherent 2023-10-31 07:07:15 -06:00
Elle Mouton
143876d1ec
litcli: prepare for a client connection without a macaroon
In preparation for an upcoming commit where litcli commands for the
Status server are added, the `getClientConn` method is updated with a
`noMac` parameter. If true, them the connection will be made without a
macaroon.
2023-09-22 11:59:24 +02:00
Elle Mouton
d3cab70928
cmd/litcli: create account sessions
Create LNC account sessions through litcli
2023-02-13 19:33:55 +02:00
Elle Mouton
6de34a89e2
litcli: add lit-autopilot commands 2023-01-27 06:47:13 +02:00
Elle Mouton
15cd1bdef9
multi: support regex URIs
With this commit, a user can now specify a regex when specifying custom
permissions for an LNC session. This regex will be used to select
permissions for URIs that match the regex.
2022-11-29 12:32:14 +02:00
Elle Mouton
61792bf8db
litcli: update to allow for custom URI list 2022-10-26 12:59:28 +02:00
Oliver Gugger
a144cfea63
cmd/litcli: refactor client conn
As a preparation to add more litd specific RPCs, we refactor the client
connection to use the generic interface instead of a specific type.
2022-10-19 10:57:17 +02:00
Elle Mouton
7a4d84a21b
cmd/litcli: use macaroon instead of ui password
Remove the use of the UI password from litcl. Use the litd macaroon
instead. Note, this means that in stateless mode, litcli won't have a
macaroon to use on disk and one must be baked specifically.
2022-06-07 11:46:02 +02:00
Oliver Gugger
a37b56393e
cmd/litcli: change default session expiry to 3 months
The default expiry of one hour was way too short for anything practical
and we increase it to 90 days which is almost three months.
The user can still override this value manually by specifying the flag.
2022-02-23 09:48:50 +01:00
Elle Mouton
3b5d99048d
cmd/litcli: add session type flag to litcli
Add flag to litcli so that we can create sessions of the admin or
readonly macaroon type through the cli.
This commit also results in it no longer being possible to create a
UIPassword session through the CLI.
2022-02-15 10:41:42 +00:00
Oliver Gugger
52896210be
app+litcli: fix mailbox URL 2021-11-24 20:48:38 +01:00
Elle Mouton
9b84dbc7c9
cmd/litcli: add litcli for session functions 2021-11-24 13:44:26 -05:00