Skip to content

Scope the in-account reaper's SSM grant the way the cross-account template already does #818

Closed

Description

@scttfrdmn

An over-broad grant in pkg/reaperiam. The correctly-scoped counterpart exists in ttl-reaper-cross-account-role.yaml; port it. Related: #254 (the inverse class).

Detail, evidence and remediation are in the private advisory GHSA-2hfh-q6jv-qgjp — deliberately not restated here while the fix is outstanding.

Part of the Security audit 2026-10 milestone. Close this when the fix ships; publish the advisory at that point.

Activity

  1. added
    enhancement
    on Oct 11, 2026
  2. scttfrdmn commented on Oct 11, 2026

    @scttfrdmn
    ContributorAuthor

    Correcting something I said on this issue. I flagged it as carrying a live deploy
    consequence — "the ScanSelf policy is what spawn reaper deploy writes, so any
    already-deployed in-account reaper keeps the broad grant until re-deployed." Checked
    both accounts, and that is not the case here:

    • spawn-ttl-reaper-production-TTLReaperFunctionRole-ZJ84YZ2dCPei (966362334030) has
      no ssm:SendCommand grant at all across its four inline policies — the SAM
      template's block is conditional and unset.
    • spawn-ttl-reaper-ec2 (435415984226) already carries the correct scoping:
      arn:aws:ec2:*:435415984226:instance/* with ssm:resourceTag/spawn:managed, plus
      the separate document statement.

    No self-scan reaper has ever been deployed in either account, so the over-broad grant
    existed only in the generator — this is latent-only, like the cmd/onboard.go batch.
    Anyone who has run spawn reaper deploy elsewhere should re-run it after the fix.

    Fix in #829.

  3. added a commit that references this issue on Oct 11, 2026
    13ca7a2
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