forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #851
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 item: P1 - Security hardening
docker-compose.ymlembedspostgres:postgrescredentials in plain text. Anyone with read access to the repository can see the database password.Work to do
.env.examplefile listing all required environment variables with placeholder values (e.g.POSTGRES_USER=,POSTGRES_PASSWORD=).docker-compose.ymlto reference variables via${POSTGRES_USER}and${POSTGRES_PASSWORD}substitution..envis listed in.gitignore(add it if not already present).README.mdto instruct developers to copy.env.exampleto.envand fill in values before runningdocker compose up.Acceptance criteria
docker-compose.ymlcontains no hardcoded credential values..env.exampleexists and documents all required variables..envis in.gitignore.Resolved in codebase.
docker-compose.ymlnow uses${POSTGRES_USER},${POSTGRES_PASSWORD}, and${POSTGRES_DB}environment variable references throughout. No hardcoded credentials remain. Closing as implemented.