chore(compose): require bootstrap admin env vars instead of defaulting to admin/admin
The previous interpolation used `${PICLOUD_ADMIN_USERNAME:-admin}` and
`${PICLOUD_ADMIN_PASSWORD:-admin}`, which made docker compose silently
bootstrap a production stack with `admin`/`admin` whenever the operator
forgot to set them. Flip to `${VAR:?…}` so an unset value aborts
`docker compose up` with a clear "set this var" message; dev still gets
the convenient default through the gitignored `.env` (documented in
`.env.example`).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -29,3 +29,11 @@ RUST_LOG=info,picloud=debug
|
||||
# Public base URL the dashboard uses to render full URLs for user routes.
|
||||
# Set to the host:port (and scheme) users actually reach in their browser.
|
||||
PICLOUD_PUBLIC_BASE_URL=http://localhost:8000
|
||||
|
||||
# ---------- Bootstrap admin ----------
|
||||
# Required. Used once on first startup to seed the admin_users table.
|
||||
# Ignored on subsequent boots if the table is non-empty. For prod,
|
||||
# prefer PICLOUD_ADMIN_PASSWORD_HASH (pre-computed Argon2id PHC) so the
|
||||
# raw password never lands in env or compose files; see blueprint §11.5.
|
||||
PICLOUD_ADMIN_USERNAME=admin
|
||||
PICLOUD_ADMIN_PASSWORD=admin
|
||||
|
||||
Reference in New Issue
Block a user