apisix-opa-plugin

command module
v0.0.0-...-86f34a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 15 Imported by: 0

README

apisix-opa-plugin

An Open Policy Agent plugin for Apache APISIX

Remarks

This plugin requires the OPA_URL environment variable to be set. As per external-plugin FAQ the nginx_config configuration must be set to forward this environment variable to the runner, otherwise it will be hidden.

To do so, the APISIX configuration should include a similar snippet of configuration:

nginx_config:
  envs:
  - OPA_URL

Plugin Configuration

When setting up the plugin on APISIX, provide a configuration similar to the following:

{
  "conf": [
    {
      "name": "opa",
      "value": "{\"rule_path\": \"com.swisscom.ini.dna.nb/rule1\"}"
    }
  ],
  "disable": false
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL