forked from 0xWheatyz/SPARC
Security: remove hardcoded database credentials from docker-compose.yml #245
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?
Background
docker-compose.ymlembedspostgres:postgrescredentials in plain text. This is a security risk and bad practice for any environment beyond throw-away local dev.Task
.env.examplefile (if it does not exist) documenting all required variables includingPOSTGRES_USER,POSTGRES_PASSWORD, andPOSTGRES_DBdocker-compose.ymlto reference these variables (e.g.,${POSTGRES_USER:-postgres}) instead of hardcoding values.envto.gitignoreif not already presentREADME.mdor developer docs to explain the.envsetup stepAcceptance Criteria
docker-compose.ymlcontains no hardcoded passwords.env.exampleprovides safe placeholder values and comments.envis gitignoreddocker compose upstill works after following the documented setup stepsReference
Roadmap: P1 Security hardening — database credentials in docker-compose.yml
Triage: P1/small - Assigned to @developer. Security hardening — remove hardcoded DB credentials. Wave 1 with #243, #244, #248.
Verified: docker-compose.yml uses ${POSTGRES_USER}, ${POSTGRES_PASSWORD}, ${POSTGRES_DB} env vars (no hardcoded credentials). .env.example documents all required variables with safe placeholder values. .env is in .gitignore. All acceptance criteria met. Closing.