Skip to content

feat(privacy): redact more provider key formats + classify Anthropic keys - #178

Merged
mikehasa merged 1 commit into
mainfrom
feat/redaction-more-key-formats
Aug 30, 2026
Merged

feat(privacy): redact more provider key formats + classify Anthropic keys#178
mikehasa merged 1 commit into
mainfrom
feat/redaction-more-key-formats

Conversation

@mikehasa

Copy link
Copy Markdown
Owner

Expands the value-redaction coverage (agentacct redacts secrets it might see in captured agent activity):

  • New coverage: xAI (xai-), Groq (gsk_), and Google OAuth 2.0 access tokens (ya29.) — none were matched before.
  • Anthropic sk-ant-: now reported under its own anthropic_api_key class, ahead of the generic sk- family (mirrors the existing sk-or-v1-openrouter_api_key handling). Anthropic keys were already cut by the generic sk- pattern; this just classifies them precisely.

Already covered (no change needed): Slack xox, Google API AIza, AWS AKIA/ASIA, GitHub/GitLab, Stripe, HF, and more. Purely additive; redaction tests extended (33 pass).

…keys

Adds redaction coverage for xAI (xai-), Groq (gsk_), and Google OAuth 2.0
access tokens (ya29.), and gives Anthropic keys (sk-ant-) their own
pattern class ahead of the generic sk- family (as sk-or-v1- already has).
Anthropic keys were already cut by the generic sk- pattern; this reports them
under the precise class. Slack (xox), Google API (AIza), AWS (AKIA/ASIA) and
GitHub/GitLab were already covered. Additive; tests extended.
@mikehasa
mikehasa merged commit da8b37d into main Aug 30, 2026
4 checks passed
@mikehasa
mikehasa deleted the feat/redaction-more-key-formats branch August 30, 2026 22:02
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