Skip to content

fix: remove committed .env.dev and close the .gitignore gap - #46

Merged
ralyodio merged 1 commit into
masterfrom
fix/remove-committed-env-dev
Aug 4, 2026
Merged

fix: remove committed .env.dev and close the .gitignore gap#46
ralyodio merged 1 commit into
masterfrom
fix/remove-committed-env-dev

Conversation

@ralyodio

@ralyodio ralyodio commented Aug 4, 2026

Copy link
Copy Markdown

What this does

Removes .env.dev from version control and adds it to .gitignore.

Why

.env.dev was tracked in this public repository. .gitignore already
excluded .env, .env.prod and .env.test.env.dev was simply missed, so
it was committed carrying real values instead of the placeholders that
.env.sample documents.

Found by the ThreatCrush scan added in the CI rollout.

Credentials involved

Key Notes
MONGO_URI / MONGO_INITDB_ROOT_PASSWORD password embedded in the URI; host is the docker-internal mongo service
JWT_SECRET 11 characters — also too short to be a safe signing secret
BTCPAY_PRIVATE BTCPay private credential
MAILGUN_* SMTP host and user

Values are deliberately not reproduced here.

This does not un-disclose them

Deleting the file from HEAD leaves it in git history, and the repository is
public. These values should be treated as disclosed and rotated
particularly BTCPAY_PRIVATE, which is a payment credential. Rotation is the
only fix that actually closes this; the commit only stops it getting worse.

Verification

  • git ls-files .env.dev returns nothing after this change.
  • .env.sample remains as the documented template.
  • No source file references .env.dev other than as a local dev convention.

.env.dev was tracked in a public repository. .gitignore already excluded
.env, .env.prod and .env.test; .env.dev was simply missed, so it was
committed with real values rather than the placeholders in .env.sample.

Contains a MongoDB password, a JWT signing secret and a BTCPay private
credential. Removing the file from HEAD does not remove it from history —
these values must be treated as disclosed and rotated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 179b4de into master Aug 4, 2026
3 checks passed
@ralyodio
ralyodio deleted the fix/remove-committed-env-dev branch August 4, 2026 04:47
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

ThreatCrush Security Scan

2 finding(s)

HIGH/CRITICAL: 2

Severity Rule Location
HIGH secret-database-url .env.sample:31
HIGH js-ssrf-outbound-request controllers/retrieve.js:7

Snippets are redacted; ThreatCrush never prints matched credential material.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant