Live data from Hacker News

Open Policy Agent

openpolicyagent.org

1–10 of 46 posts

Re: Open Policy Agent

#2
My team is using OPA in a re-build of an application that we support. One of the main goals of the rebuild is to ensure we don't end up in a situation where every little rule change (including UAM changes) requires a full rebuild/deploy cycle of the app.

OPA replaces a complex hard-coded, and largely inscrutable UAM model with a (still complex), but flexibly defined, independently testable, and easily inspectable single-responsibility model.

I like that OPA has built in support for testing rulesets. The partial evaluation feature is amazing, ands makes it easy to apply UAM filters to endpoints that return large sets of data (we have consistent query APIs across the app, so could do this with a relatively simple OPA-aware proxy).

It's not all sunshine and roses, and the result might seem overly complex for a lot of use cases, but in our case I think OPA has provided a nice clean abstraction and enabled us to disentangle our UAM from the rest of our code and move more quickly overall.

Re: Open Policy Agent

#5
post #3

OPA was one of the most cursed things I have ever worked with.

OPA, or rego? My experience working for Styra was that most people seemed to grok where OPA fit in fairly quickly, but struggled with rego. It's a very powerful language and well worth learning I think, but it's an investment for sure.

Re: Open Policy Agent

#6
post #3

OPA was one of the most cursed things I have ever worked with.

Used it during my last gig for policy enforcement on a multi-tenant platform for internal applications.

I found it relatively easy to use and at a good level of abstraction to make the policies relatively reusable.

Re: Open Policy Agent

#8
post #7

Curious what folks think about this versus cedar ( https://www.cedarpolicy.com/ ), the open source policy engine behind aws verified permissions.

OPA is much more wide ranging. You can use it for permissions, sure, but also just about anything else you can imagine. I think that makes it much more compelling as a technological investment.

Re: Open Policy Agent

#10
post #7

Curious what folks think about this versus cedar ( https://www.cedarpolicy.com/ ), the open source policy engine behind aws verified permissions.

I work in a highly regulated environment and evaluated using Cedar or OPA.

The biggest advantage to OPA was the flexibility. This enabled not just an authorization decision, but the why behind it. No more questions of why did this person/system gain (or was denied) access, combing through dozens of rules to find the matching statements. Just pull up the log and read the results… This is incredibly useful during audits.

Cedar could not provide that level of detail (or so I was told by AWS representatives selling their hosted version).

Post reply on HN