Skip to content

Deny instances rewriting their own spore-host:managed-by/created/schema tags #1662

Open

Description

@scttfrdmn

Found while implementing #1652 (PR #1661), for the Leave-no-trace epic spore-host/spore-host#752.

An instance's own role may rewrite tags on itself, except the keys spored's policy explicitly denies. spore-host:managed-by is not on that deny list. A compromised or misbehaving workload could relabel its instance (e.g. managed-by=calque, or remove the tag) and so take it out of spawn's future idle teardown (#1654). TTL enforcement is unaffected, because it keys on spawn:* tags.

Fix: add spore-host:managed-by, spore-host:created and spore-host:schema to the tag keys the instance role is denied from creating, changing or deleting on itself. This changes the spored managed policy content, so its version bumps (spored-*-v<N+1>). Check against the inline-policy size cap and the nested-spawn role (TestSporedRolesFitTheInlineLimitWhenMixed). Do a real PutRolePolicy/CreatePolicy on a throwaway role before release.

Activity

  1. added this to the Leave no trace milestone on Nov 16, 2026
  2. added
    type:security
    on Nov 16, 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

    component:spawntype:security

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions