Skip to content

Migrate integration tests from static API key secret to dd-sts - #985

Open
chouetz wants to merge 1 commit into
masterfrom
nicolas.schweitzer/dd-sts
Open

Migrate integration tests from static API key secret to dd-sts#985
chouetz wants to merge 1 commit into
masterfrom
nicolas.schweitzer/dd-sts

Conversation

@chouetz

@chouetz chouetz commented Sep 3, 2026

Copy link
Copy Markdown
Member

https://datadoghq.atlassian.net/browse/ACIX-1817

Summary

  • Replaces DD_TEST_CLIENT_API_KEY and DD_TEST_CLIENT_APP_KEY secrets with short-lived credentials fetched via dd-sts-action
  • Adds id-token: write permission required for OIDC token federation
  • Switches DD_TEST_CLIENT_USER from a secret to a repo variable (vars.DD_TEST_CLIENT_USER)

This depends on the dd-source policy datadogpy-integration-tests being merged and deployed before this workflow is enabled.

Test plan

  • Confirm dd-source policy PR is merged and deployed see https://github.com/ddoghq/dd-source/pull/62067
  • Set DD_TEST_CLIENT_USER as a repo variable in GitHub settings
  • Remove DD_TEST_CLIENT_API_KEY and DD_TEST_CLIENT_APP_KEY secrets from repo settings once confirmed working
  • Trigger the workflow by adding the ci/integrations label to a PR and verify credentials are fetched successfully

replaces #981

Replace DD_TEST_CLIENT_API_KEY and DD_TEST_CLIENT_APP_KEY secrets with
short-lived credentials from dd-sts-action, and switch DD_TEST_CLIENT_USER
to a repo variable (non-secret).
@chouetz
chouetz requested a review from a team as a code owner September 3, 2026 14:17
@chouetz chouetz added changelog/no-changelog Changes don't appear in changelog ci/integrations Run integration tests labels Sep 3, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T14:19:29.546223Z 031182b PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Sep 3, 2026

Copy link
Copy Markdown

Pipelines

⚠️ Warnings

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 1 Pipeline job failed

Run Integration Tests | integration_tests

View more details · View in GitHub Actions

Permission denied for access to resource. ERROR: Forbidden - Failed permission authorization checks

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 031182b | Docs | View more details | Give us feedback!

@chouetz chouetz added ci/integrations Run integration tests and removed ci/integrations Run integration tests labels Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog Changes don't appear in changelog ci/integrations Run integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant