A couple of hours ago we've released
Cerbos v0.29.0.
cerbie๐
You can now define your variables in a dedicated file and import them into any of the other policies to reuse common values and expressions across your policy repo.
Additionally, a new globals object is available to policies at runtime to read environment-specific values. For example, you might want to grant additional permissions to a role in your staging environment, without creating separate policy versions for different environments.
There are some more interesting novelties.
To see all the changes and read full release notes, check
https://docs.cerbos.dev/cerbos/latest/releases/v0.29.0.html