fix(enterprise): enabling auth before data nodes are attached prevents admin user creation (#4923) (#4928)

Closes Data node installation - Step 4: Create an admin user #4923

- Remove the instruction to enable auth before data nodes are installed.
- Admin user creation and auth instructions are already included in the next step following data node creation.
pull/4905/head
Jason Stirnaman 2023-05-09 17:27:35 -05:00 committed by GitHub
parent 2362a2a386
commit 10ebcdcd10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 17 deletions

View File

@ -32,7 +32,8 @@ To enable authentication in a cluster, do the following:
1. Next, create an admin user (if you haven't already).
Using the [`influx` CLI](/enterprise_influxdb/v1.10/tools/influx-cli/),
run the following command:
```
```sql
CREATE USER admin WITH PASSWORD 'mypassword' WITH ALL PRIVILEGES
```
1. Restart InfluxDB Enterprise.

View File

@ -150,7 +150,6 @@ For added security, follow these steps to verify the signature of your InfluxDB
First, in `/etc/influxdb/influxdb.conf`:
* Uncomment `hostname` at the top of the file and set it to the full hostname of the data node.
* Uncomment `auth-enabled` in the `[http]` section and set it to `true`.
* Uncomment `meta-auth-enabled` in the `[meta]` section and set it to `true`.
* Uncomment `meta-internal-shared-secret` in the `[meta]` section and set it to a long pass phrase.
The internal shared secret is used in JWT authentication for intra-node communication.
@ -194,9 +193,6 @@ hostname="<enterprise-data-0x>"
# The bind address used by the HTTP service.
# bind-address = ":8086"
# Determines whether HTTP authentication is enabled.
auth-enabled = true # Recommended, but not required
[...]
# The JWT auth shared secret to validate requests using JSON web tokens.
@ -297,18 +293,6 @@ If not, there may be artifacts of a previous cluster in the metastore.
If you do not see your data nodes in the output, please retry adding them
to the cluster.
## Step 4: Create an admin user
In [Step 2](#b-edit-the-data-node-configuration-files), you enabled authentication.
To access the cluster, you must create at least one admin user.
To create an admin user, use the [`influx` CLI](/enterprise_influxdb/v1.10/tools/influx-cli/), and run the following:
```sql
CREATE USER admin WITH PASSWORD '<password>' WITH ALL PRIVILEGES
```
---
## Next steps
Once your data nodes are part of your cluster, do the following: