Hi all Is it somehow possible to get action name ...
# help
m
Hi all Is it somehow possible to get action name in condition? Like this one (see %action%)?
Copy code
-   actions: [ 'list', 'view', 'create', 'update' ]
            roles: [ tenant-user']
            effect: "EFFECT_ALLOW"
            condition:
                match:
                    expr: %action% in P.attr.acl
o
Hi @Maxim Laxberg, It is not possible to do that currently, but there is an issue in GitHub for this: https://github.com/cerbos/cerbos/issues/1828 Though, there are some complications (summarized in the GitHub issue in a comment) that needs to be addressed before this is introduced.
m
thank you! 🙂
🙌🏻 1