ext_authz: makes gRPC service cross-compatible with V2 and V2alpha. (#5825)
Signed-off-by: Gabriel <gsagula@gmail.com> Mirrored from https://github.com/envoyproxy/envoy @ 5d79ca7b47a40aba178ade9516fe279b38c2722apull/620/head
parent
9b2595af9b
commit
62296198ce
4 changed files with 44 additions and 0 deletions
@ -0,0 +1,12 @@ |
||||
load("//bazel:api_build_system.bzl", "api_go_proto_library", "api_proto_library_internal") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
api_proto_library_internal( |
||||
name = "external_auth", |
||||
srcs = [ |
||||
"external_auth.proto", |
||||
], |
||||
has_services = 1, |
||||
deps = ["//envoy/service/auth/v2:external_auth"], |
||||
) |
@ -0,0 +1,25 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.service.auth.v2alpha; |
||||
|
||||
option go_package = "v2alpha"; |
||||
|
||||
option java_multiple_files = true; |
||||
option java_generic_services = true; |
||||
option java_outer_classname = "CertsProto"; |
||||
option java_package = "io.envoyproxy.envoy.service.auth.v2alpha"; |
||||
|
||||
import "envoy/service/auth/v2/external_auth.proto"; |
||||
|
||||
// [#protodoc-title: Authorization Service ] |
||||
|
||||
// The authorization service request messages used by external authorization :ref:`network filter |
||||
// <config_network_filters_ext_authz>` and :ref:`HTTP filter <config_http_filters_ext_authz>`. |
||||
|
||||
// A generic interface for performing authorization check on incoming |
||||
// requests to a networked service. |
||||
service Authorization { |
||||
// Performs authorization check based on the attributes associated with the |
||||
// incoming request, and returns status `OK` or not `OK`. |
||||
rpc Check(v2.CheckRequest) returns (v2.CheckResponse); |
||||
} |
Loading…
Reference in new issue