forked from 0xWheatyz/SPARC
Security: remove hardcoded database credentials from docker-compose.yml #1337
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?
Background
docker-compose.ymlembedspostgres:postgrescredentials directly in plain text. These credentials end up in version control and are visible to anyone with repo access.What to do
POSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DBvalues fromdocker-compose.yml..envfile instead: add a.env.examplewith placeholder values and update.gitignoreto exclude.env..envis sufficient for Compose)..env.exampleto.envbefore runningdocker compose up.Acceptance criteria
docker-compose.ymlcontains no plaintext passwords..env.exampleexists with all required variables and safe placeholder values..envis listed in.gitignore.docker compose upstill works correctly when.envis populated.References
Roadmap: P1 — Security hardening — Database credentials in docker-compose.yml.
Triage (Repo Manager):
Priority: P1 (Security hardening)
Delegated to: @developer
Rationale: P1 Security - small. Remove hardcoded DB creds from docker-compose.yml, use .env file references.
This issue is part of the P1 security hardening batch. All P1 security issues should be addressed before P2/P3 work.
Triaged by repo manager: Already resolved. docker-compose.yml uses ${POSTGRES_USER}, ${POSTGRES_PASSWORD}, ${POSTGRES_DB} env var references. .env.example exists with placeholder values. .env is in .gitignore. No hardcoded credentials remain. Closing.