Skip to content

security: redact leaked Supabase credential from .env.example#2

Merged
kanwa2006 merged 1 commit into
mainfrom
security/redact-env-example
Jul 21, 2026
Merged

security: redact leaked Supabase credential from .env.example#2
kanwa2006 merged 1 commit into
mainfrom
security/redact-env-example

Conversation

@kanwa2006

Copy link
Copy Markdown
Owner

Issue (found during RC-1 audit)

backend/.env.example shipped a real Supabase transaction-pooler connection string (project ref + password) instead of a placeholder. It is committed to a public repo.

Fix

Replaced the concrete DATABASE_URL with a commented format template. A fresh clone now falls back to the local POSTGRES_* defaults; the Supabase pooler format is documented without real values. No application logic changed.

⚠️ Required manual follow-up (cannot be automated)

Redacting the file does not remove the credential from git history. The repository owner must:

  1. Rotate the Supabase database password immediately (Supabase → Project → Database → Reset password).
  2. Optionally scrub history (e.g. git filter-repo / BFG) — note this rewrites history and needs a force-push, so decide deliberately.

🤖 Generated with Claude Code

backend/.env.example committed a real Supabase transaction-pooler
connection string (project ref + password), not a placeholder. A
.env.example must only show the format. Replaced it with a commented
template; a fresh clone now uses the local POSTGRES_* defaults.

NOTE: the credential remains in git history — rotating the Supabase
database password is a required manual follow-up (see PR description).
@kanwa2006
kanwa2006 merged commit 871aa70 into main Jul 21, 2026
2 checks passed
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