Repository navigation
Migrate Test Optimization credentials from dd-sts to Datadog WIF - #8621
Merged
Merged
Conversation
Replace DataDog/dd-sts-action (policy system-tests) with the datadog-workload-identity-federation-github-action intake action, and update docs and comments that referenced dd-sts. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: cbeauchesne <11915659+cbeauchesne@users.noreply.github.com>
|
Bits Code status: ✅ Done Comment @DataDog to request changes |
Contributor
|
|
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: cbeauchesne <11915659+cbeauchesne@users.noreply.github.com>
cbeauchesne
marked this pull request as ready for review
November 23, 2026 15:22
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
robertomonteromiguel
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
SDLC Security is deprecating dd-sts for GitHub workflows in favor of Datadog Workload Identity Federation (WIF). This PR moves the
system-testsdd-sts policy (API key only) to the WIF intake mapping, which is already defined in ddoghq/terraform-config#62345.Every official system-tests job uses this credential, in every repo that calls the reusable workflow. It is needed to tag jobs with
ci.framework.name:system-testsand to push JUnit results to Test Optimization. A single commit runs 2000+ of these jobs, so the credential exchange has to be reliable.Changes
.github/actions/datadog_ci/action.yml: replacesDataDog/dd-sts-action(policysystem-tests) withDataDog/datadog-workload-identity-federation-github-action/intake, pinned to v1.1.0 (c99aa70b13689969f606ae732c7f9eaaeb44cd70).org_uuidis hardcoded. The org UUID isn't sensitive, and this composite action runs in caller repos (dd-trace-*), where this repo's secrets and variables aren't available.sitecomes from the existingdatadog_siteinput.exchange_retries: 5replaces the dd-stsretries: 16. v1.1.0 only retries on 429, 5xx and network errors, with exponential backoff (1s, 2s, 4s, 8s, 16s), so it adds at most about 31s, and only when an exchange fails. A repo missing from the mapping (4xx) fails immediately.dd-ststodd-wif. The upload and tag steps now readsteps.dd-wif.outputs.api_key. Both stay best effort (continue-on-error)..github/workflows/system-tests.yml: thedd_sts_policyinput was already unused. It is now labeled deprecated rather than removed, so callers that still pass it don't break. Theid-token: writecomment is updated.docs/CI/github-actions.md: replaces the dd-sts mentions with WIF. The note about allowing a caller repo now points to the intake mappings. It also says this is needed for job tagging, not only for Test Optimization (the old note wrongly referred totest_optimization_datadog_site).Out of scope: GitLab CI still uses the
system-tests-gitlabdd-sts policy, because WIF only supports GitHub.Validation:
ci.framework.name:system-teststag. All 171 end-to-end jobs uploaded their JUnit results to Test Optimization (171 sessions, about 71,600 tests).yamllintpasses on the changed workflow and action files../format.shpasses up to its yamlfmt step. That step couldn't download yamlfmt in the sandbox, but it only formatsmanifests/, which this PR doesn't touch.id-token: write, and need no secret or variable.Workflow
system-tests-reviewers: ask to one of youre co-worker familiar with the tested feature.system-tests-core(slack)🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
🤖 Generated with Claude Code (https://claude.com/claude-code)
PR by Bits - View session in Datadog • Open in Slack
Comment @DataDog to request changes