Skip to content

CLAUDE.md: never commit .env files or API keys - #47

Merged
wilsonhj merged 1 commit into
mainfrom
chore/env-secrets-guard
Oct 31, 2026
Merged

wilsonhj merged 1 commit into
mainfrom
chore/env-secrets-guard

Conversation

@wilsonhj

Copy link
Copy Markdown
Owner

.env.local holds the Comfy API key. It is already safe:

  • .gitignore ignores every .env* file except .env.example. git check-ignore -v .env.local reports .gitignore:12:.env*.
  • No .env* file other than .env.example has ever been added on any branch.

This PR adds a short Secrets section to CLAUDE.md so every agent working in the repo follows the same rule:

  • Never force-add an .env* file, and never commit a key in any other file.
  • Keys live only in .env.local or the host's secret settings.
  • A leaked key gets rotated; deleting the commit alone does not make it safe.

Docs only. The owners audit and the commit-identity check pass.


Generated by Claude Code

.gitignore already ignores every .env* file except .env.example, and none
has ever been committed. This states the rule for agents and says to rotate
a key that leaks rather than only deleting the commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaDiMHKo3YsVeBio3Xy6Ae
@wilsonhj
wilsonhj merged commit 20a4823 into main Oct 31, 2026
1 check passed
wilsonhj added a commit that referenced this pull request Oct 31, 2026
.gitignore already ignores every .env* file except .env.example, and none
has ever been committed. This states the rule for agents and says to rotate
a key that leaks rather than only deleting the commit.


Claude-Session: https://claude.ai/code/session_01AaDiMHKo3YsVeBio3Xy6Ae

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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