Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum
H

Hi everyone,
I'm using the official casbin/casdoor-all-in-one:latest image on my Mac (Docker Desktop), and I'm having an issue where the Enforcer UI does not display any Permission policies, even after clicking "Sync".
Environment
OS: macOS
Docker Image: casbin/casdoor-all-in-one:latest
Casdoor Version: Built-in latest (from all-in-one image)
Port: 8000:8000
Default Credentials: admin / 123
What I've done so far
Created a Casbin Model with the standard 3-field definition (to match Permission's requirement):
ini
[request_definition]
r = sub, obj, act

[policy_definition]
p = sub, obj, act

[role_definition]
g = _, _

[policy_effect]
e = some(where (p.eft == allow))

[matchers]
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act
Created a Permission using this model:
Sub user: built-in/admin
Resource: app-built-in
Action: Read
Enabled: true
Created an Enforcer with:
Model: The model I just created
Adapter: Only two options are available in the dropdown:
built-in/api-adapter-built-in
built-in/user-adapter-built-in
I tried both adapters and clicked "Sync" multiple times.
The Problem
The Enforcer's "Policies" table remains completely empty ("No data") after syncing.
I cannot see the permission policy I created in the Enforcer UI.
The built-in/adapter_casdoor adapter mentioned in the docs is not available in the dropdown list in this all-in-one image.
Is this a known limitation of the casbin/casdoor-all-in-one:latest image? Or is there a configuration step I'm missing to make Permission policies show up in the Enforcer UI?
Any help would be greatly appreciated!

In fact, I can see the data is right in the permission_rule table of the SQLite database, including the policies created on the Casdoor/Permission GUI and the policies created on the Casdoor/Enforcer GUI. However, I just cannot view the data created by Casdoor/Permission on the Casdoor/Enforcers page, even though the adaptor has been set to permission_rule. This is really confusing.