Mark Piper11/14/2022, 7:22 PM
? Use case would be adding Cerbos on top of existing authorization logic.
eg: If Cerbos returns an answer use it -- but if indeterminate, fallback to the existing logic (outside of Cerbos).
Steve High (NTWRK)11/14/2022, 7:37 PM
Andrew Haines (Cerbos)
, and pass both actions to your check resources request.
• You could set
on the check request and look for empty
in the result metadata, which would indicate an implicit rather than explicit deny (the caveat here is that you would have to write two rules for every action, one allow and one deny, in order to be able to tell whether you have an answer or an indeterminate result).
• You could do a plan rather than a check, which allows three-valued results (
); you could set it up so that you'll get a conditional result if you need to fall back to the existing logic.