Repository navigation
Cross-account launch for live smoke test — launch in dev (#38) - #40
Merged
Merged
Conversation
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.
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.
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
real-awsjob gains an optional secondconfigure-aws-credentialsstep that role-chains from the OIDC-anchor role into a launch role in the compute account, gated onvars.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.mddocuments the cross-account variable + the current wiring.IAM wiring (already applied)
966362334030—GitHubActions-spore-host-integration-tests(the OIDC anchor) gained anAssumeDevLaunchRolestatement (sts:AssumeRoleon the dev role). Its existing spore-host perms are untouched.435415984226— newGitHubActions-spawn-ts-live-smokerole: trusts the infra role as principal; least-privilegelive-smoke-launch-policygrantsec2:RunInstances/Terminate/CreateTags/Describe*,iam:PassRolescoped tospored-instance-role(PassedToService ec2), and SSM AMI-param read. 1h max session.LIVE_SMOKE_LAUNCH_ROLE_ARNset 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 thelive-smokeenvironment's required-reviewer gate. No push/PR trigger.