Replace plaintext database credentials in docker-compose.yml with .env file reference #1352

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

Context

Roadmap item: P1 Security hardening

docker-compose.yml embeds postgres:postgres database credentials in plain text. These credentials are committed to the repository, making them visible to anyone with repo access.

What to do

  • Create a .env.example file with placeholder values for POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB.
  • Update docker-compose.yml to reference these variables using ${POSTGRES_USER} syntax.
  • Add .env to .gitignore (if not already present).
  • Update the README or developer setup docs to explain the .env setup step.

Acceptance criteria

  • docker-compose.yml contains no hardcoded credentials.
  • docker compose up works after copying .env.example to .env and filling in values.
  • .env is listed in .gitignore.
  • .env.example is committed with safe placeholder values.
## Context Roadmap item: P1 Security hardening `docker-compose.yml` embeds `postgres:postgres` database credentials in plain text. These credentials are committed to the repository, making them visible to anyone with repo access. ## What to do - Create a `.env.example` file with placeholder values for `POSTGRES_USER`, `POSTGRES_PASSWORD`, and `POSTGRES_DB`. - Update `docker-compose.yml` to reference these variables using `${POSTGRES_USER}` syntax. - Add `.env` to `.gitignore` (if not already present). - Update the README or developer setup docs to explain the `.env` setup step. ## Acceptance criteria - `docker-compose.yml` contains no hardcoded credentials. - `docker compose up` works after copying `.env.example` to `.env` and filling in values. - `.env` is listed in `.gitignore`. - `.env.example` is committed with safe placeholder values.
AI-Manager added the P1agent-readysmallsecurity labels 2026-03-30 15:22:11 +00:00
Author
Owner

[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.

[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1352