OPA logo
CNCFCloud NativeLast term 0 T0

OPA

Open Policy Agent (OPA) is an open source, general-purpose policy engine.

2
Projects
1
Years active
2
In 0 T0
View on the LFX portal GitHubWebsite
  • Go
  • OPA
  • Go/Python
  • MongoDB (not required
  • +1

Projects

2

2020

2 projects

Term 0 · 2020 Q2 · 2 projects

  • OPA Go APIs

    CommunityBridge · Proposed, acceptance not recorded

    We embed OPA in our applications to implement policy as code. We found that current OPA Go APIs are not designed for API calls. It is mainly for standalone CLI. For example, policy input has to be file via file path. In APIs, policy input could be either string or bytes. We have to write policy data into temp file in order to call OPA APIs. In addition to OPA APIs, we also want to build policy repository to support policy agent

    • Go
    • OPA
  • OPA - MongoDB query translator

    CommunityBridge · Listed in the official cohort

    MongoDB is a general-purpose, document-based, distributed database with a rich query language. OPA features a high-level declarative language called Rego purpose-built for expressing policies over complex hierarchical data structures. OPA is often used to enforce policies over incoming API requests, but using OPA's "partial evaluation" feature it is also possible to enforce policies when data is accessed inside of document-oriented databases like MongoDB. In this model, callers query OPA to obtain a set of conditions to apply to the database query and then rewrite the database query accordingly. There are existing projects that translate "partial evaluation" results to SQL and Elasticsearch. This project would involve designing and implementing a Rego to MongoDB query translator that supports basic relational operations like ==, !=, >, <, etc. This project would hugely benefit the community to perform authorization and data-filtering in MongoDB using OPA.

    • Go/Python
    • MongoDB (not required
    • but nice to have)

Mentors

2