auth: request scopes for new server-side OAuth support | DAL-971 DAL-972 DAL-959 DAL-974 DAL-978 - #714
Merged
platinummonkey merged 1 commit intoAug 19, 2026
Conversation
1 task
…AL-972 DAL-959 DAL-974 DAL-978
srosenthal-dd
force-pushed
the
stephen.rosenthal/oauth-batched-scopes
branch
from
August 19, 2026 20:09
0bd2d92 to
e8d401c
Compare
srosenthal-dd
marked this pull request as ready for review
August 19, 2026 21:09
platinummonkey
approved these changes
Aug 19, 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.
Motivation
Expand support for OAuth, in particular for the pup CLI and other AI-agent/programmatic clients. OAuth is now a general-purpose auth method, and is preferred over API+App Keys because it's always scoped and credentials automatically expire.
Changes
Add scopes for server-side OAuth support that has now landed, so pup's login tokens carry the required permission:
metrics_metadata_writesynthetics_default_settings_writeccm_budget_writeccm_forecast_writesecurity_monitoring_cws_agent_rules_read/writetelemetry_rules_read/createTest plan
--extra-scopesneeded):metrics metadata update-- no-op update of an existing metric's metadatacsm-threats agent-rules create/delete-- created and deleted a throwaway agent ruletag-policies create/delete-- created and deleted a throwaway tag policycosts ccm budgets validate-- reached budget-validation business logic (not an auth error)POST /api/v2/cost/budget/custom-forecast(no dedicated pup command yet) -- reached validation business logic (not an auth error)