Jesum Yip
07/10/2024, 8:45 AMJesum Yip
07/10/2024, 8:45 AMJesum Yip
07/10/2024, 8:46 AMJesum Yip
07/10/2024, 8:48 AMaction
fieldJesum Yip
07/10/2024, 8:49 AMaction
= read
, i write a policy for action
= hidden
and return EFFECT_ALLOW. so when my code sees EFFECT_DENY it means the field SHOULD NOT BE hidden but if it sees EFFECT_ALLOW then it means the field should be hidden.Charith (Cerbos)
foo*
and that matches foo
, foobar
,football
and so on? Unfortunately, that's not possible. However, you can emulate that behaviour using lenient scope search. If I am trying to model your use case and trying to define rules for tables in my database x
, I'd define a base resource policy for database_x
with my default rules. In my application, when I am making the request to Cerbos, I'd set the resource kind to database_x
and the scope
to the table name (say, table_a
). With lenient scope search enabled, if there's no policy defined for scope table_a
, Cerbos would fall back to the base policy -- which is similar to the behaviour you want.Jesum Yip
07/10/2024, 12:45 PMJesum Yip
07/11/2024, 2:25 AMJesum Yip
07/11/2024, 2:26 AMCharith (Cerbos)