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.
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_URLthe URL where the resource will be fetchedOBP_RESOURCE_PATHthe path where the resource will be placed, for examplemy/custom/pathcan be accessed in OPA viadata.my.custom.pathOBP_RESOURCE_TYPEthe file type of the fetched resource, can bejsonoryaml
A lot of features are still missing. This roadmap contains all key elements, which shall be implemented.
- Add a 
.manifestfile - Create multiple named bundles
 - Create bundles with multiple files
 - Make the download async
 - Support etags
 - Add signing via the 
opacommand 
This project is published under the MIT License. The direct dependencies are published under the following licenses:
rocketMIT License or Apache 2.0 LicenserocketMIT License or Apache 2.0 LicensereqwestMIT License or Apache 2.0 Licenseflate2MIT License or Apache 2.0 LicensetarMIT License or Apache 2.0 LicensedotenvMIT LicenseserdeMIT License or Apache 2.0 Licenseserde_jsonMIT License or Apache 2.0 License