Skip to content

HappyFoundation/opa-bundle-proxy

Repository files navigation

OpenPolicyAgent Bundle proxy

This program acts as a proxy between OpenPolicyAgent (OPA) and an arbitrary HTTP(S) Webserver which provides JSON or YAML files. These files can be combined into a single or mutiple bundles, as defined by OPA.

Usage

In this early alpha version only one bundle with one resource is supported. This can be configured via environment variables or a .env file. An example can be found here.

  • OBP_RESOURCE_URL the URL where the resource will be fetched
  • OBP_RESOURCE_PATH the path where the resource will be placed, for example my/custom/path can be accessed in OPA via data.my.custom.path
  • OBP_RESOURCE_TYPE the file type of the fetched resource, can be json or yaml

Roadmap

A lot of features are still missing. This roadmap contains all key elements, which shall be implemented.

  1. Add a .manifest file
  2. Create multiple named bundles
  3. Create bundles with multiple files
  4. Make the download async
  5. Support etags
  6. Add signing via the opa command

Licenses

This project is published under the MIT License. The direct dependencies are published under the following licenses:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published