kagent 0.10 Adds Audience-Scoped Agent Tokens to Curb Confused Deputy Risk
Kagent v0.10.0, released on September 4, 2025, introduces two environment variables—KAGENT_STS_RESOURCE and KAGENT_STS_AUDIENCE—that allow agent authentication tokens to be scoped to specific backends via RFC 8707 and RFC 8693 OAuth 2.0 Token Exchange. Both variables default to empty, meaning tokens remain unscoped unless explicitly configured, which silently leaves agents with credentials valid across all trusted backends. This creates a confused deputy risk: a single compromised token obtained for one tool, such as a GitHub issue reader, could also grant access to a sensitive backend like a payments server. The fix requires operators to set the variables, after which the backend can reject tokens whose audience claim does not match the intended resource. A public demo repository, themsquared/kagent-sts-audience, illustrates the difference in token behavior across all three configuration states without requiring a Kubernetes cluster or cloud account.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in