Skip to content

auth: request scopes needed by in-flight server-side OAuth changes | DAL-971 DAL-972 DAL-959 DAL-973 - #714

Draft
srosenthal-dd wants to merge 1 commit into
DataDog:mainfrom
srosenthal-dd:stephen.rosenthal/oauth-batched-scopes
Draft

auth: request scopes needed by in-flight server-side OAuth changes | DAL-971 DAL-972 DAL-959 DAL-973#714
srosenthal-dd wants to merge 1 commit into
DataDog:mainfrom
srosenthal-dd:stephen.rosenthal/oauth-batched-scopes

Conversation

@srosenthal-dd

@srosenthal-dd srosenthal-dd commented Aug 8, 2026

Copy link
Copy Markdown
Member

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 needed by in-flight server-side OAuth PRs, so pup's login tokens carry the required permission once each route lands:

Also documents org_group_read/org_group_write as opt-in --extra-scopes scopes, paired with dd-source#48387.

Deliberately not changed

  • deployment_gates_read/write/evaluate — still Development: true, not valid OAuth scopes yet.
  • cd_visibility_read — would let a read-only login mutate deployment gates via the OR-gating on those routes (see dd-source#48400). Left out pending a decision from ci-cd.

Test plan

  • CI green

Adds metrics_metadata_write, synthetics_default_settings_write, and
ccm_budget_write to default_scopes(). All three are released Standard-tier
permissions whose routes are gaining OAuth support server-side; without the
scope the token pup obtains cannot satisfy the route's permission check.

Documents org_group_read/org_group_write as opt-in --extra-scopes scopes
(Admin tier, so not default-requested).

Deliberately omits deployment_gates_* (still Development: true, so not public
scopes) and cd_visibility_read (it OR-satisfies the deployment-gates write
routes, so it must not land in the read-only scope set).

DAL-971 DAL-972 DAL-959 DAL-973
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

authnz enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants