-
opa-envoy-plugin extends OPA with a gRPC server, and it always returns 403 for all denied requests. But opa can be used for both authentication and authorization, I want to return 401 when authentication is failed, is the opa-envoy-plugin able to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The policy primer docs for envoy have an example of an object response. I would think that you can make use of that, see this sketch:
where Note that the query path for this example is |
Beta Was this translation helpful? Give feedback.
The policy primer docs for envoy have an example of an object response. I would think that you can make use of that, see this sketch:
where
is_authenticated
is the rule in which you establish authentication.Note that the query path for this example is
envoy/authz/response
-- I've always foundallow
for an object response slightly off the mark.