forked from 0xWheatyz/SPARC
Remove plaintext database credentials from docker-compose.yml #736
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap reference: P1 - Security hardening
docker-compose.ymlembedspostgres:postgrescredentials in plain text. These credentials should not be committed to source control.What to do
.env.examplefile (if not already present) with placeholder values for all secretsdocker-compose.ymlto reference env vars (e.g.,${POSTGRES_USER},${POSTGRES_PASSWORD}) instead of hardcoded strings.envto.gitignoreif not already present.env.exampleto.envAcceptance criteria
docker-compose.yml.env.exampleexists with all required variables documented (no real secrets).envis in.gitignoredocker compose upstill works when a valid.envfile is presentResolved.
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}env var references throughout. A.env.examplefile exists with placeholder values..envis in.gitignore.