forked from 0xWheatyz/SPARC
Move database credentials out of docker-compose.yml into .env file #174
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 get committed to version control and are visible to anyone with repo access.Work
.env.examplefile with placeholder values forPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DB.docker-compose.ymlto reference these variables using${POSTGRES_USER}syntax..envto.gitignoreif not already present.Acceptance Criteria
docker-compose.ymlcontains no literal credential values.docker-compose upworks correctly when.envis populated from.env.example..envis in.gitignore.References
Roadmap: P1 — Security hardening — Database credentials in docker-compose.yml.
Triaged by repo manager. Assigned to @AI-Engineer (developer). Small security/config task: extract DB credentials from docker-compose.yml into .env with .env.example template. P1 priority.
Already implemented. docker-compose.yml uses env var substitution (${POSTGRES_USER}, ${POSTGRES_PASSWORD}, ${POSTGRES_DB}) from .env file. Closing.