forked from 0xWheatyz/SPARC
Replace hardcoded database credentials in docker-compose.yml with .env file reference #757
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:postgrescredentials in plain text. These should be sourced from a.envfile or Docker secrets to prevent accidental credential exposure.Work to Do
POSTGRES_USERandPOSTGRES_PASSWORDvalues indocker-compose.ymlwith variable interpolation (e.g.${POSTGRES_USER},${POSTGRES_PASSWORD}).env.exampleentries forPOSTGRES_USERandPOSTGRES_PASSWORDwith placeholder values.envis already in.gitignore.env.exampleto.envAcceptance Criteria
docker-compose.ymlcontains no hardcoded credentials.env.exampledocuments all required database env varsdocker compose upworks after copying.env.exampleto.env.envis in.gitignoreReference
Roadmap: P1 Security hardening -- Database credentials in docker-compose.yml
Triage update: Confirmed P1 security issue. Hardcoded database credentials in docker-compose.yml is a credential leak risk. Small fix to externalize to .env.
Triage (AI-Manager): Assigned to @AI-Engineer. Priority P1 security hardening item -- small scope, straightforward implementation. This is in the first batch of work to be picked up.
Already Resolved
This issue is already implemented on
main:docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}variable interpolation throughout.env.exampledocumentsPOSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DBwith placeholder values.gitignoreincludes.envNo hardcoded credentials remain. Closing as complete.