6 ms·
Opa – An open-source, general-purpose policy engine
- sanxiyn 9y agoUnfortunate name conflict with http://opalang.org/ http://opalang.org/
- zanalyzer 9y agoalso with every German grandpa
- djtriptych 9y agoOr Dutch.
- chendal 9y agoAlso conflicts with Oracle Policy Automation.
- ironjunkie 9y agoGet used to it. After 40+ years in this industry, every single 2,3 and 4 letter acronyms are already used by Something else.
- stesch 9y agoBut it's annoying when a popular name is used for new projects. Like elm.
- ComputerGuru 9y agoAnd this needs to be 2, 3, or 4 letter acronym because?
- ojilles 9y agoOr "Outer Planet Alliance"
- gabrielcsapo 9y agoaha! Someone likes the expanse!
- exabrial 9y agoAnd a race of factory workers at a certain chocolate factory that requires golden tickets for admission.
- technimad 9y agoIt also conflicts with the Dutch word for grandfather: https://translate.google.com/#nl/en/opa https://translate.google.com/#nl/en/opa
- deleted 9y ago[deleted]
- scardine 9y agoIf you just want to know what language was used to write this, I can spare you the visit to github: it is go.
- deleted 9y ago[deleted]
- caniszczyk 9y agoOPA is also a Cloud Native Computing Foundation (CNCF) sandbox project: https://www.cncf.io/blog/2018/03/29/cncf-to-host-open-policy-agent-opa/ https://www.cncf.io/blog/2018/03/29/cncf-to-host-open-policy...
- tsandall 9y agoCo-author of OPA here. I’m happy to answer any questions about the project!
- im_down_w_otp 9y agoHowdy! This having looked through the repo and docs, this feels to be very Prolog-y, or more specifically a fairly domain specific implementation of a thing that's otherwise generalized typically by Prolog. I'm really curious to hear if it was in any way informed or inspired by other logic programming systems, and/or what some of the more challenging aspects were of implementing a predicate logic system like this in Golang.
- tsandall 9y agoHello! The semantics are based on Datalog--but we've added a few features that make it more expressive than just plain Datalog. For example, OPA has first-class support for accessing nested data structures like JSON. At the same time, OPA does not support recursion today, however we've found you can get quite far without it. I don't think that Golang introduces any unique challenges for implementing a logic system, just the usual suspects like garbage collection, lack of generics, etc. Hope this helps.
- linux2647 9y agoIs there any way of including an external data source, like a database, instead of data documents? For example, the management hierarchy for my company lives in an ERP system and I'd like the data to be as up to date as possible. Also, are there any theoretical limits to how much data could be loaded in to OPA?
- tsandall 9y agoThere are a few ways of doing this. 1. You can include JSON data as input when you execute a policy query. In your example, you could include the management hierarchy or a user in a JWT that's provided as input to the policy query. 2. You can load JSON data into OPA out-of-band. OPA will cache this data in-memory and you can refer to it in your policies. There are two ways to do this. (a) use OPA's REST API to push data into the engine (e.g., PUT /v1/data/management/hierarchy <JSON body>) or (b) use OPA's Bundle feature to pull down bundles of policy and data from a remote endpoint. 3. If providing the data as input or out-of-band will not work, we have an experimental HTTP built-in function that you can call inside your policies to query the external data source on-the-fly when the policy is evaluated. This feature is still experimental but over time we intend to improve support for it (e.g., currently you can't mock out these built-in calls, but it's on the ROADMAP.) Regarding limits, OPA keeps policies and data in-memory, so you're limited by RAM on a single host.
- gabrielcsapo 9y agoCame here for the expanse reference, found a really cool product awesome work!