Update Enterprise auth configuration steps (#5255)

* upadte enterprise auth config steps, closes influxdata/DAR#366

* Update content/enterprise_influxdb/v1/administration/configure/security/authentication.md

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>

---------

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>
pull/5256/head
Scott Anderson 2023-11-29 10:23:55 -07:00 committed by GitHub
parent edcd8e3695
commit df791ea56e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 8 deletions

View File

@ -22,21 +22,29 @@ enable authentication to control access to your cluster.
To enable authentication in a cluster, do the following:
1. Set `auth-enabled` to `true` in the `[http]` section of the configuration files
1. Create an admin user (if you haven't already).
Using the [`influx` CLI](/enterprise_influxdb/v1/tools/influx-cli/),
run the following command:
```sql
CREATE USER <admin_user> WITH PASSWORD '<admin_password>' WITH ALL PRIVILEGES
```
**Replace the following:**
- `<admin_user>`: Admin username
- `<admin_password>`: Admin password
2. Set `auth-enabled` to `true` in the `[http]` section of the configuration files
for all meta **and** data nodes:
```toml
[http]
# ...
auth-enabled = true
```
1. Next, create an admin user (if you haven't already).
Using the [`influx` CLI](/enterprise_influxdb/v1/tools/influx-cli/),
run the following command:
```sql
CREATE USER admin WITH PASSWORD 'mypassword' WITH ALL PRIVILEGES
```
1. Restart InfluxDB Enterprise.
3. Restart all InfluxDB Enterprise meta and data nodes to apply the updated configuration.
Once restarted, InfluxDB Enterprise checks user credentials on every request
and only processes requests with valid credentials.