config: add the ability for plugins to specify that config values should be concealed.
And use it for `exposesecret-passphrase`. This is probably overly cautious, but it makes me feel a little better that we won't leak it to someone with read-only access. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -124,10 +124,11 @@ Plugins are free to register any `name` for their `rpcmethod` as long as the nam
|
||||
|
||||
There are currently four supported option 'types':
|
||||
|
||||
- string: a string
|
||||
- bool: a boolean
|
||||
- int: parsed as a signed integer (64-bit)
|
||||
- flag: no-arg flag option. Presented as `true` if config specifies it.
|
||||
- `string`: a string
|
||||
- `string-conceal`: a string which will appear as "..." in `listconfigs`.
|
||||
- `bool`: a boolean
|
||||
- `int`: parsed as a signed integer (64-bit)
|
||||
- `flag`: no-arg flag option. Presented as `true` if config specifies it.
|
||||
|
||||
In addition, string and int types can specify `"multi": true` to indicate they can be specified multiple times. These will always be represented in `init` as a (possibly empty) JSON array. "multi" flag types do not make
|
||||
sense.
|
||||
|
||||
Reference in New Issue
Block a user