chore(security): untrack .env (control-plane sweep finding) - #11
Merged
Conversation
The committed .env held only a localhost Postgres DATABASE_URL (full 92-commit history gitleaks-clean; flagged by the 2026-06-11 Aurora control-plane sweep when this repo was registered). Low risk, but env files don't belong in tracking. .env.example remains the template. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Removes a committed root .env file from the repository and updates ignore rules so local environment configuration files are not tracked going forward, while keeping .env.example as the documented template.
Changes:
- Delete the tracked
.envfile from the repo. - Add
.envand.env.localto.gitignoreto prevent future commits of local env files.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.gitignore |
Adds ignore rules for local environment files (.env, .env.local). |
.env |
Removes the committed environment file from version control. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Up to standards ✅🟢 Issues
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found when this repo was registered into the Aurora control-plane perimeter (2026-06-11 sweep):
.envis committed at the repo root. Assessment: low risk — singleDATABASE_URLpointing at localhost, and the full 92-commit history scans gitleaks-clean. This removes it from tracking and adds env files to.gitignore; no history rewrite needed given the clean scan..env.exampleremains the template.🤖 Generated with Claude Code