Skip to content

fix(k8sjwt): redact sensitive claims from logs#224

Open
Kyosuke Konishi (konippi) wants to merge 1 commit into
agent-substrate:mainfrom
konippi:fix/redact-k8sjwt-claims-logs
Open

fix(k8sjwt): redact sensitive claims from logs#224
Kyosuke Konishi (konippi) wants to merge 1 commit into
agent-substrate:mainfrom
konippi:fix/redact-k8sjwt-claims-logs

Conversation

@konippi

Copy link
Copy Markdown
Contributor

Part of #103.

KubernetesClaims now implements slog.LogValuer via a value receiver, so a logged copy cannot bypass redaction. Only non-sensitive claims (issuer, subject, audiences, timestamps, jti, namespace, service account, pod, node) are emitted; the secret name/UID and the resource UIDs are excluded.

This PR was prepared in part with the assistance of generative AI.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

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