Skip to content

The Open Policy Agent project standard library.

License

Notifications You must be signed in to change notification settings

rowan-baker/library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The Open Policy Agent project standard library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 81.1%
  • Makefile 18.9%