forked from 0xWheatyz/SPARC
Security: Remove hardcoded database credentials from docker-compose.yml #711
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?
Summary
docker-compose.ymlembedspostgres:postgres(user and password) in plain text. These credentials are visible to anyone with repo access and are a security risk.What to do
.env.examplefile (if one does not exist) with placeholder values forPOSTGRES_USERandPOSTGRES_PASSWORD.docker-compose.ymlto reference${POSTGRES_USER}and${POSTGRES_PASSWORD}instead of hardcoded values..envto.gitignoreto prevent accidental credential commits.Acceptance Criteria
docker-compose.ymlcontains no hardcoded database credentials..env.exampleprovides template values for all required secrets..envis listed in.gitignore.docker-compose upworks correctly when a valid.envis present.Reference
Roadmap: P1 Security hardening — Database credentials in docker-compose.yml.
[Repo Manager] Already resolved. docker-compose.yml uses env var references. .env.example has placeholders. .env is in .gitignore.
Closing as already implemented in the codebase.