Skip to content

[Server] Use upstream Casbin indexes after adapter upgrade #2356

Backlog

Description

@timothyw553

Is your feature request related to a problem? Please describe.

#2313 adds a Casbin index to prevent ownership transfers from blocking unrelated permission changes. The upstream adapter fix adds an equivalent index.

Describe the solution you would like

Upgrade org.casbin:jdbc-adapter once a release contains this fix. Remove UC's duplicate index setup and update its tests and docs.

Verify upgrades from existing databases and retain concurrency coverage on H2, MySQL, and PostgreSQL.

Additional context

Keep READ COMMITTED; MySQL can still block unrelated inserts with the index alone. Keep owner metadata and grants in one transaction.

The adapter ignores index-creation failures. Retain manual index setup instructions for restricted database accounts.

Activity

  1. timothyw553 commented on Nov 24, 2026

    @timothyw553
    CollaboratorAuthor

    this is marked as good first issue but only once a new version of Casbin is released with the relevant change and 0.8.0 releases!

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

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions