Skip to content

fix: redact Groq, xAI, HuggingFace keys and underscores in sk- keys (M-11) - #68

Merged
jkyberneees merged 1 commit into
mainfrom
fix/m11-redact-provider-patterns
Jul 18, 2026
Merged

fix: redact Groq, xAI, HuggingFace keys and underscores in sk- keys (M-11)#68
jkyberneees merged 1 commit into
mainfrom
fix/m11-redact-provider-patterns

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Closes secret-redaction gaps for Groq (gsk_), xAI (xai-), HuggingFace (hf_), and Anthropic keys with underscores in the sk- body (M-11).\n\nChanges:\n- internal/redact/redact.go: added provider-specific patterns and included '_' in the sk- character class.\n- Added/expanded tests in internal/redact/redact_test.go and cmd/odek/security_report_validation_test.go.\n- Updated docs/SECURITY.md and AGENTS.md.

…M-11)

Adds missing provider secret patterns and closes the Anthropic-key
escape where an underscore appeared in the first ~19 body chars.

Changes:
- internal/redact/redact.go: added gsk_, xai-, hf_ patterns and
  included '_' in the sk- character class.
- Added TestRedactSecrets_ProviderKeys and expanded coverage cases.
- Updated TestReport_RedactMissesRealSecretFormats.
- Updated docs/SECURITY.md and AGENTS.md.
@jkyberneees
jkyberneees merged commit 9a3c561 into main Jul 18, 2026
1 check was pending
@jkyberneees
jkyberneees deleted the fix/m11-redact-provider-patterns branch July 18, 2026 13:40
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