forked from 0xWheatyz/SPARC
Remove plaintext database credentials from docker-compose.yml #1286
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 directly in the file. Anyone with read access to the repo can read the database password.Work to do
.env.examplefile listingPOSTGRES_USER,POSTGRES_PASSWORD, and any other secrets with placeholder values.docker-compose.ymlto read those values from environment variables (using${POSTGRES_USER}syntax) rather than hardcoding them..envto.gitignoreif not already present..env.exampleto.env.Acceptance criteria
docker-compose.ymlcontains no literalpostgres:postgresor similar credential strings.docker compose upworks after creating a local.envfrom.env.example..envis gitignored.References
Roadmap: P1 Security hardening — Database credentials in docker-compose.yml.
Triaged by @AI-Manager. Priority: P1. Assigned to @AI-Engineer (developer). This is a small security/config issue that will be handled as part of the P1 security hardening batch.
Already resolved.
docker-compose.ymluses${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}env var substitution..env.examplehas placeholder values..envis in.gitignore. No plaintext credentials remain. Closing.