Skip to content

pup: enable OAuth for DDSQL editor commands - #756

Draft
srosenthal-dd wants to merge 2 commits into
DataDog:mainfrom
srosenthal-dd:stephen.rosenthal/oauth-ddsql-editor
Draft

pup: enable OAuth for DDSQL editor commands#756
srosenthal-dd wants to merge 2 commits into
DataDog:mainfrom
srosenthal-dd:stephen.rosenthal/oauth-ddsql-editor

Conversation

@srosenthal-dd

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

Copy link
Copy Markdown
Member

Summary

Remove 3 dsql-editor tool endpoints from OAUTH_EXCLUDED_ENDPOINTS so raw_get/raw_post send the OAuth bearer token for ddsql::spec, ddsql::schema_tables, and ddsql::schema_columns commands.

Server-side dependency

Depends on dd-source#66615 which adds ValidOAuthAccessToken to the 3 ddsql-editor routes. Do not merge until that PR is merged.

Changes

  • src/raw_client.rs: Removed 3 dsql-editor entries from OAUTH_EXCLUDED_ENDPOINTS (46 -> 43), updated count test, removed obsolete ddsql-editor test

Remove 3 dsql-editor tool endpoints from OAUTH_EXCLUDED_ENDPOINTS
so raw_get/raw_post send the OAuth bearer token for ddsql::spec,
ddsql::schema_tables, and ddsql::schema_columns commands.

Depends on server-side PR: dd-source#66615
…th-ddsql-editor

# Conflicts:
#	src/raw_client.rs
platinummonkey pushed a commit that referenced this pull request Aug 27, 2026
…nd CCM

Remove 32 entries from OAUTH_EXCLUDED_ENDPOINTS for endpoint groups
whose server-side routes already accept OAuth:

- Fleet Automation (15): v2 routes already have ValidOAuthAccessToken
- Cost/Billing (3): server already accepts OAuth (DAL-959)
- Cloud Cost Management config (14): server already accepts OAuth (DAL-959)

Also remove the brittle OAUTH_EXCLUDED_ENDPOINTS count assertion
(test_oauth_excluded_count) which was prone to merge conflicts and
tested no actual behavior. Update test_requires_api_key_fallback_fleet
to test_no_fallback_for_fleet, and switch the
test_other_oauth_excluded_endpoints example from Fleet to Profiling
(which remains excluded).

Remaining excluded entries (8): DDSQL editor (3, handled by #756),
Profiling (4, no OAuth scope), Events intake (1, SDK codegen issue).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant