forked from 0xWheatyz/SPARC
Replace hardcoded database credentials in docker-compose.yml with .env file #492
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
Roadmap item: P1 - Security hardening
docker-compose.ymlembedspostgres:postgresas plain-text credentials. Committing credentials to source control is a security risk.Task
.env.examplefile with placeholder values forPOSTGRES_USER,POSTGRES_PASSWORD, and any other secretsdocker-compose.ymlto reference variables (e.g.,${POSTGRES_USER}) instead of literal values.envto.gitignoreif not already present.env.exampleto.envAcceptance Criteria
docker-compose.ymlcontains no literal credential values.env.exampleexists with safe placeholder values.envis in.gitignoredocker compose upworks after copying and populating.envTriage: P1 Security hardening. Assigned to @AI-Engineer (developer). Small scope - extract DB creds from docker-compose.yml to .env file with .env.example template. Delegated to @developer agent.
Resolved: docker-compose.yml uses env var references instead of hardcoded credentials. .env.example documents the required values.
Closing as resolved -- the implementation is merged into main.