Identity federation: add user and service account examples, correct stale claims (DOCS-2516) - #3165
Open
mdlinville wants to merge 4 commits into
Open
Identity federation: add user and service account examples, correct stale claims (DOCS-2516)#3165mdlinville wants to merge 4 commits into
mdlinville wants to merge 4 commits into
Conversation
…2516) Add a user-account example and an external-service-account example, and correct four statements that no longer matched wandb/core@master: - Email is resolved as sub, then the email claim, then any claim whose name contains "email" (WB-27624, server v0.74.0). The page still said sub must equal the user's email address. - The org settings UI is a JWT Issuers list supporting multiple issuers, not a single "Set up JWT Issuer" action. - Creating an external service account also requires selecting a JWT issuer, and is reachable from org account settings as well as the team tab. - FEDERATED_AUTH_AUDIENCES sets the expected audience; SKIP_AUDIENCE_ VALIDATION is the flag that skips the check. Document three previously unstated validation rules (iat required, exp - iat capped at 24 hours, jti replay-checked), split audience requirements by deployment type, and add troubleshooting for four failures seen in support: jti_known replay from a split credentials cache, a misleading "No public JWK was registered" error caused by a bad aud, WB-39165, and Public API version skew. Also fix WANDB_IDENTITY_TOKEN_FILE in both env var tables, which described a file path as a directory, and add WANDB_CREDENTIALS_FILE, FEDERATED_AUTH_AUDIENCES, and SKIP_AUDIENCE_VALIDATION. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
Updated 2026-09-01 21:54:40 UTC for deployment · 61c5467. |
Contributor
Readability impactWord-weighted Flesch-Kincaid grade change across 3 changed pages: -0.5 (easier). Lower Flesch-Kincaid grade and higher reading ease both mean easier to read. This check is informational and never blocks a PR. Human readability
AI agent comprehensionRated 0-3 (higher is easier for an agent to parse and act on).
Curated-docs baseline median FK grade by type: conceptual 10.5, procedural 8.8, reference 9.4. |
HiveMind Sessions2 sessions · 1h 11m · $22
View all sessions in HiveMind → Run |
Contributor
🔗 Link Checker Results✅ All links are valid! No broken links were detected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves DOCS-2516 (migrated from WBDOCS-1473, split from WB-19908 "Identity Federation Enhancements").
The ticket asked for a user-account example, a service-account example, notes on known usability issues, and removal of the "Preview" label. Everything except the Preview label is here — see the open question at the bottom.
Corrections to existing content
While sourcing the examples against
wandb/core@master, four statements on the page turned out to be wrong or stale:subclaim must equal the user's email addressservices/gorilla/internal/oidc/storage.go(CreateAccessTokenSession)sub→emailclaim → any claim whose name containsemail. Shipped for WB-27624 in server v0.74.0.frontends/app/src/pages/OrgDashboard/AuthenticationSettings/AuthenticationSettings.tsxfrontends/app/src/pages/Billing/AccountSettings/ServiceAccountsTab/CreateServiceAccountDrawerForm.tsxFEDERATED_AUTH_AUDIENCES=wandbto skip audience validationservices/gorilla/cmd/gorilla_api.go:326,cmd/config.go:65SKIP_AUDIENCE_VALIDATIONis the actual skip flag.New content
wandb.init(); Kubernetes projected service account token).iatis required,exp−iatmust be ≤ 24 hours (fosite default, not overridden in gorilla), andjtiis optional but replay-checked.audvalue, the org name, and it isn't configurable — WB-39012 (Mistral) is still open for that.jti_knownreplay whenlogin()andinit()resolveWANDB_CREDENTIALS_FILEdifferently (EA, 2026-08-26).aud, not a badsub(Mistral, WB-39012).wandb.init()support.Also updated
platform/hosting/env-vars.mdxandplatform/hosting/iam/advanced_env_vars.mdx:WANDB_IDENTITY_TOKEN_FILEwas described as "the absolute path to the local directory where Java Web Tokens (JWTs) are stored" — it's a file path, and they're JSON Web Tokens. AddedWANDB_CREDENTIALS_FILE,FEDERATED_AUTH_AUDIENCES, andSKIP_AUDIENCE_VALIDATION, none of which were in the env var reference.Open question for review
The "Preview" label is still on the page. The ticket asked to remove it, but I couldn't find a GA decision anywhere, and there's some evidence against: Weave and Inference support is still in flight, MT Cloud
audconfigurability is an open FR, and there's an open service-account deletion bug. @RyanBuccellato — is identity federation GA? If so I'll drop the note in a follow-up commit.Two smaller things worth a second pair of eyes:
oauth.tsexposing onlycreateClient/revokeClientwith no update mutation.ServiceAccountsTabContent.tsx:493gates Create API key only onisApiKeyCreationDisabledandapiKeyCount.🤖 Generated with Claude Code