Is there a concept of shared variables among policy files?
d
Dennis (Cerbos)
01/19/2023, 10:12 PM
No, there isn’t (yet). Policy variables are local to the policy file.
An effect similar to the shared variables can be achieved with derived roles.
m
Matthew Ebeweber
01/19/2023, 10:23 PM
I experienced a lot of re-use when writing policies and ended up using ytt to define some variables in a single file and add them to different policy files automatically