Skip to content

chore: migrate all CI workflows from static AWS keys to OIDC#21239

Open
randyquaye wants to merge 1 commit intonextfrom
rq/migrate-aws-creds
Open

chore: migrate all CI workflows from static AWS keys to OIDC#21239
randyquaye wants to merge 1 commit intonextfrom
rq/migrate-aws-creds

Conversation

@randyquaye
Copy link
Contributor

@randyquaye randyquaye commented Mar 9, 2026

Summary

  • Remove all secrets.AWS_ACCESS_KEY_ID / secrets.AWS_SECRET_ACCESS_KEY usage from CI workflows
  • Add aws-actions/configure-aws-credentials OIDC step to every job that needs AWS access
  • Add permissions: id-token: write to all jobs (and caller workflows for reusable workflows)
  • Pin configure-aws-credentials to v6.0.0 (8df5847) with role-duration-seconds set for long-running jobs
  • Use a dedicated AWS_OIDC_ROLE_ARN_PRIVATE_FORK for the private fork release workflow

Fixes the Post-Actions cache_upload skipping with "no aws credentials found" — the OIDC step was previously conditional on CI_USE_SSH != '1', so when SSH mode was active, no credentials flowed to later steps.

Test plan

  • CI passes on this PR (proves OIDC works for the main ci job)
  • Verify cache_upload in Post-Actions no longer skips
  • Nightly/weekly workflows will validate on next scheduled run

@randyquaye randyquaye requested a review from charlielye as a code owner March 9, 2026 01:59
@randyquaye randyquaye force-pushed the rq/migrate-aws-creds branch from e24de43 to f5eb62a Compare March 9, 2026 02:22
@ludamad
Copy link
Collaborator

ludamad commented Mar 9, 2026

/claudebox review this PR for all CI entrypoints - does it break? evaluate the security

@AztecBot
Copy link
Collaborator

AztecBot commented Mar 9, 2026

ClaudeBox: review this PR for all CI entrypoints - does it break? evaluate the security ... workflow run

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.

3 participants