reinkrul opened a new issue, #10930: URL: https://github.com/apache/apisix/issues/10930
### Current State The OPA plugin documentation (https://apisix.apache.org/docs/apisix/plugins/opa/) includes examples without policy namespace (`example1`, `echo`). If you have an OPA policy with a namespace (e.g. `examples.echo`), you have to configure this in APISIX as ```json { "policy": "examples/echo" } ``` (instead of `examples.echo`). I only found this after spending a lot of digging through APISIX's OPA plugin code and OPA issues with similar characteristics. What doesn't help (aside from me being totally new to both APISIX and OPA), is that the log message is somewhat technocratic; ``` opa.lua:112: phase_func(): invalid OPA decision format: {"decision_id":"6d671f5e-baa6-43bf-bdb2-aec6116246b0"} err: `result` field does not exist, client: 192.168.65.1 (etc...) ``` ### Desired State Document how `policy` should be configured with namespaces OPA packages, and/or include an example with a namespace. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
