fix(bookstack): drop hardcoded secrets from defaults
bookstack_db_root_password, bookstack_db_password and bookstack_admin_password shipped as real strings in defaults, despite the comment two lines above promising 'empty defaults force assert to fail until set'. The Validate task in tasks/main.yml asserts each is non-empty, so set them to '' and let the assert do its job. Mirror the docstring comment to show how to generate each one with openssl rand.
This commit is contained in:
parent
9d539d0da4
commit
1dbeece5f0
1 changed files with 8 additions and 3 deletions
|
|
@ -38,9 +38,14 @@ bookstack_db_user: "bookstack"
|
||||||
# REQUIRED SECRETS — empty defaults force `assert` to fail until set.
|
# REQUIRED SECRETS — empty defaults force `assert` to fail until set.
|
||||||
# Provide via OpenBao lookup, Ansible Vault, or extra-vars.
|
# Provide via OpenBao lookup, Ansible Vault, or extra-vars.
|
||||||
# Never commit real secrets to version control.
|
# Never commit real secrets to version control.
|
||||||
bookstack_db_root_password: "txwmMJD9xTNz3Y73fPWSMPZTR2fEpfF5"
|
#
|
||||||
bookstack_db_password: "DgLYFudJg324yLydLxS3vmgux9LQL9bb"
|
# Generate with:
|
||||||
bookstack_admin_password: "NE7TN7cTjCnLHJ2Y4xfiTp"
|
# bookstack_db_root_password: openssl rand -base64 32 | tr -d '/+='
|
||||||
|
# bookstack_db_password: openssl rand -base64 32 | tr -d '/+='
|
||||||
|
# bookstack_admin_password: openssl rand -base64 24 | tr -d '/+='
|
||||||
|
bookstack_db_root_password: ""
|
||||||
|
bookstack_db_password: ""
|
||||||
|
bookstack_admin_password: ""
|
||||||
bookstack_oidc_client_secret: ""
|
bookstack_oidc_client_secret: ""
|
||||||
|
|
||||||
# APP_KEY is generated automatically on first run and persisted on the host.
|
# APP_KEY is generated automatically on first run and persisted on the host.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue