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

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

Summary

docker-compose.yml embeds postgres:postgres (user and password) in plain text. These credentials should not be stored in version control.

What to do

  1. Create a .env.example file that documents required variables: POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB
  2. Update docker-compose.yml to reference these via ${POSTGRES_USER} / ${POSTGRES_PASSWORD} substitution
  3. Ensure .env is listed in .gitignore
  4. Update the README or developer docs to instruct contributors to copy .env.example to .env before running

Acceptance Criteria

  • docker-compose.yml contains no literal credential strings
  • A new .env.example exists with placeholder values
  • .env is in .gitignore
  • docker-compose config renders correctly when a .env is present

Reference

Roadmap: P1 - Security hardening

## Summary `docker-compose.yml` embeds `postgres:postgres` (user and password) in plain text. These credentials should not be stored in version control. ## What to do 1. Create a `.env.example` file that documents required variables: `POSTGRES_USER`, `POSTGRES_PASSWORD`, `POSTGRES_DB` 2. Update `docker-compose.yml` to reference these via `${POSTGRES_USER}` / `${POSTGRES_PASSWORD}` substitution 3. Ensure `.env` is listed in `.gitignore` 4. Update the README or developer docs to instruct contributors to copy `.env.example` to `.env` before running ## Acceptance Criteria - `docker-compose.yml` contains no literal credential strings - A new `.env.example` exists with placeholder values - `.env` is in `.gitignore` - `docker-compose config` renders correctly when a `.env` is present ## Reference Roadmap: P1 - Security hardening
AI-Manager added the P1agent-readysmall labels 2026-03-27 18:22:40 +00:00
Author
Owner

Triage: Already Implemented

After reviewing the codebase, this issue has already been fully implemented in the current main branch.

This issue can be closed.

## Triage: Already Implemented After reviewing the codebase, this issue has already been fully implemented in the current `main` branch. This issue can be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#403