Skip to content

A nested-spawn role named via --instance-profile (or a --no-detach sweep row) skips --nested-spawn's --ttl requirement #1375

Closed

Description

@scttfrdmn

Follow-up from #1372 (PR #1373). That PR closes the orchestrator paths. Two foreground paths remain:

  • spawn launch --instance-profile spawn-instance-nested-<hash>
  • a --no-detach sweep whose row or defaults set iam_role: spawn-instance-nested-<hash>

Both attach the nested-spawn role, which may call RunInstances and PassRole on spawn-instance-*, without going through --nested-spawn. That flag is the only place Requires --ttl is enforced (cmd/launch_flags.go). Both use the caller's own credentials, so no spore.host principal acts on someone else's behalf. They just get around the rule that an instance able to launch children must itself have a TTL.

Evidence: code reading only (--nested-spawn help/validation vs. the --instance-profile path), not run on AWS.

Fix: treat any profile matching aws.NestedSpawnRolePrefix (aws.IsNestedSpawnRole) exactly like --nested-spawn, requiring --ttl on single launches, and refuse it in foreground sweep rows unless the sweep sets a TTL.

Activity

  1. added this to the v0.148.0 milestone on Oct 28, 2026
  2. added
    area:launch
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:launchcomponent:spawntype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions