Dmitry Meyerson
05/16/2023, 4:08 PMdocker run -i -t -v /path/to/policy/dir:/policies <http://ghcr.io/cerbos/cerbos:0.26.0|ghcr.io/cerbos/cerbos:0.26.0> compile /policies
however I notice that I have to place all of my resources in a single flat directory structure , so I get a role import error w/in my resourcePolicy doc when I try to keep thing tidy w/ /policies/derivedRoles and /policies/resources - whats the quick fix here? Thank you Cerbos - sorry for @ing pplCharith (Cerbos)
05/16/2023, 4:29 PMDmitry Meyerson
05/16/2023, 4:30 PMdocker run -i -t -v /path/on/host/policies/resources/:/policies <http://ghcr.io/cerbos/cerbos:0.26.0|ghcr.io/cerbos/cerbos:0.26.0> compile /policies
Missing Imports
admin.yaml: Import 'admin_roles' not found
config.yaml: Import 'common_roles_based_on_locale_and_groups' not found
A.yaml: Import 'common_roles_based_on_locale_and_groups' not found
B.yaml: Import 'common_roles_based_on_locale_and_groups' not found
Charith (Cerbos)
05/16/2023, 4:32 PMresources
subdirectory instead of policies
. Try
docker run -i -t -v /path/on/host/policies/:/policies <http://ghcr.io/cerbos/cerbos:0.26.0|ghcr.io/cerbos/cerbos:0.26.0> compile /policies
Dmitry Meyerson
05/16/2023, 4:32 PMgiphy
05/16/2023, 4:34 PMCharith (Cerbos)
05/16/2023, 4:34 PM