Brandon Choe
02/13/2024, 9:58 PMDennis (Cerbos)
request.resource.attr.department == request.principal.attr.department
The principal attributes are known at the time of the call. Let’s say the principal department is marketing
, so the query plan will contain an AST of request.resource.attr.department == "marketing"
.Dennis (Cerbos)
Brandon Choe
02/13/2024, 10:10 PMrequest.principal.attr.department == "marketing"
?Dennis (Cerbos)
true,
so the query planner will return KIND_ALWAYS_ALLOWED
Dennis (Cerbos)
EFFECT_ALLOW
Brandon Choe
02/13/2024, 10:14 PMDennis (Cerbos)
Brandon Choe
02/13/2024, 10:16 PM