Skip to content

Cross-account launch for live smoke test — launch in dev (#38) - #40

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/live-smoke-launch-in-dev
Jul 22, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/live-smoke-launch-in-dev

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Follow-up to #27. Moves the real-aws smoke launch out of the OIDC-anchor account and into a separate compute account, so identity and ephemeral compute live in different accounts — the control-plane/compute-plane split, a small-scale rehearsal of the bring-your-own-account model. Closes #38.

What changed

  • The real-aws job gains an optional second configure-aws-credentials step that role-chains from the OIDC-anchor role into a launch role in the compute account, gated on vars.LIVE_SMOKE_LAUNCH_ROLE_ARN. Unset → single-account launch (fully back-compatible with Gated real-AWS smoke test (self-termination regression guard) #27).
  • docs/live-smoke.md documents the cross-account variable + the current wiring.

IAM wiring (already applied)

  • infra 966362334030 — GitHubActions-spore-host-integration-tests (the OIDC anchor) gained an AssumeDevLaunchRole statement (sts:AssumeRole on the dev role). Its existing spore-host perms are untouched.
  • dev 435415984226 — new GitHubActions-spawn-ts-live-smoke role: trusts the infra role as principal; least-privilege live-smoke-launch-policy grants ec2:RunInstances/Terminate/CreateTags/Describe*, iam:PassRole scoped to spored-instance-role (PassedToService ec2), and SSM AMI-param read. 1h max session.
  • Repo var LIVE_SMOKE_LAUNCH_ROLE_ARN set to the dev role.

Chain: GitHub OIDC → infra anchor → dev launch role → t4g.nano in dev → spored self-terminates → leak-check.

Still workflow_dispatch-only, still behind the live-smoke environment's required-reviewer gate. No push/PR trigger.

The real-aws tier now optionally role-chains from the OIDC identity-anchor
account into a separate compute account, so the ephemeral t4g.nano launches
there rather than in the anchor account — the control-plane/compute-plane split
(a rehearsal of the bring-your-own-account model).

When vars.LIVE_SMOKE_LAUNCH_ROLE_ARN is set, the workflow assumes the infra OIDC
role, then role-chains into the dev launch role; unset → single-account launch
(back-compatible). IAM already wired: infra GitHubActions-spore-host-integration
-tests can sts:AssumeRole the dev GitHubActions-spawn-ts-live-smoke role, which
holds scoped EC2 + PassRole for dev's spored-instance-profile.

Docs + CHANGELOG updated.
@scttfrdmn
scttfrdmn merged commit 84c6618 into main Jul 22, 2026
1 check passed
@scttfrdmn
scttfrdmn deleted the feat/live-smoke-launch-in-dev branch July 22, 2026 23:25
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.

Live smoke test: launch in dev via cross-account role assumption (infra → dev)

1 participant