Skip to content

fix(ci-lease): role-chaining=true on lease-account assume#395

Merged
chrisns merged 2 commits into
mainfrom
chore/role-chaining
May 22, 2026
Merged

fix(ci-lease): role-chaining=true on lease-account assume#395
chrisns merged 2 commits into
mainfrom
chore/role-chaining

Conversation

@chrisns
Copy link
Copy Markdown
Member

@chrisns chrisns commented May 22, 2026

Without this, configure-aws-credentials@v6 tries OIDC against the leased pool account (which has no GitHub OIDC provider) and fails.

chrisns added 2 commits May 22, 2026 09:23
Council-chatbot proved out the auth chain (acquire works through
Lambda relay). Re-adding the rest of the scenarios so the user's goal
("see a workflow run for each scenario") is achievable in one step.

Path filters scoped to each scenario's own directory plus shared CI
infra. Permissions block included (id-token: write) so the reusable
scenario-ci.yml's OIDC step gets propagated correctly.
The configure-aws-credentials@v6 action's default credential resolution
preferentially uses OIDC when an id-token is available. For the second
step in scenario-ci.yml (assuming CIDeployRole inside the leased pool
account), this caused:

  Could not assume role with OIDC: No OpenIDConnect provider found
  in your account for https://token.actions.githubusercontent.com

The leased pool account has no GitHub OIDC provider — we want the
action to sigv4-sign from the already-loaded hub credentials instead.
role-chaining: true forces that behavior.

The third step (switching BACK to the hub role for the release call)
keeps the default OIDC resolution: GitHub still emits an id-token
(thanks to permissions: id-token: write), and the hub role trusts the
GHA OIDC provider but not the leased-account principal.
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns had a problem deploying to smoke-test-deploy May 22, 2026 08:52 — with GitHub Actions Failure
@chrisns chrisns added this pull request to the merge queue May 22, 2026
Merged via the queue into main with commit 86d16dd May 22, 2026
5 of 21 checks passed
@chrisns chrisns deleted the chore/role-chaining branch May 22, 2026 08:53
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.

1 participant