cloud-auth: document opt-in OAuth scopes for persona-mappings | DAL-981 - #723
Merged
platinummonkey merged 1 commit intoAug 13, 2026
Conversation
pup's cloud-auth persona-mappings commands already send the OAuth bearer token automatically. The routes now accept it server-side, but require workload_identity_federation_read/write -- permissions only ever granted to admins, so they're opt-in via --extra-scopes rather than added to default_scopes(), matching the existing precedent for other admin-only scopes (api_keys_*, app_keys_*, service_account_write).
platinummonkey
approved these changes
Aug 13, 2026
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.
pup's
cloud-auth persona-mappingscommands already send the OAuth bearer token automatically (no command-logic change needed). The server-side routes now accept OAuth, gated by scopesworkload_identity_federation_read/write.These two permissions are only ever granted to admins, so -- per direction from the team -- they're documented as opt-in via
--extra-scopesrather than added todefault_scopes(), matching the existing precedent for other admin-only scopes (api_keys_*,app_keys_*,service_account_write, see #702).Changes
cloud-authcommand noting the required scopes and the opt-in invocation.workload_identity_federation_read/writeare excluded from bothdefault_scopes()andread_only_scopes().Test plan
--extra-scopes workload_identity_federation_read,workload_identity_federation_writelogs in successfully,list/getreturn real data over the bearer token, andcreatereaches business-logic validation (not an auth error), confirming the OAuth path works end-to-end for both read and write.