-
-
Notifications
You must be signed in to change notification settings - Fork 36
chore(security): ignore key material so an identity file cannot be committed #2171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ae0c6a4
4a0dc78
97bd98e
6eeedf7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -152,3 +152,19 @@ data/.seeded-agent-tokens.json | |
| data/secrets.db* | ||
| data/*.key | ||
| data/*.token | ||
|
|
||
| # Key material and secrets. Added 2026-07-27 after data/hub/identity.json was | ||
| # committed to PR #2043 with signing_private and encryption_private in | ||
| # PLAINTEXT. data/hub/ is already covered above; these patterns close the REST | ||
| # of the surface, which was open: an identity.json or a *.key written anywhere | ||
| # outside data/hub/ had nothing stopping it. Pattern-based on purpose, since a | ||
| # per-file allowlist cannot catch a file that does not exist yet. | ||
| # Verified against every tracked file: none become ignored. | ||
| *.key | ||
| *_private.pem | ||
| *_private.key | ||
| *_private.json | ||
| *_private_key* | ||
| identity.json | ||
| *.p8 | ||
| *credentials.json | ||
|
coderabbitai[bot] marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win Ignore credential temp files as well. The atomic writer creates The same temporary-file behavior is defined in 🤖 Prompt for AI AgentsThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SUGGESTION: Reply with |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING:
identity.jsonis redundant with the existingdata/hub/rule (line 96) and overly broad — it ignoresidentity.jsonrepo-wide. If a legitimateidentity.jsonis needed outsidedata/hub/, it will be silently ignored.Reply with
@kilocode-bot fix itto have Kilo Code address this issue.