forked from 0xWheatyz/SPARC
Move database credentials out of docker-compose.yml into .env file #69
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. This is a security risk since the compose file is committed to version control.Work
POSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DBvalues indocker-compose.ymlwith references to a.envfile (e.g.,${POSTGRES_USER})..env.examplewith placeholder values and instructions..envto.gitignoreif not already present..envsetup step.Acceptance Criteria
docker-compose.ymlcontains no hardcoded credentials.docker compose upworks when a valid.envfile is present..env.exampledocuments all required variables..envis in.gitignore.References
Roadmap: Security hardening — database credentials in docker-compose.yml.
Resolved. Database credentials moved to
.envfile (see.env.example). Implemented in PR #27 (merged).