You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Live smoke test: launch in dev via cross-account role assumption (infra → dev) #38
Follow-up to #27. The real-aws smoke tier is currently wired to launch in the infra account (966362334030) because that's where the OIDC provider + a ready EC2-capable role already existed — the fast path to get #27 enabled.
The intended end-state (matches the broader control-plane/compute-plane split): identity anchor stays in infra, ephemeral compute lands in dev.
Target shape
GitHub OIDC → GitHubActions-spore-host-integration-tests in infra (trust anchor only) → sts:AssumeRole into a dev (435415984226) launch role holding ec2:RunInstances/TerminateInstances/CreateTags/Describe* + iam:PassRole for dev's spored-instance-profile.
Why not already done
Dev has spored-instance-profile but no OIDC provider or roles yet — the cross-account role + chained assume-role is net-new setup, out of scope for getting the regression guard live.
Work
Create a spore-host-arpeggio-live-smoke (or similar) launch role in dev, trusting the infra integration-tests role principal, with EC2 + PassRole scoped to the spored profile.
Narrow the infra role: it should only need sts:AssumeRole on the dev role for this path (keep its existing EC2 perms for spore-host's own use).
scripts/live-smoke.mjs / workflow: chain the assume-role (or add a second configure-aws-credentials step targeting the dev role) so the launch happens in dev.
Repoint LIVE_SMOKE_ROLE_ARN (or add a LIVE_SMOKE_LAUNCH_ROLE_ARN) accordingly.
Verify: a tier: real-aws run launches a t4g.nano in dev, self-terminates, leak-checks.
This is the small-scale rehearsal of the Arpeggio BYO-account model (control plane reaches into a separate compute account it can deploy into but users can't touch directly).
✅ Validated end-to-end (run 29969175668). Chain: GitHub OIDC → infra anchor → tagged cross-account hop → dev launch role → i-033b56bc34487af0f (t4g.nano) launched in dev (435415984226) → spored self-terminated on its 5m TTL → backstop-terminated → leak-check clean (no live spawn:managed instances remain). <1¢.
Fixes required beyond the initial wiring:
Trust the immutable numeric-ID sub (repo:spore-host@255256540/spawn-ts@1307022560:environment:live-smoke) — the org enforces immutable OIDC subjects.
Grant sts:TagSession on both sides of the cross-account chain (dev role trust + infra role's AssumeDevLaunchRole statement), keeping session tagging on rather than skipping it.
Activity
feat: cross-account launch for live smoke test (#38) (#40)
scttfrdmn commentedon Jul 23, 2026
✅ Validated end-to-end (run 29969175668). Chain: GitHub OIDC → infra anchor → tagged cross-account hop → dev launch role → i-033b56bc34487af0f (t4g.nano) launched in dev (435415984226) → spored self-terminated on its 5m TTL → backstop-terminated → leak-check clean (no live
spawn:managedinstances remain). <1¢.Fixes required beyond the initial wiring:
repo:spore-host@255256540/spawn-ts@1307022560:environment:live-smoke) — the org enforces immutable OIDC subjects.sts:TagSessionon both sides of the cross-account chain (dev role trust + infra role's AssumeDevLaunchRole statement), keeping session tagging on rather than skipping it.chore(release): 0.7.0, and make the release process repeatable (#69)