Merge pull request #2362 from twistlock/populate_htpasswd

Create and populate htpasswd file if missing
This commit is contained in:
Olivier Gambier
2018-08-31 00:25:37 -07:00
committed by GitHub
5 changed files with 96 additions and 5 deletions

View File

@@ -570,6 +570,7 @@ The `auth` option is **optional**. Possible auth providers include:
- [`silly`](#silly)
- [`token`](#token)
- [`htpasswd`](#htpasswd)
- [`none`]
You can configure only one authentication provider.
@@ -615,6 +616,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.