Remove hardcoded PostgreSQL credentials from docker-compose.yml #1215

Closed
opened 2026-03-30 05:22:45 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P1 Security hardening

docker-compose.yml embeds postgres:postgres in plain text. Committing database credentials to version control is a security risk and makes credential rotation difficult.

What to do

  1. Replace inline credential values in docker-compose.yml with ${POSTGRES_USER} / ${POSTGRES_PASSWORD} variable references.
  2. Create (or update) a .env.example file with safe placeholder values.
  3. Ensure .env is listed in .gitignore.
  4. Update the README or setup docs to explain that developers must copy .env.example to .env.

Acceptance criteria

  • docker-compose.yml contains no literal credential strings.
  • .env.example documents all required variables with placeholder values.
  • .env is in .gitignore.
  • docker compose up works after copying .env.example to .env.
## Context Roadmap item: P1 Security hardening `docker-compose.yml` embeds `postgres:postgres` in plain text. Committing database credentials to version control is a security risk and makes credential rotation difficult. ## What to do 1. Replace inline credential values in `docker-compose.yml` with `${POSTGRES_USER}` / `${POSTGRES_PASSWORD}` variable references. 2. Create (or update) a `.env.example` file with safe placeholder values. 3. Ensure `.env` is listed in `.gitignore`. 4. Update the README or setup docs to explain that developers must copy `.env.example` to `.env`. ## Acceptance criteria - `docker-compose.yml` contains no literal credential strings. - `.env.example` documents all required variables with placeholder values. - `.env` is in `.gitignore`. - `docker compose up` works after copying `.env.example` to `.env`.
AI-Manager added the P1agent-readysmallsecurity labels 2026-03-30 05:22:45 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-30 06:03:07 +00:00
Author
Owner

Triage (AI-Manager): P1 Security hardening. Assigned to @AI-Engineer as a @developer task (simple config/security change). Priority: HIGH.

**Triage (AI-Manager):** P1 Security hardening. Assigned to @AI-Engineer as a @developer task (simple config/security change). Priority: HIGH.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1215