Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add seqcli setting names|show|set|clear commands #299

Merged
merged 7 commits into from
Dec 5, 2023

Conversation

nblumhardt
Copy link
Member

Seq.Api needs an update to make all settings available (we'll do that in the near future :-)) but the primary utility of this command group right now is the rotation of Azure AD and OIDC client secrets, which can be set using:

echo "some secret" | seqcli setting set -n AzureADClientKey --value-stdin

and similarly for OpenIdConnectClientSecret.

@nblumhardt
Copy link
Member Author

Following up with the usual help listing for the added commands :-)

>seqcli help setting
Usage: seqcli setting <sub-command> [<args>]

Available sub-commands are:
  clear       Clear a runtime-configurable server setting
  names       Print the names of all supported settings
  set         Change a runtime-configurable server setting
  show        Print the current value of a runtime-configurable server setting

Type `seqcli help setting <sub-command>` for detailed help

> seqcli help setting names
seqcli setting names

Print the names of all supported settings

Arguments:
      --verbose              Print verbose output to `STDERR`

> seqcli help setting show
seqcli setting show [<args>]

Print the current value of a runtime-configurable server setting

Arguments:
  -n, --name=VALUE           The setting name, for example `
                               OpenIdConnectClientSecret`
  -s, --server=VALUE         The URL of the Seq server; by default the `
                               connection.serverUrl` config value will be used
  -a, --apikey=VALUE         The API key to use when connecting to the server;
                               by default the `connection.apiKey` config
                               value will be used
      --profile=VALUE        A connection profile to use; by default the `
                               connection.serverUrl` and `connection.apiKey`
                               config values will be used
      --verbose              Print verbose output to `STDERR`

> seqcli help setting set
seqcli setting set [<args>]

Change a runtime-configurable server setting

Arguments:
  -n, --name=VALUE           The setting name, for example `
                               OpenIdConnectClientSecret`
  -v, --value=VALUE          The setting value, comma-separated if multiple
                               values are accepted
      --value-stdin          Read the value from `STDIN`
  -s, --server=VALUE         The URL of the Seq server; by default the `
                               connection.serverUrl` config value will be used
  -a, --apikey=VALUE         The API key to use when connecting to the server;
                               by default the `connection.apiKey` config
                               value will be used
      --profile=VALUE        A connection profile to use; by default the `
                               connection.serverUrl` and `connection.apiKey`
                               config values will be used
      --verbose              Print verbose output to `STDERR`

> seqcli help setting clear
seqcli setting clear [<args>]

Clear a runtime-configurable server setting

Arguments:
  -n, --name=VALUE           The setting name, for example `
                               OpenIdConnectClientSecret`
  -s, --server=VALUE         The URL of the Seq server; by default the `
                               connection.serverUrl` config value will be used
  -a, --apikey=VALUE         The API key to use when connecting to the server;
                               by default the `connection.apiKey` config
                               value will be used
      --profile=VALUE        A connection profile to use; by default the `
                               connection.serverUrl` and `connection.apiKey`
                               config values will be used
      --verbose              Print verbose output to `STDERR`

@KodrAus
Copy link
Member

KodrAus commented Dec 5, 2023

Is this one ready to review now?

@nblumhardt
Copy link
Member Author

@KodrAus should be now 👍

@nblumhardt nblumhardt merged commit 564d62a into datalust:dev Dec 5, 2023
1 check passed
@liammclennan liammclennan mentioned this pull request Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants