Support for RBAC ServiceRole path wildcard matching

Hi,

I have a set of restful services that have been secured using RBAC. From the documentation I see no mention of support for wildcards in path matching. If can only achieve matching through prefix and suffix only then that means I am forced to add a unique identifier to each endpoint as shown below

Ex.
GET /cars/{car_id}/drivers/{driver_id}/some_unique_identifier

I’m wondering if I have missed something obvious or if wildcard matching is on the roadmap?

Thanks,
Ferg

3 Likes

Seems the RBAC not support this feature, and what i expect is the path support regex, maybe the OPA Policy is good solution for that.

This is something I need to solve also. Any issues open on this yet?

Thanks for opening the issue. Would regular expression matching solve the problem for you? Currently it’s not supported in the API.

cc @liminwang