Skip to content

fix: update nightly debug build to use OIDC for SSM mode#21233

Draft
AztecBot wants to merge 1 commit intonextfrom
claudebox/fix-nightly-debug-ssm
Draft

fix: update nightly debug build to use OIDC for SSM mode#21233
AztecBot wants to merge 1 commit intonextfrom
claudebox/fix-nightly-debug-ssm

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Mar 7, 2026

The recent migration from SSH to SSM (#20555) changed bootstrap_remote to default to SSM mode (via bootstrap_ssm), which requires iam:PassRole to attach an instance profile to the EC2 instance.

The nightly debug workflow was still using static IAM credentials (AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY from the build_instance user), which doesn't have iam:PassRole permission. This caused the nightly build to fail with:

UnauthorizedOperation: You are not authorized to perform this operation.
User: arn:aws:iam::278380418400:user/build_instance is not authorized to perform:
iam:PassRole on resource: arn:aws:iam::278380418400:role/ci3-build-instance-role

Fix: Update the nightly debug workflow to use OIDC authentication (matching ci3.yml):

  • Add id-token: write permission for OIDC
  • Add configure-aws-credentials step with OIDC role assumption
  • Remove static AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY env vars (OIDC creds flow through automatically)
  • Pass CI3_INSTANCE_PROFILE_NAME and CI3_SECURITY_GROUP_ID secrets

NOTE: The proposed file is in .github-new/ because CI workflow modifications are blocked. Copy barretenberg-nightly-debug-build.yml from .github-new/workflows/ to .github/workflows/ to apply.

ClaudeBox log: http://ci.aztec-labs.com/e32e43ef303f406a-1

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant