Hi guys, Does anyone know how to use condition scr...
# help
k
Hi guys, Does anyone know how to use condition script? I'm not sure but how it's possible to implement if ... then ... if ... in Cerbos? Can condition handles by external system to call a external engine and response with TRUE/FALSE?
c
Hey, You can use the ternary operator (
x == 1 ? "foo" : "bar"
) in conditions. You can't call into external systems from conditions. You have to send all the external data Cerbos needs as attributes of either the principal or the resource.