Debian Codegraph @

envoy/service/auth/v3/external_auth.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.30.0
4 // protoc v5.29.1
5 // source: envoy/service/auth/v3/external_auth.proto
6
7 package authv3
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 _ "github.com/envoyproxy/go-control-plane/envoy/annotations"
12 v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
13 v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3"
14 status "google.golang.org/genproto/googleapis/rpc/status"
15 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
16 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
17 structpb "google.golang.org/protobuf/types/known/structpb"
18 reflect "reflect"
19 sync "sync"
20 )
21
22 const (
23 // Verify that this generated code is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
25 // Verify that runtime/protoimpl is sufficiently up-to-date.
26 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
27 )
28
29 type CheckRequest struct {
30 state protoimpl.MessageState
31 sizeCache protoimpl.SizeCache
32 unknownFields protoimpl.UnknownFields
33
34 // The request attributes.
35 Attributes *AttributeContext `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"`
36 }
37
38 func (x *CheckRequest) Reset() {
39 *x = CheckRequest{}
40 if protoimpl.UnsafeEnabled {
41 mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[0]
42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
43 ms.StoreMessageInfo(mi)
44 }
45 }
46
47 func (x *CheckRequest) String() string {
48 return protoimpl.X.MessageStringOf(x)
49 }
50
51 func (*CheckRequest) ProtoMessage() {}
52
53 func (x *CheckRequest) ProtoReflect() protoreflect.Message {
54 mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[0]
55 if protoimpl.UnsafeEnabled && x != nil {
56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57 if ms.LoadMessageInfo() == nil {
58 ms.StoreMessageInfo(mi)
59 }
60 return ms
61 }
62 return mi.MessageOf(x)
63 }
64
65 // Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
66 func (*CheckRequest) Descriptor() ([]byte, []int) {
67 return file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP(), []int{0}
68 }
69
70 func (x *CheckRequest) GetAttributes() *AttributeContext {
71 if x != nil {
72 return x.Attributes
73 }
74 return nil
75 }
76
77 // HTTP attributes for a denied response.
78 type DeniedHttpResponse struct {
79 state protoimpl.MessageState
80 sizeCache protoimpl.SizeCache
81 unknownFields protoimpl.UnknownFields
82
83 // This field allows the authorization service to send an HTTP response status code to the
84 // downstream client. If not set, Envoy sends “403 Forbidden“ HTTP status code by default.
85 Status *v3.HttpStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
86 // This field allows the authorization service to send HTTP response headers
87 // to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
88 // false when used in this message.
89 Headers []*v31.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
90 // This field allows the authorization service to send a response body data
91 // to the downstream client.
92 Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
93 }
94
95 func (x *DeniedHttpResponse) Reset() {
96 *x = DeniedHttpResponse{}
97 if protoimpl.UnsafeEnabled {
98 mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[1]
99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
100 ms.StoreMessageInfo(mi)
101 }
102 }
103
104 func (x *DeniedHttpResponse) String() string {
105 return protoimpl.X.MessageStringOf(x)
106 }
107
108 func (*DeniedHttpResponse) ProtoMessage() {}
109
110 func (x *DeniedHttpResponse) ProtoReflect() protoreflect.Message {
111 mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[1]
112 if protoimpl.UnsafeEnabled && x != nil {
113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
114 if ms.LoadMessageInfo() == nil {
115 ms.StoreMessageInfo(mi)
116 }
117 return ms
118 }
119 return mi.MessageOf(x)
120 }
121
122 // Deprecated: Use DeniedHttpResponse.ProtoReflect.Descriptor instead.
123 func (*DeniedHttpResponse) Descriptor() ([]byte, []int) {
124 return file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP(), []int{1}
125 }
126
127 func (x *DeniedHttpResponse) GetStatus() *v3.HttpStatus {
128 if x != nil {
129 return x.Status
130 }
131 return nil
132 }
133
134 func (x *DeniedHttpResponse) GetHeaders() []*v31.HeaderValueOption {
135 if x != nil {
136 return x.Headers
137 }
138 return nil
139 }
140
141 func (x *DeniedHttpResponse) GetBody() string {
142 if x != nil {
143 return x.Body
144 }
145 return ""
146 }
147
148 // HTTP attributes for an OK response.
149 // [#next-free-field: 9]
150 type OkHttpResponse struct {
151 state protoimpl.MessageState
152 sizeCache protoimpl.SizeCache
153 unknownFields protoimpl.UnknownFields
154
155 // HTTP entity headers in addition to the original request headers. This allows the authorization
156 // service to append, to add or to override headers from the original request before
157 // dispatching it to the upstream. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
158 // false when used in this message. By setting the “append“ field to “true“,
159 // the filter will append the correspondent header value to the matched request header.
160 // By leaving “append“ as false, the filter will either add a new header, or override an existing
161 // one if there is a match.
162 Headers []*v31.HeaderValueOption `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
163 // HTTP entity headers to remove from the original request before dispatching
164 // it to the upstream. This allows the authorization service to act on auth
165 // related headers (like “Authorization“), process them, and consume them.
166 // Under this model, the upstream will either receive the request (if it's
167 // authorized) or not receive it (if it's not), but will not see headers
168 // containing authorization credentials.
169 //
170 // Pseudo headers (such as “:authority“, “:method“, “:path“ etc), as well as
171 // the header “Host“, may not be removed as that would make the request
172 // malformed. If mentioned in “headers_to_remove“ these special headers will
173 // be ignored.
174 //
175 // When using the HTTP service this must instead be set by the HTTP
176 // authorization service as a comma separated list like so:
177 // “x-envoy-auth-headers-to-remove: one-auth-header, another-auth-header“.
178 HeadersToRemove []string `protobuf:"bytes,5,rep,name=headers_to_remove,json=headersToRemove,proto3" json:"headers_to_remove,omitempty"`
179 // This field has been deprecated in favor of :ref:`CheckResponse.dynamic_metadata
180 // <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`. Until it is removed,
181 // setting this field overrides :ref:`CheckResponse.dynamic_metadata
182 // <envoy_v3_api_field_service.auth.v3.CheckResponse.dynamic_metadata>`.
183 //
184 // Deprecated: Marked as deprecated in envoy/service/auth/v3/external_auth.proto.
185 DynamicMetadata *structpb.Struct `protobuf:"bytes,3,opt,name=dynamic_metadata,json=dynamicMetadata,proto3" json:"dynamic_metadata,omitempty"`
186 // This field allows the authorization service to send HTTP response headers
187 // to the downstream client on success. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>`
188 // defaults to false when used in this message.
189 ResponseHeadersToAdd []*v31.HeaderValueOption `protobuf:"bytes,6,rep,name=response_headers_to_add,json=responseHeadersToAdd,proto3" json:"response_headers_to_add,omitempty"`
190 // This field allows the authorization service to set (and overwrite) query
191 // string parameters on the original request before it is sent upstream.
192 QueryParametersToSet []*v31.QueryParameter `protobuf:"bytes,7,rep,name=query_parameters_to_set,json=queryParametersToSet,proto3" json:"query_parameters_to_set,omitempty"`
193 // This field allows the authorization service to specify which query parameters
194 // should be removed from the original request before it is sent upstream. Each
195 // element in this list is a case-sensitive query parameter name to be removed.
196 QueryParametersToRemove []string `protobuf:"bytes,8,rep,name=query_parameters_to_remove,json=queryParametersToRemove,proto3" json:"query_parameters_to_remove,omitempty"`
197 }
198
199 func (x *OkHttpResponse) Reset() {
200 *x = OkHttpResponse{}
201 if protoimpl.UnsafeEnabled {
202 mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[2]
203 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
204 ms.StoreMessageInfo(mi)
205 }
206 }
207
208 func (x *OkHttpResponse) String() string {
209 return protoimpl.X.MessageStringOf(x)
210 }
211
212 func (*OkHttpResponse) ProtoMessage() {}
213
214 func (x *OkHttpResponse) ProtoReflect() protoreflect.Message {
215 mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[2]
216 if protoimpl.UnsafeEnabled && x != nil {
217 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
218 if ms.LoadMessageInfo() == nil {
219 ms.StoreMessageInfo(mi)
220 }
221 return ms
222 }
223 return mi.MessageOf(x)
224 }
225
226 // Deprecated: Use OkHttpResponse.ProtoReflect.Descriptor instead.
227 func (*OkHttpResponse) Descriptor() ([]byte, []int) {
228 return file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP(), []int{2}
229 }
230
231 func (x *OkHttpResponse) GetHeaders() []*v31.HeaderValueOption {
232 if x != nil {
233 return x.Headers
234 }
235 return nil
236 }
237
238 func (x *OkHttpResponse) GetHeadersToRemove() []string {
239 if x != nil {
240 return x.HeadersToRemove
241 }
242 return nil
243 }
244
245 // Deprecated: Marked as deprecated in envoy/service/auth/v3/external_auth.proto.
246 func (x *OkHttpResponse) GetDynamicMetadata() *structpb.Struct {
247 if x != nil {
248 return x.DynamicMetadata
249 }
250 return nil
251 }
252
253 func (x *OkHttpResponse) GetResponseHeadersToAdd() []*v31.HeaderValueOption {
254 if x != nil {
255 return x.ResponseHeadersToAdd
256 }
257 return nil
258 }
259
260 func (x *OkHttpResponse) GetQueryParametersToSet() []*v31.QueryParameter {
261 if x != nil {
262 return x.QueryParametersToSet
263 }
264 return nil
265 }
266
267 func (x *OkHttpResponse) GetQueryParametersToRemove() []string {
268 if x != nil {
269 return x.QueryParametersToRemove
270 }
271 return nil
272 }
273
274 // Intended for gRPC and Network Authorization servers “only“.
275 type CheckResponse struct {
276 state protoimpl.MessageState
277 sizeCache protoimpl.SizeCache
278 unknownFields protoimpl.UnknownFields
279
280 // Status “OK“ allows the request. Any other status indicates the request should be denied, and
281 // for HTTP filter, if not overridden by :ref:`denied HTTP response status <envoy_v3_api_field_service.auth.v3.DeniedHttpResponse.status>`
282 // Envoy sends “403 Forbidden“ HTTP status code by default.
283 Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
284 // An message that contains HTTP response attributes. This message is
285 // used when the authorization service needs to send custom responses to the
286 // downstream client or, to modify/add request headers being dispatched to the upstream.
287 //
288 // Types that are assignable to HttpResponse:
289 //
290 // *CheckResponse_DeniedResponse
291 // *CheckResponse_OkResponse
292 HttpResponse isCheckResponse_HttpResponse `protobuf_oneof:"http_response"`
293 // Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
294 // filter. This metadata lives in a namespace specified by the canonical name of extension filter
295 // that requires it:
296 //
297 // - :ref:`envoy.filters.http.ext_authz <config_http_filters_ext_authz_dynamic_metadata>` for HTTP filter.
298 // - :ref:`envoy.filters.network.ext_authz <config_network_filters_ext_authz_dynamic_metadata>` for network filter.
299 DynamicMetadata *structpb.Struct `protobuf:"bytes,4,opt,name=dynamic_metadata,json=dynamicMetadata,proto3" json:"dynamic_metadata,omitempty"`
300 }
301
302 func (x *CheckResponse) Reset() {
303 *x = CheckResponse{}
304 if protoimpl.UnsafeEnabled {
305 mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[3]
306 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
307 ms.StoreMessageInfo(mi)
308 }
309 }
310
311 func (x *CheckResponse) String() string {
312 return protoimpl.X.MessageStringOf(x)
313 }
314
315 func (*CheckResponse) ProtoMessage() {}
316
317 func (x *CheckResponse) ProtoReflect() protoreflect.Message {
318 mi := &file_envoy_service_auth_v3_external_auth_proto_msgTypes[3]
319 if protoimpl.UnsafeEnabled && x != nil {
320 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
321 if ms.LoadMessageInfo() == nil {
322 ms.StoreMessageInfo(mi)
323 }
324 return ms
325 }
326 return mi.MessageOf(x)
327 }
328
329 // Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
330 func (*CheckResponse) Descriptor() ([]byte, []int) {
331 return file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP(), []int{3}
332 }
333
334 func (x *CheckResponse) GetStatus() *status.Status {
335 if x != nil {
336 return x.Status
337 }
338 return nil
339 }
340
341 func (m *CheckResponse) GetHttpResponse() isCheckResponse_HttpResponse {
342 if m != nil {
343 return m.HttpResponse
344 }
345 return nil
346 }
347
348 func (x *CheckResponse) GetDeniedResponse() *DeniedHttpResponse {
349 if x, ok := x.GetHttpResponse().(*CheckResponse_DeniedResponse); ok {
350 return x.DeniedResponse
351 }
352 return nil
353 }
354
355 func (x *CheckResponse) GetOkResponse() *OkHttpResponse {
356 if x, ok := x.GetHttpResponse().(*CheckResponse_OkResponse); ok {
357 return x.OkResponse
358 }
359 return nil
360 }
361
362 func (x *CheckResponse) GetDynamicMetadata() *structpb.Struct {
363 if x != nil {
364 return x.DynamicMetadata
365 }
366 return nil
367 }
368
369 type isCheckResponse_HttpResponse interface {
370 isCheckResponse_HttpResponse()
371 }
372
373 type CheckResponse_DeniedResponse struct {
374 // Supplies http attributes for a denied response.
375 DeniedResponse *DeniedHttpResponse `protobuf:"bytes,2,opt,name=denied_response,json=deniedResponse,proto3,oneof"`
376 }
377
378 type CheckResponse_OkResponse struct {
379 // Supplies http attributes for an ok response.
380 OkResponse *OkHttpResponse `protobuf:"bytes,3,opt,name=ok_response,json=okResponse,proto3,oneof"`
381 }
382
383 func (*CheckResponse_DeniedResponse) isCheckResponse_HttpResponse() {}
384
385 func (*CheckResponse_OkResponse) isCheckResponse_HttpResponse() {}
386
387 var File_envoy_service_auth_v3_external_auth_proto protoreflect.FileDescriptor
388
389 var file_envoy_service_auth_v3_external_auth_proto_rawDesc = []byte{
390 0x0a, 0x29, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
391 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
392 0x5f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76,
393 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
394 0x76, 0x33, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
395 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72,
396 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
397 0x63, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69,
398 0x62, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f,
399 0x74, 0x6f, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x76,
400 0x33, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72,
401 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
402 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
403 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74,
404 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x6e, 0x76, 0x6f,
405 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x64, 0x65,
406 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
407 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
408 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21,
409 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
410 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
411 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
412 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73,
413 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73,
414 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x41,
415 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52,
416 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x3a, 0x29, 0x9a, 0xc5, 0x88,
417 0x1e, 0x24, 0x0a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
418 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
419 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xcf, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6e, 0x69, 0x65,
420 0x64, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a,
421 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
422 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x74,
423 0x74, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
424 0x12, 0x41, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
425 0x0b, 0x32, 0x27, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
426 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56,
427 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64,
428 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
429 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x3a, 0x2f, 0x9a, 0xc5, 0x88, 0x1e, 0x2a, 0x0a, 0x28,
430 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75,
431 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x48, 0x74, 0x74, 0x70,
432 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf7, 0x03, 0x0a, 0x0e, 0x4f, 0x6b, 0x48,
433 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x07, 0x68,
434 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65,
435 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65,
436 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f,
437 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x2a,
438 0x0a, 0x11, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x72, 0x65, 0x6d,
439 0x6f, 0x76, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x68, 0x65, 0x61, 0x64, 0x65,
440 0x72, 0x73, 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x4f, 0x0a, 0x10, 0x64, 0x79,
441 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
442 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
443 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x42, 0x0b, 0x92,
444 0xc7, 0x86, 0xd8, 0x04, 0x03, 0x33, 0x2e, 0x30, 0x18, 0x01, 0x52, 0x0f, 0x64, 0x79, 0x6e, 0x61,
445 0x6d, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5e, 0x0a, 0x17, 0x72,
446 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f,
447 0x74, 0x6f, 0x5f, 0x61, 0x64, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x65,
448 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65,
449 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f,
450 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48,
451 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x54, 0x6f, 0x41, 0x64, 0x64, 0x12, 0x5b, 0x0a, 0x17, 0x71,
452 0x75, 0x65, 0x72, 0x79, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x5f,
453 0x74, 0x6f, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x65,
454 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65,
455 0x2e, 0x76, 0x33, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74,
456 0x65, 0x72, 0x52, 0x14, 0x71, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74,
457 0x65, 0x72, 0x73, 0x54, 0x6f, 0x53, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x1a, 0x71, 0x75, 0x65, 0x72,
458 0x79, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x6f, 0x5f,
459 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x17, 0x71, 0x75,
460 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x54, 0x6f, 0x52,
461 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x3a, 0x2b, 0x9a, 0xc5, 0x88, 0x1e, 0x26, 0x0a, 0x24, 0x65, 0x6e,
462 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68,
463 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x6b, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
464 0x73, 0x65, 0x22, 0xdc, 0x02, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70,
465 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01,
466 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70,
467 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
468 0x12, 0x54, 0x0a, 0x0f, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f,
469 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
470 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
471 0x33, 0x2e, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70,
472 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x52, 0x65,
473 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x6f, 0x6b, 0x5f, 0x72, 0x65, 0x73,
474 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e,
475 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68,
476 0x2e, 0x76, 0x33, 0x2e, 0x4f, 0x6b, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
477 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
478 0x12, 0x42, 0x0a, 0x10, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61,
479 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f,
480 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72,
481 0x75, 0x63, 0x74, 0x52, 0x0f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61,
482 0x64, 0x61, 0x74, 0x61, 0x3a, 0x2a, 0x9a, 0xc5, 0x88, 0x1e, 0x25, 0x0a, 0x23, 0x65, 0x6e, 0x76,
483 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
484 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
485 0x42, 0x0f, 0x0a, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
486 0x65, 0x32, 0x65, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69,
487 0x6f, 0x6e, 0x12, 0x54, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x23, 0x2e, 0x65, 0x6e,
488 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68,
489 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
490 0x1a, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
491 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
492 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x87, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06,
493 0x02, 0x10, 0x02, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
494 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
495 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x33, 0x42, 0x11, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e,
496 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67,
497 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70,
498 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d,
499 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76,
500 0x69, 0x63, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x3b, 0x61, 0x75, 0x74, 0x68,
501 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
502 }
503
504 var (
505 file_envoy_service_auth_v3_external_auth_proto_rawDescOnce sync.Once
506 file_envoy_service_auth_v3_external_auth_proto_rawDescData = file_envoy_service_auth_v3_external_auth_proto_rawDesc
507 )
508
509 func file_envoy_service_auth_v3_external_auth_proto_rawDescGZIP() []byte {
510 file_envoy_service_auth_v3_external_auth_proto_rawDescOnce.Do(func() {
511 file_envoy_service_auth_v3_external_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_auth_v3_external_auth_proto_rawDescData)
512 })
513 return file_envoy_service_auth_v3_external_auth_proto_rawDescData
514 }
515
516 var file_envoy_service_auth_v3_external_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
517 var file_envoy_service_auth_v3_external_auth_proto_goTypes = []interface{}{
518 (*CheckRequest)(nil), // 0: envoy.service.auth.v3.CheckRequest
519 (*DeniedHttpResponse)(nil), // 1: envoy.service.auth.v3.DeniedHttpResponse
520 (*OkHttpResponse)(nil), // 2: envoy.service.auth.v3.OkHttpResponse
521 (*CheckResponse)(nil), // 3: envoy.service.auth.v3.CheckResponse
522 (*AttributeContext)(nil), // 4: envoy.service.auth.v3.AttributeContext
523 (*v3.HttpStatus)(nil), // 5: envoy.type.v3.HttpStatus
524 (*v31.HeaderValueOption)(nil), // 6: envoy.config.core.v3.HeaderValueOption
525 (*structpb.Struct)(nil), // 7: google.protobuf.Struct
526 (*v31.QueryParameter)(nil), // 8: envoy.config.core.v3.QueryParameter
527 (*status.Status)(nil), // 9: google.rpc.Status
528 }
529 var file_envoy_service_auth_v3_external_auth_proto_depIdxs = []int32{
530 4, // 0: envoy.service.auth.v3.CheckRequest.attributes:type_name -> envoy.service.auth.v3.AttributeContext
531 5, // 1: envoy.service.auth.v3.DeniedHttpResponse.status:type_name -> envoy.type.v3.HttpStatus
532 6, // 2: envoy.service.auth.v3.DeniedHttpResponse.headers:type_name -> envoy.config.core.v3.HeaderValueOption
533 6, // 3: envoy.service.auth.v3.OkHttpResponse.headers:type_name -> envoy.config.core.v3.HeaderValueOption
534 7, // 4: envoy.service.auth.v3.OkHttpResponse.dynamic_metadata:type_name -> google.protobuf.Struct
535 6, // 5: envoy.service.auth.v3.OkHttpResponse.response_headers_to_add:type_name -> envoy.config.core.v3.HeaderValueOption
536 8, // 6: envoy.service.auth.v3.OkHttpResponse.query_parameters_to_set:type_name -> envoy.config.core.v3.QueryParameter
537 9, // 7: envoy.service.auth.v3.CheckResponse.status:type_name -> google.rpc.Status
538 1, // 8: envoy.service.auth.v3.CheckResponse.denied_response:type_name -> envoy.service.auth.v3.DeniedHttpResponse
539 2, // 9: envoy.service.auth.v3.CheckResponse.ok_response:type_name -> envoy.service.auth.v3.OkHttpResponse
540 7, // 10: envoy.service.auth.v3.CheckResponse.dynamic_metadata:type_name -> google.protobuf.Struct
541 0, // 11: envoy.service.auth.v3.Authorization.Check:input_type -> envoy.service.auth.v3.CheckRequest
542 3, // 12: envoy.service.auth.v3.Authorization.Check:output_type -> envoy.service.auth.v3.CheckResponse
543 12, // [12:13] is the sub-list for method output_type
544 11, // [11:12] is the sub-list for method input_type
545 11, // [11:11] is the sub-list for extension type_name
546 11, // [11:11] is the sub-list for extension extendee
547 0, // [0:11] is the sub-list for field type_name
548 }
549
550 func init() { file_envoy_service_auth_v3_external_auth_proto_init() }
551 func file_envoy_service_auth_v3_external_auth_proto_init() {
552 if File_envoy_service_auth_v3_external_auth_proto != nil {
553 return
554 }
555 file_envoy_service_auth_v3_attribute_context_proto_init()
556 if !protoimpl.UnsafeEnabled {
557 file_envoy_service_auth_v3_external_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
558 switch v := v.(*CheckRequest); i {
559 case 0:
560 return &v.state
561 case 1:
562 return &v.sizeCache
563 case 2:
564 return &v.unknownFields
565 default:
566 return nil
567 }
568 }
569 file_envoy_service_auth_v3_external_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
570 switch v := v.(*DeniedHttpResponse); i {
571 case 0:
572 return &v.state
573 case 1:
574 return &v.sizeCache
575 case 2:
576 return &v.unknownFields
577 default:
578 return nil
579 }
580 }
581 file_envoy_service_auth_v3_external_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
582 switch v := v.(*OkHttpResponse); i {
583 case 0:
584 return &v.state
585 case 1:
586 return &v.sizeCache
587 case 2:
588 return &v.unknownFields
589 default:
590 return nil
591 }
592 }
593 file_envoy_service_auth_v3_external_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
594 switch v := v.(*CheckResponse); i {
595 case 0:
596 return &v.state
597 case 1:
598 return &v.sizeCache
599 case 2:
600 return &v.unknownFields
601 default:
602 return nil
603 }
604 }
605 }
606 file_envoy_service_auth_v3_external_auth_proto_msgTypes[3].OneofWrappers = []interface{}{
607 (*CheckResponse_DeniedResponse)(nil),
608 (*CheckResponse_OkResponse)(nil),
609 }
610 type x struct{}
611 out := protoimpl.TypeBuilder{
612 File: protoimpl.DescBuilder{
613 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
614 RawDescriptor: file_envoy_service_auth_v3_external_auth_proto_rawDesc,
615 NumEnums: 0,
616 NumMessages: 4,
617 NumExtensions: 0,
618 NumServices: 1,
619 },
620 GoTypes: file_envoy_service_auth_v3_external_auth_proto_goTypes,
621 DependencyIndexes: file_envoy_service_auth_v3_external_auth_proto_depIdxs,
622 MessageInfos: file_envoy_service_auth_v3_external_auth_proto_msgTypes,
623 }.Build()
624 File_envoy_service_auth_v3_external_auth_proto = out.File
625 file_envoy_service_auth_v3_external_auth_proto_rawDesc = nil
626 file_envoy_service_auth_v3_external_auth_proto_goTypes = nil
627 file_envoy_service_auth_v3_external_auth_proto_depIdxs = nil
628 }