Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 710 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 710 Bytes

Use the example bundle in OPA

Example of an OPA config.yaml:

services:
  - name: example-repo
    url: https://dodas-ts.github.io/opa-bundles/

bundles:
  authz:
    service: example-repo
    resource: example-bundle.tar.gz
    persist: true
    polling:
      min_delay_seconds: 10
      max_delay_seconds: 20

Then run OPA with:

opa run -s -c config.yaml

Github Actions automation

At each tag and push to main branch, a GH action is triggered and it automatically test and push the updated bundle on the Githubpages of this repo. From there it is then fetched by the opa server

To replicate the automatic tests manually you can alternatively use the Makefile provided.