Skip to content

workflows: send OAuth bearer token for action connections | DAL-751 - #713

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

workflows: send OAuth bearer token for action connections | DAL-751#713
srosenthal-dd wants to merge 1 commit into
DataDog:mainfrom
srosenthal-dd:stephen.rosenthal/oauth-connections-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

Send the OAuth bearer token for action-connections requests. make_connection_api was using make_api_no_auth!, which always sent API key auth even with a valid OAuth session; switched to make_api!. The action-connections API already accepts OAuth server-side, so this was the only client-side blocker.

Also adds connections_read to read_only_scopes() (it was already a default scope, just missing from the read-only subset) and documents connections_write as an opt-in --extra-scopes scope.

Deliberately not changed

  • connections_write is not added to default_scopes() — connection management is treated as sensitive and stays opt-in.

Test plan

  • CI green

make_connection_api used make_api_no_auth!, which skips the bearer token
unconditionally, so connections requests fell back to API-key auth even for
OAuth logins. The action-connections API already accepts OAuth server-side, so
switching to make_api! is all that was blocking client-side support.

Also adds connections_read to read_only_scopes() (it was already a default
scope) and documents connections_write as an opt-in --extra-scopes scope.

DAL-751
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