ext_authz: configurable HTTP status code for network errors. (#6669)

Signed-off-by: Gabriel <gsagula@gmail.com>

Mirrored from https://github.com/envoyproxy/envoy @ b0c3683a9e9bc1ce15a58d385353f2525b3ff515
pull/620/head
data-plane-api(CircleCI) 6 years ago
parent 78dafba5f6
commit aea8572115
  1. 1
      envoy/config/filter/http/ext_authz/v2/BUILD
  2. 5
      envoy/config/filter/http/ext_authz/v2/ext_authz.proto

@ -9,6 +9,7 @@ api_proto_library_internal(
"//envoy/api/v2/core:base",
"//envoy/api/v2/core:grpc_service",
"//envoy/api/v2/core:http_uri",
"//envoy/type:http_status",
"//envoy/type/matcher:string",
],
)

@ -11,6 +11,7 @@ import "envoy/api/v2/core/base.proto";
import "envoy/api/v2/core/grpc_service.proto";
import "envoy/api/v2/core/http_uri.proto";
import "envoy/type/http_status.proto";
import "envoy/type/matcher/string.proto";
import "validate/validate.proto";
@ -67,6 +68,10 @@ message ExtAuthz {
// altering another client request header.
//
bool clear_route_cache = 6;
// Sets the HTTP status that is returned to the client when there is a network error between the
// filter and the authorization server. The default status is HTTP 403 Forbidden.
envoy.type.HttpStatus status_on_error = 7;
}
// Configuration for buffering the request data.

Loading…
Cancel
Save