Skip to content

Support OAuth for logs saved-views create/delete | DAL-942 - #698

Merged
platinummonkey merged 2 commits into
DataDog:mainfrom
srosenthal-dd:stephen.rosenthal/saved-views-scope
Aug 3, 2026
Merged

Support OAuth for logs saved-views create/delete | DAL-942#698
platinummonkey merged 2 commits into
DataDog:mainfrom
srosenthal-dd:stephen.rosenthal/saved-views-scope

Conversation

@srosenthal-dd

@srosenthal-dd srosenthal-dd commented Jul 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Removes POST /api/v1/logs/views and DELETE /api/v1/logs/views/* from OAUTH_EXCLUDED_ENDPOINTS, so saved-views create/delete send an OAuth bearer token when available instead of always falling back to API/app key.
  • Adds saved_views_write to default_scopes().

Test plan

  • CI green
  • e2e validated against app.datadoghq.com

Server now accepts ValidOAuthAccessToken for POST/DELETE on
/api/v1/logs/views; remove them from OAUTH_EXCLUDED_ENDPOINTS and
add saved_views_write to default_scopes().
@srosenthal-dd srosenthal-dd changed the title Send OAuth for logs saved-views create/delete Support OAuth for logs saved-views create/delete | DAL-942 Jul 29, 2026
@srosenthal-dd
srosenthal-dd marked this pull request as ready for review August 3, 2026 15:09
@srosenthal-dd
srosenthal-dd requested a review from a team as a code owner August 3, 2026 15:09
platinummonkey
platinummonkey previously approved these changes Aug 3, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 455a4f8ee0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/raw_client.rs
…ed-views-scope

# Conflicts:
#	src/auth/types.rs
@platinummonkey
platinummonkey merged commit 863c07b into DataDog:main Aug 3, 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