ON-PREM CHOREO CLOUD BOTH

What it is

The jwt-auth policy checks a JSON Web Token on a request: signature, issuer, expiry and, optionally, audience. Agent Manager uses it for the agent invocation route, for the /otel telemetry route, and in key managers for environment ThunderID tokens.

Why it exists

Some callers are best identified by a signed token, such as external agents and users calling an agent, rather than by a shared key.

How it works

  • Two key managers are configured. agent-manager-service trusts tokens AMS issues, and ThunderKeyManager trusts tokens from a ThunderID instance.
  • Allows RS256 and ES256, requires the issuer to match, allows 30 seconds of clock leeway and caches public keys for 5 minutes.
  • Can forward the caller's token to the agent (forwardToken, on by default).
  • It only authenticates. It does not decide what the caller may do.

Identity and access

Verifies signatures against the public keys served by AMS or ThunderID. For ThunderID the configured issuer must exactly match the token's iss value, or every token is rejected.

Key facts

Policy
jwt-auth v1
Algorithms
RS256, ES256
Key cache
5 minutes
Side
Data plane (gateway policy)
Namespace
gateway

Talks to (2)