Is it possible to Cerbos serve for two or more apps? #1689
-
Hi all. And thanks for this OS software. A refine software about authorization. I want to use a local Cerbos to server for two or more apps, each one with different rules and schemas. Say one app is a photo sharing (as example), and another is a financial one. I can't figure how to layout the policies repository for those apps. I know scoped policies are for the same "schema" with distinction of development, staging, etc, but the concept about rules is the same. Can you tell me if it is possible and how to layout the policy repository for two distinct app? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You could just create resourcePolicies like this. For the Photo-app
For the financial-app
You could also reuse DerivedRoles in both whenever it makes sense. The folder structure could be like this
Hope that helps! |
Beta Was this translation helpful? Give feedback.
You could just create resourcePolicies like this.
For the Photo-app
For the financial-app
You could also reuse DerivedRoles in both whenever it makes sense.
The folder structure could be like this