forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #337
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?
Problem
docker-compose.ymlembedspostgres:postgrescredentials in plain text. Anyone with access to the repository can see the database password.Work
docker-compose.yml..envfile or Docker secrets instead (e.g.,${POSTGRES_USER},${POSTGRES_PASSWORD})..env.examplefile with placeholder values and instructions..envis listed in.gitignore..envfile.Acceptance Criteria
docker-compose.ymlcontains no hardcoded credentials..env.exampledocuments all required variables..envis ignored by git.docker compose upsucceeds when a valid.envis present.Reference
Roadmap item: Security hardening — Database credentials in docker-compose.yml.
[Repo Manager] This issue is resolved. docker-compose.yml uses ${POSTGRES_USER}, ${POSTGRES_PASSWORD}, ${POSTGRES_DB} variable references. .env.example exists with placeholder values. .gitignore includes .env.