Skip to content

spawn cleanup --instance-roles deletes the permissions boundary (owner decision: permanent) #1664

Closed

Description

@scttfrdmn

The owner decided (#752) that the permissions boundary spore-host/spawn-instance-boundary is the only permanent spore.host resource, removed only by an explicit human command (#1656).

But instancerole.SweepSporedPolicies (pkg/instancerole/sporedpolicies.go, run by spawn cleanup --instance-roles) deletes the boundary once PermissionsBoundaryUsageCount == 0 and it is at least 24 h old, with no admin warning. A non-admin's next launch then fails, because the documented baseline denies them re-creating it.

Fix:

Found by the #1653 agent (PR #1663); that PR's teardown already refuses the boundary through footprint.IsBoundary.

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

    bugcomponent:spawn

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions