Create simple constructs for instantiating OPA with the same configuation
options as provided the standalone application.
Included in PR also a simple management API server implementation for testing,
which could be useful both for SDK integration testing as well as for internal
tests. Plan is to extend this and move much of the repeated logic around this
in plugin tests et. al. in here.
Closesopen-policy-agent#3140
Signed-off-by: Anders Eknert <anders@eknert.com>
This is done, though we still need to document the SDK and update some of our side project repos to use it. Closing and creating separate issue for docs.
We don't do a good job of enabling OPA config embedding today yet there are several use cases where a simple Go API that instantiates the management plugins and exposes an evaluation function would be useful. The beginnings of this idea are here: https://github.com/open-policy-agent/example-api-authz-go/blob/master/internal/opa/opa.go.
We should introduce a simple Go API like the one linked above inside of OPA proper and document when and how to use it on the website.
Some improvements need to be made to the code linked above:
interface{})The text was updated successfully, but these errors were encountered: