-
Notifications
You must be signed in to change notification settings - Fork 293
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
Document influx v1 auth
subcommands
#1768
Conversation
influx v1
subcommandsinflux v1 auth
subcommands
9779566
to
481c4ef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we haven't already, let's look at adding some task-based doc for these commands.
43e90f1
to
66d8aca
Compare
Changes forthcoming in influxdata/influxdb#19935. |
b842cdf
to
ad248e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This look great – I suggested a couple of minor edits
98bd89b
to
3d8e801
Compare
| `-o` | `--org` | The name of the organization | string | `$INFLUX_ORG` | | ||
| | `--org-id` | The ID of the organization | string | `$INFLUX_ORG_ID` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are one or both of these required?
| | `--org-id` | The ID of the organization | string | `$INFLUX_ORG_ID` | | ||
| | `--read-bucket` | The bucket ID | stringArray | | | ||
| | `--skip-verify` | Skip TLS certificate chain and host name verification | | | | ||
| `-t` | `--token` | Authentication token | string | `$INFLUX_TOKEN` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is token "required"? Let's note if flags are required throughout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @kelseiv. None of the --help
outputs for these commands notes any required flags, far as I can tell. I'll looking into the code to see if I can make any headway here.
| `-h` | `--help` | Help for the `delete` command | | | | ||
| | `--hide-headers` | Hide the table headers (defaults `false`) | | `$INFLUX_HIDE_HEADERS` | | ||
| | `--host` | HTTP address of InfluxDB | string | `$INFLUX_HOST` | | ||
| `-i` | `--id` | The authorization ID (required) | string | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the authorization ID different than the token referred to in influx auth create
(...didn't see an auth ID over there)? If not the token, how can folks find this ID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the auth ID is the "parent" of a token. An authorization has a set of data associated with it (name, description, token). The reason the influx auth create
command doesn't have an --id
flag is because the auth doesn't exist yet and InfluxDB assigns the ID upon creation.
influxdb/v2.0/tags: [authorization] | ||
--- | ||
|
||
The `influx v1 auth create` command creates a legacy authorization with the [InfluxDB 1.x compatibility API](/influxdb/v2.0/reference/api/influxdb-1x/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create an "all access" token with this command? If yes, which flags need to be set for that?
## Flags | ||
| Flag | | Description | Input type | {{< cli/mapped >}} | | ||
|:-----|:------------------|:------------------------------------------------------------------------|:----------:|:------------------------| | ||
| `-c` | `--active-config` | Config name to use for command | string | `$INFLUX_ACTIVE_CONFIG` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this delete the active config profile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this flag is a way to override which influx
config to use with this specific command. The command will delete an authorization token.
## Flags | ||
| Flag | | Description | Input type | {{< cli/mapped >}} | | ||
|:-----|:------------------|:------------------------------------------------------------------------|:----------:|:------------------------| | ||
| `-c` | `--active-config` | Config name to use for command | string | `$INFLUX_ACTIVE_CONFIG` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this list all authorizations for the specified active configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above, which I believe applies here.
Adds the new `influx v1` command, and documents the following `v1 auth` commands: `create`, `delete`, `list`, `set-active`, `set-inactive`, and `set-password`.
076e2b1
to
8afa502
Compare
Closing. Will create a new PR with same content. |
Closes #1736.