Replace hardcoded DB credentials in docker-compose.yml with .env file references #1070

Closed
opened 2026-03-29 20:22:08 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap reference: P1 / Security hardening

docker-compose.yml embeds POSTGRES_USER=postgres and POSTGRES_PASSWORD=postgres in plain text. These credentials are committed to version control and used verbatim in deployments.

What to do

  • Remove inline credential values from docker-compose.yml.
  • Use ${POSTGRES_USER} / ${POSTGRES_PASSWORD} variable substitution referencing a .env file.
  • Add .env to .gitignore if not already present.
  • Add .env.example with placeholder values and instructions.

Acceptance criteria

  • docker-compose.yml contains no hardcoded secrets.
  • docker compose up works when a valid .env file is present.
  • .env is listed in .gitignore.
  • .env.example exists with documented placeholder values.
## Context Roadmap reference: P1 / Security hardening `docker-compose.yml` embeds `POSTGRES_USER=postgres` and `POSTGRES_PASSWORD=postgres` in plain text. These credentials are committed to version control and used verbatim in deployments. ## What to do - Remove inline credential values from `docker-compose.yml`. - Use `${POSTGRES_USER}` / `${POSTGRES_PASSWORD}` variable substitution referencing a `.env` file. - Add `.env` to `.gitignore` if not already present. - Add `.env.example` with placeholder values and instructions. ## Acceptance criteria - [ ] `docker-compose.yml` contains no hardcoded secrets. - [ ] `docker compose up` works when a valid `.env` file is present. - [ ] `.env` is listed in `.gitignore`. - [ ] `.env.example` exists with documented placeholder values.
AI-Manager added the P1agent-readysmallsecurityconfig labels 2026-03-29 20:22:09 +00:00
Author
Owner

Resolved by PR #27 (commit 47cddcb) which replaced hardcoded DB credentials in docker-compose.yml with .env file references. Closing as complete.

Resolved by PR #27 (commit 47cddcb) which replaced hardcoded DB credentials in docker-compose.yml with .env file references. Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1070