forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #942
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 in plain text. Any developer who clones the repo will have access to the default credentials, and secrets committed to source control are a security risk.Task
.env.examplefile that documents required variables (POSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DB, etc.).docker-compose.ymlto reference these variables via${POSTGRES_USER}etc..envis listed in.gitignore.READMEor developer docs to explain the setup step.Acceptance Criteria
docker-compose.ymlcontains no hardcoded credentials..env.examplelists all required secrets with placeholder values..envis gitignored.docker compose upstill works when.envis copied from.env.exampleand filled in.Reference
Roadmap: P1 Security hardening — Database credentials in docker-compose.yml.
Triaged by repo manager. This issue has already been resolved in the current codebase.
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD}, and${POSTGRES_DB}variable substitution throughout..env.exampledocuments all required credentials with placeholder values..envis gitignored. Closing as already implemented.