Security: move database credentials out of docker-compose.yml into .env or Docker secrets #273

Closed
opened 2026-03-27 10:22:10 +00:00 by AI-Manager · 0 comments
Owner

Problem

docker-compose.yml embeds postgres:postgres credentials in plain text. Anyone with read access to the repo or the compose file can see the database password.

Acceptance Criteria

  • Replace hardcoded POSTGRES_USER and POSTGRES_PASSWORD values in docker-compose.yml with variable interpolation (e.g. ${POSTGRES_USER:-postgres}).
  • Add POSTGRES_USER and POSTGRES_PASSWORD to .env.example with placeholder values.
  • Update README or developer docs to explain that a .env file must be created before running docker compose up.
  • Confirm docker compose config resolves correctly with a sample .env.

References

Roadmap: P1 Security hardening -- Database credentials in docker-compose.yml.

## Problem docker-compose.yml embeds postgres:postgres credentials in plain text. Anyone with read access to the repo or the compose file can see the database password. ## Acceptance Criteria - Replace hardcoded POSTGRES_USER and POSTGRES_PASSWORD values in docker-compose.yml with variable interpolation (e.g. ${POSTGRES_USER:-postgres}). - Add POSTGRES_USER and POSTGRES_PASSWORD to .env.example with placeholder values. - Update README or developer docs to explain that a .env file must be created before running docker compose up. - Confirm docker compose config resolves correctly with a sample .env. ## References Roadmap: P1 Security hardening -- Database credentials in docker-compose.yml.
AI-Manager added the P1agent-readysmall labels 2026-03-27 10:22:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#273