🔐 Compose & .env secrets checker

Find hardcoded passwords, API keys, tokens and default logins before they end up in git or a screenshot. Runs 100% in your browser. Nothing you paste is sent, logged or stored.

Values are masked in the results (like po…***s). Opening a file reads it locally with your browser; it is not uploaded.

What it checks

How to fix it

For a homelab, the simple fix is a .env file next to your Compose file (Compose reads it automatically), kept out of git and readable only by you:

# .env  (add ".env" to .gitignore, then: chmod 600 .env)
DB_PASSWORD=paste-the-output-of-openssl-rand-base64-32

# docker-compose.yml
services:
  db:
    image: postgres:17
    environment:
      POSTGRES_PASSWORD: $${DB_PASSWORD:?set DB_PASSWORD in .env}

For more protection, use Docker secrets. Many images (Postgres, MariaDB, Vaultwarden, Nextcloud, Immich and more) read a *_FILE variable, so the value never sits in the environment:

services:
  db:
    image: postgres:17
    environment:
      POSTGRES_PASSWORD_FILE: /run/secrets/db_password
    secrets: [db_password]
secrets:
  db_password:
    file: ./secrets/db_password.txt   # chmod 600, not in git

Already pushed a secret to GitHub? Deleting the line isn't enough, because it stays in git history. Rotate the password or revoke the token first, then clean up.

Database passwords are only read the first time the container starts. After changing POSTGRES_PASSWORD or MYSQL_ROOT_PASSWORD, change it inside the database too, and in every app that connects to it.

Privacy: this checker is a small script on this page with no network calls. Your file never leaves your browser. It's a pattern check, not a full security audit.

Next: check the same Compose file for risky image updates or validate its YAML.

📬 The Weekend Patch Report

One email a week: what's safe to update, what will bite, and one practical tip for your homelab or printer.

Free, weekly, unsubscribe anytime.