Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 610 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 610 Bytes

nopa

NATS + OPA

Nopa is a simple way to store OPA bundles in NATS object storage and have the bundle updated in real time.

Usage

Using the example application:

  • Create a NATS object bucket: nats obj add bundles
  • Add the bundle to the object store: nats obj put bundles bundle.tar.gz
  • Start the server go run main.go
  • Send a request to the service nats req test '{"package": "data.foo", "input": {"foo": "bar"}}'

Tip

It is up to your application to handle how the package name and input are generated. You could for example use the subject as the package name.