OPA gRPC Question #397
-
Hi There, As far as I understand OPA envoy plugin expose OPA as a gRPC server, but the plugin is deployed as a sidecar to an app or microservice, and the consumer actually calls the app or microserivce. So I don't think OPA envoy plugin is the option for my requirement. Is my understanding correct? Do you have any other options for my requirement? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello!
You are correct, there is no generic gRPC API in OPA. You could create your own OPA plugin that exposes the gRPC API that your service expects. Or you could write a shim proxy that exposes gRPC and talks HTTP to OPA. |
Beta Was this translation helpful? Give feedback.
Nothing generic in mind. You'd define your service.proto, generate the golang server code, use OPA as golang library in the server implementation. (Or call out to an OPA instance's HTTP API.)