Skip to content

Add an off switch for revoking permissions in the built-in role sync #1430

Closed

Description

@iammukeshm

Tracking item for #1426 (requested in review, may land inside that PR). Once the sync becomes authoritative, any host that registers IdentityModule without every other module would revoke the missing modules' permissions from Admin in every tenant on startup.

Guards:

  • skip removal when a role's target set is empty
  • Identity:PermissionSync:RemoveRevoked (default true) to turn removal off for partial hosts
  • document both in the docs authorization page

Close this when #1426 merges with the guards.

Activity

  1. iammukeshm commented on Nov 3, 2026

    @iammukeshm
    MemberAuthor

    Done in #1426. PermissionSyncOptions:RemoveRevoked (default true) turns the removal side of the built-in role sync off. With it set to false, the sync only adds permissions and logs once at startup that it's running add-only. It's meant for hosts that load only some modules, where a partial permission catalog would otherwise look like revocations. It's documented on the Authorization page and in the production checklist.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions