Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

workload-identity-federation changedmanage-claude/workload-identity-federation

Nearest release: v2.1.336, published 3 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+3added
Lines−3removed
From line 63 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits25to this page, all time

The whole hunk

from line 63, old and new numbered
/
lines
from line 63
6363 
6464<Steps>
6565 <Step title="Open Connect workload">
66 In the Claude Console, go to the [Workload identity](https://platform.claude.com/settings/workload-identity-federation) page (`platform.claude.com/settings/workload-identity-federation`) and select **Connect workload**.
66 In the Claude Console, go to the [Workload identity](https://platform.claude.com/keys/workload-identity) page (`platform.claude.com/keys/workload-identity`) and select **Connect workload**.
6767 </Step>
6868 
6969 <Step title="Choose your provider">
from line 363
3633631. **Configure federation in parallel.** Complete the steps in [Set up federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#set-up-federation) and confirm the federation rule matches your workload’s token. Leave the existing `ANTHROPIC_API_KEY` in place for now.
3643642. **Check which credential wins.** Run `ant auth status` from inside the workload (or inspect SDK debug logs). Because `ANTHROPIC_API_KEY` sits above the federation tiers in the precedence chain, the API key still wins at this stage.
3653653. **Unset `ANTHROPIC_API_KEY` everywhere it is injected.** Remove it from CI secrets, container environment, and shell profiles (see the preceding warning). Rerun `ant auth status` and confirm the federation source now wins.
3664. **Delete the API key.** Once the workload is running on the federated token, delete the key on the [API keys](https://platform.claude.com/settings/keys) page (`platform.claude.com/settings/keys`) in the Claude Console.
3664. **Delete the API key.** Once the workload is running on the federated token, delete the key on the [API keys](https://platform.claude.com/keys/api-keys) page (`platform.claude.com/keys/api-keys`) in the Claude Console.
367367 
368368## Token lifetime and refresh
369369 
from line 376
376376 
377377Because the SDK rereads `ANTHROPIC_IDENTITY_TOKEN_FILE` on every exchange, it automatically picks up rotated projected tokens (Kubernetes service-account tokens, for example, rotate well before their `exp`).
378378 
379By default, identity tokens that carry a `jti` claim are single-use. Each exchange must present a JWT that has not been exchanged before. Presenting the same JWT again fails with the reason `jti_reused` on the [authentication history page](https://platform.claude.com/settings/workload-identity-federation?tab=history) in the Claude Console. If your workload fetches its own tokens from your identity provider, mint a fresh JWT for each exchange instead of reusing a cached one. Retry loops are the usual cause of reuse. The SDK rereads `ANTHROPIC_IDENTITY_TOKEN_FILE` on every exchange, so the file must hold a new token before each refresh. A refresh that rereads an unrotated token fails the same way, as does a restarted process that presents a token it already exchanged. Rotating the token well within the minted token’s lifetime keeps the file ahead of the refresh schedule. If your token source cannot rotate that often, you can disable `check_jti` for that issuer as a last resort. This removes replay protection for every rule on the issuer. See [JWT verification](https://platform.claude.com/docs/en/manage-claude/wif-reference#jwt-verification) for details.
379By default, identity tokens that carry a `jti` claim are single-use. Each exchange must present a JWT that has not been exchanged before. Presenting the same JWT again fails with the reason `jti_reused` on the [authentication history page](https://platform.claude.com/keys/workload-identity?tab=history) in the Claude Console. If your workload fetches its own tokens from your identity provider, mint a fresh JWT for each exchange instead of reusing a cached one. Retry loops are the usual cause of reuse. The SDK rereads `ANTHROPIC_IDENTITY_TOKEN_FILE` on every exchange, so the file must hold a new token before each refresh. A refresh that rereads an unrotated token fails the same way, as does a restarted process that presents a token it already exchanged. Rotating the token well within the minted token’s lifetime keeps the file ahead of the refresh schedule. If your token source cannot rotate that often, you can disable `check_jti` for that issuer as a last resort. This removes replay protection for every rule on the issuer. See [JWT verification](https://platform.claude.com/docs/en/manage-claude/wif-reference#jwt-verification) for details.
380380 
381381## Identity providers
382382 
Feedback