Hello! Is there a good example of how to organize ...
# help
s
Hello! Is there a good example of how to organize and use scoped policies? I’m trying to evaluate and model some existing permissions and it seems like the scopes would be a good fit, but the playground doesn’t seem to generate them and if i just paste in a policy file named like
resource.yaml
and split the scoped policies within by
---
so they are separate yaml files, it borks. I don’t see any examples of how i can use multiple policies for the same resource but with differing scopes. Any help appreciated.
a
Yep, as you have discovered, although YAML allows you to put multiple documents in the same file, we don't currently support that in Cerbos, so you have to put them in separate files.
s
good to know!