Skip to main content

Workload Identity Federation

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Workload identity federation lets a workload access a platform without storing a long-lived credential, using a token from an issuer that platform already trusts. The workload presents a signed token from its own identity provider, and the platform returns a short-lived credential of its own.

For Choreo Identity & Access Management, a workload is any confidential client that can use the client credentials grant. That is an agent, such as an AI assistant, or an application, such as a backend service. Either one presents the access token it already gets for itself.

Select a platform to get a step-by-step integration guide with Choreo Identity & Access Management.

PlatformGuide
OpenAICall OpenAI APIs with a Choreo Identity & Access Management Agent Identity
AnthropicCall the Claude API with a Choreo Identity & Access Management Agent Identity

What It Replaces​

The alternative is a static API key that the platform issues once and you copy into the workload's environment. Such a key:

  • Does not expire, so a leaked copy stays valid until somebody notices and rotates it.
  • If multiple workloads share the same key, the platform generally cannot distinguish them from the credential alone.
  • Sits outside the workload's lifecycle, so deleting the agent or application in Choreo Identity & Access Management leaves its access to the platform intact.

Federation removes this static key. The workload proves who it is to Choreo Identity & Access Management with the credential it already holds, and every platform credential it receives afterwards is short-lived and traceable to its Choreo Identity & Access Management identity.

How It Works​

  • The workload authenticates to Choreo Identity & Access Management. The client credentials grant returns a signed JWT whose sub claim is the workload's own ID.
  • The workload exchanges that token at the platform. The exchange usually follows RFC 8693, carrying the Choreo Identity & Access Management token as the subject token.
  • The platform verifies the token. It reads Choreo Identity & Access Management's public keys, either from the JWKS endpoint or from a copy uploaded during setup, then validates the signature and the token claims required by its federation configuration.
  • The platform resolves one of its own identities. A mapping rule maps one or more claims, often sub, sometimes together with iss or other attributes, against values you registered.
  • The platform issues a short-lived access token. The token belongs to that account, expires on a lifetime the platform sets, and is narrowed to any permissions the mapping rule restricts it to.
  • The workload calls the platform's API. It sends that token as a bearer token, and repeats the exchange once the token expires.

Reaching Your Public Keys​

A platform needs Choreo Identity & Access Management's public keys to verify a signature, and there are two ways to give it them. It can retrieve the JWKS directly from /oauth2/jwks, or discover the JWKS URL from /.well-known/openid-configuration. That keeps the keys current through a rotation, but it requires the instance to be reachable over public HTTPS.

Otherwise you upload a copy during setup, which is the option for an instance that runs locally or inside a private network. The copy is a snapshot, so rotating the signing key breaks every exchange until you upload the new key set.

Was this page helpful?