Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReBAC Rego example #7

Open
mbortolazzo opened this issue Apr 5, 2024 · 5 comments
Open

ReBAC Rego example #7

mbortolazzo opened this issue Apr 5, 2024 · 5 comments

Comments

@mbortolazzo
Copy link

Hi,

I wonder if we can use GitOps with ReBAC and if we can have an example.

Cheers

@orweis
Copy link
Contributor

orweis commented Apr 5, 2024

For other viewers this is a question more about Permit.io than OPAL but the shared Rego code can be used in both.

Hi @mbortolazzo - yes of course.
Check out this demo - docs.permit.io/modeling/rebac-GHC, it uses the custom folder created in Gitops to load this custom Rego which imports the generated Rego code, and adds an ABAC policy on top to enforce time based access boundries.

@orweis orweis closed this as completed Apr 5, 2024
@mbortolazzo
Copy link
Author

Hi @orweis, that's how it looks. I mean, here is an example of what it looks like. I am trying to understand if we can replace our custom CLI and YML files with Rego

@orweis
Copy link
Contributor

orweis commented Apr 8, 2024

Hi @orweis, that's how it looks. I mean, here is an example of what it looks like. I am trying to understand if we can replace our custom CLI and YML files with Rego

I think there's maybe a missing attachment here ?

@orweis orweis reopened this Apr 8, 2024
@mbortolazzo
Copy link
Author

No, my English was just missing. What I was trying to say is that the link shows how to enable GitOps. What I am interested in is how a ReBAC project looks in Rego. As we need to chose if to use Rego or set up our system with a custom CLI and HTTP call to Permit.io

@gemanor
Copy link

gemanor commented Apr 8, 2024

We have here an example of a custom policy that includes the generated ReBAC policy - https://github.com/permitio/ghc-demo-policy
You can read more on the modeling of this repository here - https://www.permit.io/blog/building-healthcare-authorization-nextjs and here - https://docs.permit.io/modeling/rebac-GHC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants