Skip to content

Purge exposed my-fe/..env from history and harden env-file hygiene - #9

Merged
TejaBudumuru3 merged 1 commit into
mainfrom
copilot/remove-public-env-file
Aug 15, 2026
Merged

Purge exposed my-fe/..env from history and harden env-file hygiene#9
TejaBudumuru3 merged 1 commit into
mainfrom
copilot/remove-public-env-file

Conversation

Copilot AI commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

A sensitive my-fe/..env file was committed and exposed publicly, including database/API/cloud/auth credentials. This PR removes that path from repository history and adds guardrails so env secrets are not re-committed while preserving a safe onboarding template.

  • History cleanup (secret exposure remediation)

    • Rewrote Git history to remove my-fe/..env from all reachable commits.
    • Pruned rewritten refs/objects so the secret blob is no longer retained in reachable history.
  • Ignore policy hardening

    • Updated root .gitignore to explicitly block additional env-secret variants (.env.*, ..env) alongside existing .env protection.
    • Kept frontend ignore behavior aligned with repo policy.
  • Safe developer template

    • Added my-fe/.env.example with required variable names and empty placeholder values only (no live credentials).
    • Allowed .env.example to be tracked via my-fe/.gitignore exception.
# root .gitignore
.env
.env.*
..env

# my-fe/.gitignore
.env*
!.env.example

@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dev-hire-znlr Ready Ready Preview Aug 12, 2026 11:11am

Copilot AI changed the title [WIP] Remove exposed .env file and update repository Purge exposed my-fe/..env from history and harden env-file hygiene Aug 12, 2026
Copilot AI requested a review from Teja-Budumuru August 12, 2026 11:13
@TejaBudumuru3
TejaBudumuru3 marked this pull request as ready for review August 15, 2026 09:17
@TejaBudumuru3
TejaBudumuru3 merged commit b856857 into main Aug 15, 2026
3 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.

3 participants