Skip to main content
A CI pipeline, an AKS service, an AWS Lambda or an internal batch job usually calls Bifrost with a virtual key. That key is a long-lived secret: someone has to store it in the workload, rotate it, and revoke it when it leaks. With workload identity, service accounts don’t need a virtual key. You map a workload to a service account, and the workload calls Bifrost with a short-lived token that its own platform already gives it, such as an Entra managed identity token, an AWS STS token or a GitHub Actions OIDC token. Bifrost checks that the token comes from a source you trust, finds the service account it is mapped to, and runs the request as that service account. The service account’s access profile decides the models, MCP tools, budget and rate limits, and logs and audit entries name it.
Workload identity is about callers authenticating to Bifrost. It is separate from how Bifrost authenticates to model providers, such as IRSA or GKE Workload Identity for Bedrock and Vertex AI.

How it works

Three pieces make this work: Workload identities only ever map to service accounts, never to people.

How tokens map to service accounts

Each token source names the workload with one claim. That value is what you enter when you map the workload, and it decides which service account the request runs as. A workload maps to one service account, and several workloads can map to the same one. For example, the AKS pod, the Lambda and the deploy workflow behind one payments service can all run as a payments-api service account:
Service account detail sheet for payments-api showing the Workload identities tab with an Azure, an AWS and a GitHub Actions workload mapped

One service account with three workloads mapped to it, one from each kind of token source.

Before you start

  • Create a service account for the workload under Governance → Users, and attach an access profile that grants the models and tools it needs. A service account with no access profile is refused by governance, as for any user without one.
  • Make sure you have the permissions to set up token sources and map workloads.
Workload identity turns on once at least one mapping exists. Until then, every request goes through the rest of authentication unchanged, and virtual keys keep working throughout, so you can move workloads over one at a time.

Set up a token source

Token sources are part of your SSO provider’s settings. Open Governance → User Provisioning, select the gear on the Connection card, and scroll to Workload identity at the end of Provider Configuration.
Workload identity section of the provider configuration, with the Azure workload identity federation notice and two additional trusted issuers: AWS prod and GitHub Actions

The Workload identity section of an Entra SSO provider: Azure workload identity federation on top, then the additional trusted issuers. With any other SSO provider, only the trusted issuers appear.

Pick the tab for where your workloads get their tokens. You can use both: with Entra SSO, Azure workloads come through Azure workload identity federation and everything else through trusted issuers.
A trusted issuer is a token issuer, other than your SSO provider’s own sign-in, whose workload tokens Bifrost accepts. Trusted issuers work with every SSO provider, not only Entra. Bifrost trusts only the issuers you add, by exact URL: adding an AWS account trusts that account’s tokens, never AWS as a whole.Under Additional trusted issuers, select Add issuer and fill in:Select Test next to the issuer URL before you save. Bifrost fetches the issuer’s discovery document and signing keys, and if that fails it says why, such as an HTTP error, a discovery document naming another issuer, or an address the gateway’s outbound network policy blocks. To stop accepting an issuer’s tokens without losing its mappings, turn off Trust this issuer, the switch on its row.
With AWS IAM outbound identity federation, any workload that runs as an IAM role or user, such as a Lambda function, ECS task, EC2 instance or EKS pod, can ask AWS STS for a signed JWT addressed to Bifrost. The token’s sub is the ARN of that role or user, and that ARN is what you map. Add one issuer per AWS account.
1

Turn on outbound identity federation

Do this once per AWS account, in the IAM console under Account settings → Outbound web identity federation, or with the AWS CLI:
AWS returns the account’s issuer URL, of the form https://<id>.tokens.sts.global.api.aws. Read it again at any time with aws iam get-outbound-web-identity-federation-info.
2

Add the account as a trusted issuer

Add an issuer with the AWS kind, a name such as AWS prod, the account’s issuer URL, and Bifrost’s URL as the audience. Select Test, then save the provider.
Expanded AWS trusted issuer named AWS prod, with its issuer URL and the audience https://bifrost.example.com

An AWS account trusted as an issuer. The AWS kind always names a workload by the token's sub claim.

3

Let the role request tokens

Add sts:GetWebIdentityToken to the policy of the role the workload runs as: the Lambda execution role, ECS task role, EC2 instance profile or EKS pod role.
4

Map the role to a service account

Add a workload identity with your AWS issuer and the IAM role or user ARN exactly as IAM shows it, including the case of the name.
Add workload identity form with Token from set to AWS prod, IAM role or user ARN arn:aws:iam::123456789012:role/payments-batch and name payments-batch Lambda

Mapping an IAM role to a service account.

Use the role’s ARN, not a role session’s. aws sts get-caller-identity run inside a role prints a session ARN such as arn:aws:sts::123456789012:assumed-role/payments-batch/session; Bifrost refuses it and tells you which role’s ARN to copy from the IAM console.
5

Call Bifrost from the workload

The workload requests a token from a regional STS endpoint and sends it as the bearer token:
Request a new token before the current one expires. GetWebIdentityToken is not available on the global STS endpoint, and needs a recent AWS SDK.
  • A recreated role has the same ARN. If a role is deleted and another is created with the same name, its tokens match the same mapping. Disconnect the mapping when you retire a role.
  • Once roles are mapped on an issuer, its URL can’t change. Add a new account as another issuer.
How mappings follow an issuer. Mappings refer to an issuer by its name, and each records the issuer’s kind, URL and workload ID claim from when it was made, so a mapping never silently moves to a different issuer:
  • While any workload is mapped on an issuer, Bifrost refuses a provider save that changes its kind, issuer URL or workload ID claim. Disconnect those mappings first, or add the new issuer under another name.
  • Renaming or removing an issuer is allowed. Its mappings take no tokens, and show the issuer as turned off or removed, until an issuer with that name is back.
  • If an issuer changes anyway, for example in config.json, its mappings show that the issuer changed and take no tokens until you map the workloads again.
Trusted issuers are saved with the provider, so they are replaced if you switch to another identity provider. They can also be set in config.json or Helm; see Declarative configuration.

Map a workload to a service account

1

Open the service account's Workload identities tab

Under Governance → Users, select the service account. Open Workload identities; when the sheet is narrow, it sits in the overflow menu at the end of the tab bar.
Service account detail sheet with the tab overflow menu open, showing Business Units and Workload identities

The Workload identities tab appears only on service accounts.

2

Choose where the token comes from

Select Add workload identity. Token from lists every trusted issuer that is turned on, by name, and Azure workload identity federation when your SSO is Entra.
Add workload identity form with the Token from dropdown open, listing Azure workload identity federation, AWS prod and GitHub Actions

Token from lists every source Bifrost can accept tokens from.

If no source is set up yet, the form says so instead of showing the list.
3

Identify the workload

Enter the value the token carries:Name is optional and defaults to the workload’s name. Select Add.
The workload can call Bifrost straight away, and its requests appear in the logs under the service account.
  • Turn a mapping off with its Enabled switch to stop accepting the workload’s tokens without losing the mapping.
  • Disconnect a workload from its row menu to remove the mapping. Deleting a service account removes all of its mappings.
  • Automate mappings through the API at /api/governance/users/{user_id}/workload-identities. Mappings can’t be set in config.json or Helm; trusted issuers can.

Declarative configuration

Trusted issuers can live in config.json, or in Helm values under bifrost.scim.config, on the SSO provider under workloadIdentity.additionalTrustedIssuers.

What Bifrost checks on every request

  1. The token comes from a source Bifrost trusts: its iss matches a trusted issuer’s URL exactly, or your Entra tenant.
  2. It is addressed to Bifrost: its audience is one the source is configured with.
  3. It belongs to a workload. A generic issuer takes only tokens whose workload ID is mapped, or that pass its rule when it has one. Entra takes only app-only tokens. Anything else, including a person’s token, is left to the normal sign-in path, even when the same identity provider runs your SSO.
  4. The signature verifies against the source’s published keys, and the token is unexpired and valid for no longer than the source’s lifetime cap (24 hours by default).
  5. A mapping exists for the token’s identity, it is turned on, and its source hasn’t changed since it was made.
  6. The request runs as the mapped service account. The token is removed from the request, so it is never forwarded to a provider.
Tokens are verified on every request and are never stored. A workload’s access ends when its token expires and it can’t get a new one, or as soon as you turn off or disconnect its mapping.

Responses

MCP gateway

Workload tokens work on /mcp too, governed by the service account’s access profile like any other request. When the MCP gateway’s auth mode is OAuth only, it accepts only tokens Bifrost issued, so workload tokens are refused there.

Permissions

A mapping lets whoever holds the workload’s token act as the service account, so it has its own permission. Admins have it by default; grant it to other roles explicitly. Users → Update alone is not enough.