forked from 0xWheatyz/SPARC
Move database credentials out of docker-compose.yml into .env file #94
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
docker-compose.ymlembedspostgres:postgrescredentials in plain text. These are committed to version control, violating secrets hygiene.Work
.env.examplefile with placeholder values forPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DB.docker-compose.ymlto reference${POSTGRES_USER},${POSTGRES_PASSWORD}, and${POSTGRES_DB}instead of literal values..envto.gitignoreif not already present..env.exampleto.envand fill in credentials.Acceptance Criteria
docker-compose.ymlcontains no plaintext credentials.docker compose upwith a populated.envstarts PostgreSQL correctly..envis listed in.gitignore..env.exampleis committed with safe placeholder values.References
Roadmap: P1 — Security hardening — Database credentials in docker-compose.yml.