Create and populate htpasswd file if missing
If htpasswd authentication option is configured but the htpasswd file is missing, populate it with a default user and automatically generated password. The password will be printed to stdout. Signed-off-by: Liron Levin <liron@twistlock.com>
This commit is contained in:
@@ -553,6 +553,7 @@ The `auth` option is **optional**. Possible auth providers include:
|
||||
- [`silly`](#silly)
|
||||
- [`token`](#token)
|
||||
- [`htpasswd`](#htpasswd)
|
||||
- [`none`]
|
||||
|
||||
You can configure only one authentication provider.
|
||||
|
||||
@@ -598,6 +599,9 @@ The only supported password format is
|
||||
are ignored. The `htpasswd` file is loaded once, at startup. If the file is
|
||||
invalid, the registry will display an error and will not start.
|
||||
|
||||
> **Warning**: If the `htpasswd` file is missing, the file will be created and provisioned with a default user and automatically generated password.
|
||||
> The password will be printed to stdout.
|
||||
|
||||
> **Warning**: Only use the `htpasswd` authentication scheme with TLS
|
||||
> configured, since basic authentication sends passwords as part of the HTTP
|
||||
> header.
|
||||
|
Reference in New Issue
Block a user