forked from 0xWheatyz/SPARC
Remove hardcoded database credentials from docker-compose.yml #1547
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_USER=postgresandPOSTGRES_PASSWORD=postgresin plain text. Anyone with access to the repository can read the credentials.Roadmap reference: ROADMAP.md > P1 > Security hardening > Database credentials in docker-compose.yml
What to do
.env.examplefile (if one does not exist) with placeholder values for all secrets.docker-compose.ymlto reference variables via${POSTGRES_USER}/${POSTGRES_PASSWORD}substitution..envis listed in.gitignore..env.exampleto.env.Acceptance criteria
docker-compose.ymlcontains no hardcoded credential strings.docker compose upsucceeds when a valid.envfile is present..envis gitignored..env.examplewith placeholder values is committed.This issue has been resolved. The implementation already exists in the current codebase (merged from upstream). Verified by repo manager during triage on 2026-04-19.