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_URL
the URL where the resource will be fetchedOBP_RESOURCE_PATH
the path where the resource will be placed, for examplemy/custom/path
can be accessed in OPA viadata.my.custom.path
OBP_RESOURCE_TYPE
the file type of the fetched resource, can bejson
oryaml
A lot of features are still missing. This roadmap contains all key elements, which shall be implemented.
- Add a
.manifest
file - Create multiple named bundles
- Create bundles with multiple files
- Make the download async
- Support etags
- Add signing via the
opa
command
This project is published under the MIT License. The direct dependencies are published under the following licenses:
rocket
MIT License or Apache 2.0 Licenserocket
MIT License or Apache 2.0 Licensereqwest
MIT License or Apache 2.0 Licenseflate2
MIT License or Apache 2.0 Licensetar
MIT License or Apache 2.0 Licensedotenv
MIT Licenseserde
MIT License or Apache 2.0 Licenseserde_json
MIT License or Apache 2.0 License