NIFI-9367 Updated Docker README describing generated credentials

This closes #5511

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Laurent Edel 2021-11-05 11:00:09 +01:00 committed by exceptionfactory
parent 01f9d59ee3
commit ca5a92399a
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
1 changed files with 11 additions and 0 deletions

View File

@ -77,6 +77,16 @@ The minimum to run a NiFi instance is as follows:
This will provide a running instance, exposing the instance UI to the host system on at port 8443,
viewable at `https://localhost:8443/nifi`.
The default configuration generates a random username and password on startup. NiFi writes the generated credentials to the application log.
The following command can be used to find the generated credentials on operating systems with grep installed:
docker logs nifi | grep Generated
NiFi logs the generated credentials as follows:
Generated Username [USERNAME]
Generated Password [PASSWORD]
Environment variables can be used to set the NiFi communication ports and hostname using the Docker '-e' switch as follows:
@ -95,6 +105,7 @@ Single User Authentication credentials can be specified using environment variab
-e SINGLE_USER_CREDENTIALS_PASSWORD=ctsBtRBKHRAx69EqUghvvgEvjnaLjFEB \
apache/nifi:latest
Please note that the password must be 12 characters minimum, otherwise NiFi will generate a random username and password.
See `secure.sh` and `start.sh` scripts for supported environment variables.
### Standalone Instance secured with HTTPS and Mutual TLS Authentication