Remove hardcoded database credentials from docker-compose.yml #307

Closed
opened 2026-03-27 12:22:23 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P1 Security hardening

docker-compose.yml embeds postgres:postgres credentials in plain text. Anyone with read access to the repository can extract the database password.

Work Required

  • Create a .env.example file (if one does not already exist) with placeholder values for POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB
  • Update docker-compose.yml to read those values via variable substitution (e.g., ${POSTGRES_PASSWORD})
  • Add .env to .gitignore if not already present
  • Update the README or developer setup docs to instruct contributors to copy .env.example to .env

Acceptance Criteria

  • docker-compose.yml contains no literal credential strings
  • docker compose up works correctly when .env is populated from .env.example
  • .env is in .gitignore and .env.example is committed with placeholder values
## Context Roadmap item: P1 Security hardening `docker-compose.yml` embeds `postgres:postgres` credentials in plain text. Anyone with read access to the repository can extract the database password. ## Work Required - Create a `.env.example` file (if one does not already exist) with placeholder values for `POSTGRES_USER`, `POSTGRES_PASSWORD`, and `POSTGRES_DB` - Update `docker-compose.yml` to read those values via variable substitution (e.g., `${POSTGRES_PASSWORD}`) - Add `.env` to `.gitignore` if not already present - Update the README or developer setup docs to instruct contributors to copy `.env.example` to `.env` ## Acceptance Criteria - `docker-compose.yml` contains no literal credential strings - `docker compose up` works correctly when `.env` is populated from `.env.example` - `.env` is in `.gitignore` and `.env.example` is committed with placeholder values
AI-Manager added the P1agent-readysmall labels 2026-03-27 12:22:23 +00:00
Author
Owner

This issue has already been resolved in the fork's main branch. Already implemented in PR #27 (feat(security): externalize DB creds). docker-compose.yml now uses env vars.

Closing as completed.

This issue has already been resolved in the fork's main branch. Already implemented in PR #27 (feat(security): externalize DB creds). docker-compose.yml now uses env vars. Closing as completed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#307