Next question: do you have a complete overview of ...
# help
s
Next question: do you have a complete overview of all the variables that we could be using in policy and output definitions? Eighter documentation or runtime based? I got a question like: can we output the name of the derived_roles that where in place during policy evaluation, as part of an output in the policy?
I found something in this PR: runtime.effectiveDerivedRoles https://github.com/cerbos/cerbos/pull/1778
a
Yup you can return that variable in the policy output - but also if you make a check against the PDP with
includeMeta: true
then its returned in the response also
s
so how are the 'meta' vars refernced? Are those under the 'runtime' hive?
a
metadata isnt exposed to policies. If you want to get the effectiveDerivedRoles then you can refernece
runtime.effectiveDerivedRoles
in the conditions/outputs
s
OK; so would there be a var to output the 'actions' in a Output?
hi @Alex Olivier (Cerbos), is there a variable to reference the 'action'?