What needs to know about the microservices logic to write OPA policies for authorization (boundaries between OPA policies and microservices logic) #56
Unanswered
rkhalyleh
asked this question in
OPA and Rego
Replies: 1 comment 3 replies
-
Hi Rami! And welcome to the OPA community :) Sounds like you are on the right track decoupling authorization policies from you application. The information needed to make policy decisions vary widely between applications, but some things that are pretty common to want to include to make an informed policy decision includes:
The docs section on RBAC provides a basic example of what this might look like, and there are also a couple of examples in the Rego Playground (see Examples and Access Control). Let me know if there's anything more specific you'd want me to expand on. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I'm new to OPA, I've microservices deployed on Kubernetes, and I plan to use OPA for authorization, main goal is to separate authorization decision making outside microservices logic.
My question is, What are the information needed to know about microservices side in order to implement the OPA policies (level of details)? such as whoever write these policies, Is it enough to be aware about what are the REST APIs exposed from microservices to write policies?
What are levels in microservices can OPA cover for authorization? e.g. can only cover endpoints (REST APIs)? Or more levels on microservices logic?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions