Skip to content

Future: deploy your own spore.host infra account (the whole control plane, not just the reaper) #780

Open

Description

@scttfrdmn

Three deployment shapes, and only two are supported

Recorded from the project's own framing, because it is not written down anywhere
and it determines what #769 should actually be.

  1. Shared — anyone using spore.host relies on the reaper in spore.host's
    infra account (966362334030), reaching their launching account cross-account.
    This is the default and it works, unless their organization forbids trusting
    an external principal.
  2. In-account — for institutions and businesses that block exactly that: AWS
    itself, universities, government. spawn reaper deploy (No supported way to run the TTL reaper in your own account, so governed orgs can't have reaper coverage at all #625) stands up a
    reaper inside the account, and pkg/reaperdeploy has no sts:AssumeRole
    grant at all
    — only a trust policy naming lambda.amazonaws.com. That
    absence is the point: --fsx-lifecycle ephemeral did not reap the filesystem when the instance terminated (1.2 TiB left AVAILABLE and billing) #613's audit turned on being able to state it.
  3. Own infra account — an institution deploys their own spore.host infra
    account, where cross-account trust IS acceptable because both accounts are
    theirs, inside their own organization.

Shape 3 is not supported today, and nothing tracks it. #625 covered shape 2;
#457 covers deprovisioning onboarded accounts; neither is this.

What is missing, concretely

A self-deployable cross-account hub. Measured against what exists:

shape 1 (operated) shape 2 (pkg/reaperdeploy) shape 3 needs
deployment spore.host's CFN stack, not third-party deployable spawn reaper deploy self-deployable
mode REAPER_SCAN_SELF=false, cross-account SCAN_SELF: "true" hardcoded cross-account, by choice
sts:AssumeRole grant yes, in the template none, by design yes, as an explicit mode
env vars settable 13, via 19 template parameters 3 the cross-account set
observability 6 alarms, 4 metric filters none some of it

So an institution wanting shape 3 has no path: the CFN template is spore.host's
own operational artifact (its parameters are not documented in the repo — #474),
and the Go path deliberately cannot do cross-account.

Why this reframes #769

#769 proposed moving the operated reaper onto pkg/reaperdeploy as a cleanup —
"one path instead of two". Assessed on its own terms that is a bad trade, and I
said so there: it would mean adding an AssumeRole grant to the shape whose
security story is the absence of one, or forking the policy and keeping two paths
anyway.

But as enabling work for shape 3 it is a different proposition. Shape 3
requires a self-deployable cross-account hub, which means pkg/reaperdeploy
needs a deliberate hub mode regardless of whether spore.host's own reaper
ever migrates onto it. The migration then becomes a consequence — spore.host
would be dogfooding the same path it ships to institutions — rather than the
goal.

That is a much better reason to build it, and it changes what gets built:
a mode, chosen explicitly, not a widening of the default.

The constraint that must hold

An in-account deploy must remain auditably free of sts:AssumeRole. That is
what made shape 2 acceptable in a governed org, and #613's audit is quotable
precisely because the answer was "zero". If hub mode is added, there needs to be
a test asserting that the in-account path emits no AssumeRole grant — otherwise
the property becomes a claim rather than a fact, and the next audit cannot repeat
it.

Related

Context from project notes rather than this repo: an enterprise deployment is
already in progress in account 812107987990 at
spore.research.wwps.aws.dev, which is an instance of shape 3 — worth
confirming whether that deployment currently has reaper coverage at all, since
by this analysis it cannot have it through either supported path.

Activity

  1. added
    enhancement
    on Oct 9, 2026
  2. changed the title [-]No supported way to deploy your own spore.host infra account (cross-account reaper hub)[/-] [+]Future: deploy your own spore.host infra account (the whole control plane, not just the reaper)[/+] on Oct 10, 2026
  3. scttfrdmn commented on Oct 10, 2026

    @scttfrdmn
    ContributorAuthor

    Correction: I scoped this to the reaper. It is the whole control plane, and it is a future state.

    Two things to fix in the framing above.

    It is not just a reaper. I filed this from a reaper investigation (#769) and
    inherited that narrowness. An institution standing up its own spore.host infra
    account needs the control plane, of which the reaper is one function. Measured
    with spawn footprint (#771) against 966362334030/us-east-1 — 103
    control-plane resources
    :

      regional
         23  dynamodb/table
         18  lambda/function
         18  logs/log-group
          5  events/rule
      global
         21  s3/bucket
         16  iam/role
          2  iam/instance-profile
    

    The reaper is 1 of 18 functions. The others include the sweep orchestrator,
    pipeline orchestrator, scheduler handler, autoscale orchestrators, dashboard
    API/websocket pair, alert evaluator, cost-history collector, DNS updater, and the
    portal phone-home. Plus 11 regional spawn-binaries-* buckets that instance
    bootstrap and upgrade-spored read from — which a self-hosted deployment would
    need its own copies of, in its own regions, or a documented way to point at
    spore.host's.

    So the real question this issue asks is: which of those 103 are load-bearing
    for a self-hosted deployment, which are spore.host-operator-only, and which are
    optional?
    That triage is the actual first deliverable, and spawn footprint -o json now produces the input for it.

    It is a future state. Not scheduled, not blocking anything. Retitled to say
    so. The value of writing it down now is that it stops being rediscovered from a
    reaper-shaped hole each time, and it gives #769 a correct reason to exist rather
    than a cleanup-shaped one.

    What this means for #769

    Unchanged in direction, clearer in status: a cross-account hub mode in
    pkg/reaperdeploy is one component of a future shape-3 deployment, not the
    whole of it, and not urgent. The constraint still holds — an in-account deploy
    must remain auditably free of sts:AssumeRole, with a test to keep that a fact
    rather than a claim.

    Also fixed while measuring this

    spawn footprint -o json emitted snake_case at the top level and PascalCase
    inside it
    (control_plane[].Service), because ControlPlaneResource had no
    json tags. A machine contract should not require knowing which half of the struct
    you are reading. Tagged now.

  4. added this to the Later milestone on Oct 19, 2026
  5. modified the milestones: Later, Post-1.0 on Nov 8, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions