Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/open-policy-agent/library
The Open Policy Agent project standard library.
https://github.com/open-policy-agent/library
Last synced: about 1 month ago
JSON representation
The Open Policy Agent project standard library.
- Host: GitHub
- URL: https://github.com/open-policy-agent/library
- Owner: open-policy-agent
- License: apache-2.0
- Created: 2017-08-25T22:08:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-16T10:17:42.000Z (over 1 year ago)
- Last Synced: 2024-11-05T22:38:21.381Z (3 months ago)
- Language: Open Policy Agent
- Homepage:
- Size: 63.5 KB
- Stars: 93
- Watchers: 11
- Forks: 33
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-opa - Library - Community-owned policy library for OPA (Policy Packages / Blogs and Articles)
README
# Library
This repository is a community-owned policy library for the Open Policy Agent.
The goal is to provide a place where the community can find and share logic for
analyzing common JSON documents like Terraform plans and Kubernetes API objects.The basic premise is to provide a library of Rego helper functions that
other people can reuse and modify when writing their own policies
along with example policies built using those functions, and
tests that the example policies and helper functions operate as they should.
OPA will be outfitted to pull in libraries and push/contribute helper functions
to the library.The basic format of each library is:
* Any number of .rego files within a directory constitute a library.
* Files beginning with `example` are example policies demonstrating how to use the library.
* Files beginning with `test` are tests either of the library or of the examples.
* Files beginning with `input` are sample inputs used for tests or just as examples.