Skip to content

feat(dbm): add OAuth support for dbm samples search#570

Merged
platinummonkey merged 3 commits into
DataDog:mainfrom
srosenthal-dd:stephen.rosenthal/dbm-read-scope
Jun 8, 2026
Merged

feat(dbm): add OAuth support for dbm samples search#570
platinummonkey merged 3 commits into
DataDog:mainfrom
srosenthal-dd:stephen.rosenthal/dbm-read-scope

Conversation

@srosenthal-dd

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

Copy link
Copy Markdown
Member

Addresses #445

Adds dbm_read and built_in_features to the OAuth scope list so pup auth login sessions can call pup dbm samples search.

Why two scopes: the DBM team is migrating permission gating from built_in_features to dbm_read. US1/EU1 currently require built_in_features; the other sites use dbm_read. Requesting both ensures the command works on all sites during the transition. built_in_features can be removed once the migration is complete.

Also updates the pup dbm --help AUTHENTICATION note to reflect OAuth support.

Note: the server-side configuration for the datadog-pup-cli OAuth client already has both dbm_read and built_in_features allowed.

Tested end-to-end against...

  • datad0g.com (staging) - which requires dbm_read
  • us5.datadoghq.com (US5) site - which requires dbm_read
  • app.datadoghq.com (US1) site - which requires built_in_features

https://datadoghq.atlassian.net/browse/DAL-647

Adds dbm_read and built_in_features to the OAuth scope list so
pup auth login sessions can call the DBM logs analytics endpoint.

built_in_features is currently required on US1/EU1; the DBM team is
migrating to dbm_read. Requesting both ensures the command works on
all sites during the transition.
…n comment

- built_in_features was in default_scopes but not read_only_scopes,
  meaning --read-only mode would fail on US1/EU1 for DBM commands
- Add test assertions verifying both scopes are present in read_only_scopes
- Extend the migration comment to note when built_in_features can be removed
Default login already requests both required scopes. Naming dbm_read
alone was misleading for users on sites that still require built_in_features.
@platinummonkey platinummonkey merged commit 545ec06 into DataDog:main Jun 8, 2026
6 checks passed
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.

2 participants