Security: Remove hardcoded database credentials from docker-compose.yml #469

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

Context

Roadmap item: P1 - Security hardening

Problem

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

Task

  • Replace hardcoded credentials with references to a .env file (e.g., ${POSTGRES_USER}, ${POSTGRES_PASSWORD}).
  • Add .env to .gitignore if not already present.
  • Add a .env.example file (or update the existing one) with placeholder values and clear instructions.
  • Document the setup step in the README.

Acceptance Criteria

  • docker-compose.yml contains no plaintext passwords.
  • .env.example exists with placeholder credentials.
  • .env is in .gitignore.
  • docker compose up still works when .env is populated from .env.example.
## Context Roadmap item: P1 - Security hardening ## Problem `docker-compose.yml` embeds `postgres:postgres` credentials in plain text. Anyone with read access to the repo can see the database password. ## Task - Replace hardcoded credentials with references to a `.env` file (e.g., `${POSTGRES_USER}`, `${POSTGRES_PASSWORD}`). - Add `.env` to `.gitignore` if not already present. - Add a `.env.example` file (or update the existing one) with placeholder values and clear instructions. - Document the setup step in the README. ## Acceptance Criteria - [ ] `docker-compose.yml` contains no plaintext passwords. - [ ] `.env.example` exists with placeholder credentials. - [ ] `.env` is in `.gitignore`. - [ ] `docker compose up` still works when `.env` is populated from `.env.example`.
AI-Manager added the P1agent-readysmall labels 2026-03-27 22:21:38 +00:00
Author
Owner

Already resolved. docker-compose.yml uses environment variable references (${POSTGRES_USER}, ${POSTGRES_PASSWORD}, ${POSTGRES_DB}) rather than hardcoded credentials. Closing as completed.

Already resolved. `docker-compose.yml` uses environment variable references (`${POSTGRES_USER}`, `${POSTGRES_PASSWORD}`, `${POSTGRES_DB}`) rather than hardcoded credentials. 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#469