Skip to content

Add OAuth support for {aws, gcp} integrations#443

Merged
platinummonkey merged 2 commits intoDataDog:mainfrom
srosenthal-dd:stephen.rosenthal/cloud-aws-gcp-oauth-scopes
May 1, 2026
Merged

Add OAuth support for {aws, gcp} integrations#443
platinummonkey merged 2 commits intoDataDog:mainfrom
srosenthal-dd:stephen.rosenthal/cloud-aws-gcp-oauth-scopes

Conversation

@srosenthal-dd
Copy link
Copy Markdown
Member

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

Status: Ready to merge!

Addresses #437.

Summary

Adds aws_configuration_read and gcp_configuration_read to default_scopes and read_only_scopes in src/auth/types.rs, following the existing azure_configuration_read pattern. Test count assertion bumped 81 → 83 with positive assertions for the two new scopes.

Without this, pup cloud {aws,gcp} list 401s even after Datadog enables OAuth on the underlying routes, because pup's OAuth client doesn't request the right scopes at login.

Also required server-side configuration updates, which were applied separately.

Test plan

  • cargo build, cargo test --bin pup auth::types, cargo clippy --all-targets -- -D warnings, cargo fmt --check all clean
  • End-to-end: pup auth login against staging, then pup cloud aws list returns real data
  • End-to-end: pup auth login against staging, then pup cloud gcp list returns real data

Jira: https://datadoghq.atlassian.net/browse/DAL-508

Adds the two scopes to default_scopes and read_only_scopes (matching
the existing azure_configuration_read pattern) so `pup cloud aws list`
and `pup cloud gcp list` work after Datadog enables OAuth on the
underlying API routes.

Closes DataDog#437.
@srosenthal-dd srosenthal-dd changed the title [DO NOT MERGE] Register aws_configuration_read and gcp_configuration_read scopes Add OAuth support for {aws, gcp} integrations Apr 29, 2026
@srosenthal-dd srosenthal-dd marked this pull request as ready for review April 29, 2026 21:12
@srosenthal-dd srosenthal-dd marked this pull request as draft April 29, 2026 21:13
platinummonkey
platinummonkey previously approved these changes Apr 29, 2026
@srosenthal-dd
Copy link
Copy Markdown
Member Author

srosenthal-dd commented May 1, 2026

Note: AWS fix is rolled out server-side. GCP service-side OAuth fix is rolling out right now, so should be done by the end of the day, if nothing goes wrong.

EDIT: the server side updates are done. This is ready to merge.

…loud-aws-gcp-oauth-scopes

# Conflicts:
#	src/auth/types.rs
@platinummonkey platinummonkey merged commit 9166dee into DataDog:main May 1, 2026
5 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