Skip to content

Ignore keys.env backups so secrets cannot be committed - #1221

Merged
NielsRogge merged 1 commit into
mainfrom
claude/ignore-keys-env-backups
Nov 27, 2026
Merged

NielsRogge merged 1 commit into
mainfrom
claude/ignore-keys-env-backups

Conversation

@NielsRogge

@NielsRogge NielsRogge commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

.gitignore only matched *.env, so rotation backups such as backend/keys.env.bak-<timestamp>-<reason> showed up as untracked files. They hold live secrets, so a broad git add would publish them to this public repo.

This adds *.env.bak* and keys.env*. No tracked file is newly ignored (git ls-files -ci --exclude-standard is empty); the deploy/env/*.env.example templates and frontend/.env.* stay tracked.

No application deploy is needed.

🤖 Generated with Claude Code


Note

Low Risk
Git ignore-only change with no runtime behavior; reduces risk of committing secrets.

Overview
Extends .gitignore so secret-bearing env artifacts are not accidentally committed. *.env.bak* covers rotation backups like keys.env.bak-<timestamp>-<reason> that previously appeared as untracked files under a bare *.env rule. keys.env* broadens ignore coverage for the live secrets file and its variants.

Tracked templates (e.g. deploy/env/*.env.example, frontend/.env.*) are unchanged per the author’s checks—only untracked secret/backup paths are affected.

Reviewed by Cursor Bugbot for commit 4e73fd0. Bugbot is set up for automated code reviews on this repo. Configure here.

@NielsRogge
NielsRogge merged commit d66f352 into main Nov 27, 2026
2 checks passed
@NielsRogge
NielsRogge deleted the claude/ignore-keys-env-backups branch November 27, 2026 12:15
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