wolf icon indicating copy to clipboard operation
wolf copied to clipboard

How to allow/disallow routes according to role in apisix

Open yrimjang opened this issue 1 year ago • 1 comments

I am using apisix and am trying to do rbac with wolf-rbac. When I looked at the consumer and route options in apisix, it seemed like there was no separate setting for the role. When an apisix route is requested with a token received from wolf-rbac, how can the route know its permissions?

yrimjang avatar Feb 15 '24 05:02 yrimjang

Hello, the roles for users are set in the wolf console. The permissions for a route are added/set in the resources. For a new route, you need to add a resource, which sets the corresponding URL (prefix or suffix) and the required permissions for it. Users then need to be associated with roles, and roles associated with permissions.

iGeeky avatar Feb 16 '24 06:02 iGeeky