Debian Codegraph @

envoy/service/auth/v2/attribute_context.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/v2/attribute_context.proto
6
7 package authv2
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
15 reflect "reflect"
16 sync "sync"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 // An attribute is a piece of metadata that describes an activity on a network.
27 // For example, the size of an HTTP request, or the status code of an HTTP response.
28 //
29 // Each attribute has a type and a name, which is logically defined as a proto message field
30 // of the `AttributeContext`. The `AttributeContext` is a collection of individual attributes
31 // supported by Envoy authorization system.
32 // [#comment: The following items are left out of this proto
33 // Request.Auth field for jwt tokens
34 // Request.Api for api management
35 // Origin peer that originated the request
36 // Caching Protocol
37 // request_context return values to inject back into the filter chain
38 // peer.claims -- from X.509 extensions
39 // Configuration
40 // - field mask to send
41 // - which return values from request_context are copied back
42 // - which return values are copied into request_headers]
43 // [#next-free-field: 12]
44 type AttributeContext struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // The source of a network activity, such as starting a TCP connection.
50 // In a multi hop network activity, the source represents the sender of the
51 // last hop.
52 Source *AttributeContext_Peer `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
53 // The destination of a network activity, such as accepting a TCP connection.
54 // In a multi hop network activity, the destination represents the receiver of
55 // the last hop.
56 Destination *AttributeContext_Peer `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
57 // Represents a network request, such as an HTTP request.
58 Request *AttributeContext_Request `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"`
59 // This is analogous to http_request.headers, however these contents will not be sent to the
60 // upstream server. Context_extensions provide an extension mechanism for sending additional
61 // information to the auth server without modifying the proto definition. It maps to the
62 // internal opaque context in the filter chain.
63 ContextExtensions map[string]string `protobuf:"bytes,10,rep,name=context_extensions,json=contextExtensions,proto3" json:"context_extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
64 // Dynamic metadata associated with the request.
65 MetadataContext *core.Metadata `protobuf:"bytes,11,opt,name=metadata_context,json=metadataContext,proto3" json:"metadata_context,omitempty"`
66 }
67
68 func (x *AttributeContext) Reset() {
69 *x = AttributeContext{}
70 if protoimpl.UnsafeEnabled {
71 mi := &file_envoy_service_auth_v2_attribute_context_proto_msgTypes[0]
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 ms.StoreMessageInfo(mi)
74 }
75 }
76
77 func (x *AttributeContext) String() string {
78 return protoimpl.X.MessageStringOf(x)
79 }
80
81 func (*AttributeContext) ProtoMessage() {}
82
83 func (x *AttributeContext) ProtoReflect() protoreflect.Message {
84 mi := &file_envoy_service_auth_v2_attribute_context_proto_msgTypes[0]
85 if protoimpl.UnsafeEnabled && x != nil {
86 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
87 if ms.LoadMessageInfo() == nil {
88 ms.StoreMessageInfo(mi)
89 }
90 return ms
91 }
92 return mi.MessageOf(x)
93 }
94
95 // Deprecated: Use AttributeContext.ProtoReflect.Descriptor instead.
96 func (*AttributeContext) Descriptor() ([]byte, []int) {
97 return file_envoy_service_auth_v2_attribute_context_proto_rawDescGZIP(), []int{0}
98 }
99
100 func (x *AttributeContext) GetSource() *AttributeContext_Peer {
101 if x != nil {
102 return x.Source
103 }
104 return nil
105 }
106
107 func (x *AttributeContext) GetDestination() *AttributeContext_Peer {
108 if x != nil {
109 return x.Destination
110 }
111 return nil
112 }
113
114 func (x *AttributeContext) GetRequest() *AttributeContext_Request {
115 if x != nil {
116 return x.Request
117 }
118 return nil
119 }
120
121 func (x *AttributeContext) GetContextExtensions() map[string]string {
122 if x != nil {
123 return x.ContextExtensions
124 }
125 return nil
126 }
127
128 func (x *AttributeContext) GetMetadataContext() *core.Metadata {
129 if x != nil {
130 return x.MetadataContext
131 }
132 return nil
133 }
134
135 // This message defines attributes for a node that handles a network request.
136 // The node can be either a service or an application that sends, forwards,
137 // or receives the request. Service peers should fill in the `service`,
138 // `principal`, and `labels` as appropriate.
139 // [#next-free-field: 6]
140 type AttributeContext_Peer struct {
141 state protoimpl.MessageState
142 sizeCache protoimpl.SizeCache
143 unknownFields protoimpl.UnknownFields
144
145 // The address of the peer, this is typically the IP address.
146 // It can also be UDS path, or others.
147 Address *core.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
148 // The canonical service name of the peer.
149 // It should be set to :ref:`the HTTP x-envoy-downstream-service-cluster
150 // <config_http_conn_man_headers_downstream-service-cluster>`
151 // If a more trusted source of the service name is available through mTLS/secure naming, it
152 // should be used.
153 Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
154 // The labels associated with the peer.
155 // These could be pod labels for Kubernetes or tags for VMs.
156 // The source of the labels could be an X.509 certificate or other configuration.
157 Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
158 // The authenticated identity of this peer.
159 // For example, the identity associated with the workload such as a service account.
160 // If an X.509 certificate is used to assert the identity this field should be sourced from
161 // `URI Subject Alternative Names`, `DNS Subject Alternate Names` or `Subject` in that order.
162 // The primary identity should be the principal. The principal format is issuer specific.
163 //
164 // Example:
165 // * SPIFFE format is `spiffe://trust-domain/path`
166 // * Google account format is `https://accounts.google.com/{userid}`
167 Principal string `protobuf:"bytes,4,opt,name=principal,proto3" json:"principal,omitempty"`
168 // The X.509 certificate used to authenticate the identify of this peer.
169 // When present, the certificate contents are encoded in URL and PEM format.
170 Certificate string `protobuf:"bytes,5,opt,name=certificate,proto3" json:"certificate,omitempty"`
171 }
172
173 func (x *AttributeContext_Peer) Reset() {
174 *x = AttributeContext_Peer{}
175 if protoimpl.UnsafeEnabled {
176 mi := &file_envoy_service_auth_v2_attribute_context_proto_msgTypes[1]
177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
178 ms.StoreMessageInfo(mi)
179 }
180 }
181
182 func (x *AttributeContext_Peer) String() string {
183 return protoimpl.X.MessageStringOf(x)
184 }
185
186 func (*AttributeContext_Peer) ProtoMessage() {}
187
188 func (x *AttributeContext_Peer) ProtoReflect() protoreflect.Message {
189 mi := &file_envoy_service_auth_v2_attribute_context_proto_msgTypes[1]
190 if protoimpl.UnsafeEnabled && x != nil {
191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
192 if ms.LoadMessageInfo() == nil {
193 ms.StoreMessageInfo(mi)
194 }
195 return ms
196 }
197 return mi.MessageOf(x)
198 }
199
200 // Deprecated: Use AttributeContext_Peer.ProtoReflect.Descriptor instead.
201 func (*AttributeContext_Peer) Descriptor() ([]byte, []int) {
202 return file_envoy_service_auth_v2_attribute_context_proto_rawDescGZIP(), []int{0, 0}
203 }
204
205 func (x *AttributeContext_Peer) GetAddress() *core.Address {
206 if x != nil {
207 return x.Address
208 }
209 return nil
210 }
211
212 func (x *AttributeContext_Peer) GetService() string {
213 if x != nil {
214 return x.Service
215 }
216 return ""
217 }
218
219 func (x *AttributeContext_Peer) GetLabels() map[string]string {
220 if x != nil {
221 return x.Labels
222 }
223 return nil
224 }
225
226 func (x *AttributeContext_Peer) GetPrincipal() string {
227 if x != nil {
228 return x.Principal
229 }
230 return ""
231 }
232
233 func (x *AttributeContext_Peer) GetCertificate() string {
234 if x != nil {
235 return x.Certificate
236 }
237 return ""
238 }
239
240 // Represents a network request, such as an HTTP request.
241 type AttributeContext_Request struct {
242 state protoimpl.MessageState
243 sizeCache protoimpl.SizeCache
244 unknownFields protoimpl.UnknownFields
245
246 // The timestamp when the proxy receives the first byte of the request.
247 Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
248 // Represents an HTTP request or an HTTP-like request.
249 Http *AttributeContext_HttpRequest `protobuf:"bytes,2,opt,name=http,proto3" json:"http,omitempty"`
250 }
251
252 func (x *AttributeContext_Request) Reset() {
253 *x = AttributeContext_Request{}
254 if protoimpl.UnsafeEnabled {
255 mi := &file_envoy_service_auth_v2_attribute_context_proto_msgTypes[2]
256 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
257 ms.StoreMessageInfo(mi)
258 }
259 }
260
261 func (x *AttributeContext_Request) String() string {
262 return protoimpl.X.MessageStringOf(x)
263 }
264
265 func (*AttributeContext_Request) ProtoMessage() {}
266
267 func (x *AttributeContext_Request) ProtoReflect() protoreflect.Message {
268 mi := &file_envoy_service_auth_v2_attribute_context_proto_msgTypes[2]
269 if protoimpl.UnsafeEnabled && x != nil {
270 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
271 if ms.LoadMessageInfo() == nil {
272 ms.StoreMessageInfo(mi)
273 }
274 return ms
275 }
276 return mi.MessageOf(x)
277 }
278
279 // Deprecated: Use AttributeContext_Request.ProtoReflect.Descriptor instead.
280 func (*AttributeContext_Request) Descriptor() ([]byte, []int) {
281 return file_envoy_service_auth_v2_attribute_context_proto_rawDescGZIP(), []int{0, 1}
282 }
283
284 func (x *AttributeContext_Request) GetTime() *timestamppb.Timestamp {
285 if x != nil {
286 return x.Time
287 }
288 return nil
289 }
290
291 func (x *AttributeContext_Request) GetHttp() *AttributeContext_HttpRequest {
292 if x != nil {
293 return x.Http
294 }
295 return nil
296 }
297
298 // This message defines attributes for an HTTP request.
299 // HTTP/1.x, HTTP/2, gRPC are all considered as HTTP requests.
300 // [#next-free-field: 12]
301 type AttributeContext_HttpRequest struct {
302 state protoimpl.MessageState
303 sizeCache protoimpl.SizeCache
304 unknownFields protoimpl.UnknownFields
305
306 // The unique ID for a request, which can be propagated to downstream
307 // systems. The ID should have low probability of collision
308 // within a single day for a specific service.
309 // For HTTP requests, it should be X-Request-ID or equivalent.
310 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
311 // The HTTP request method, such as `GET`, `POST`.
312 Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
313 // The HTTP request headers. If multiple headers share the same key, they
314 // must be merged according to the HTTP spec. All header keys must be
315 // lower-cased, because HTTP header keys are case-insensitive.
316 Headers map[string]string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
317 // The request target, as it appears in the first line of the HTTP request. This includes
318 // the URL path and query-string. No decoding is performed.
319 Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
320 // The HTTP request `Host` or 'Authority` header value.
321 Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"`
322 // The HTTP URL scheme, such as `http` and `https`. This is set for HTTP/2
323 // requests only. For HTTP/1.1, use "x-forwarded-for" header value to lookup
324 // the scheme of the request.
325 Scheme string `protobuf:"bytes,6,opt,name=scheme,proto3" json:"scheme,omitempty"`
326 // This field is always empty, and exists for compatibility reasons. The HTTP URL query is
327 // included in `path` field.
328 Query string `protobuf:"bytes,7,opt,name=query,proto3" json:"query,omitempty"`
329 // This field is always empty, and exists for compatibility reasons. The URL fragment is
330 // not submitted as part of HTTP requests; it is unknowable.
331 Fragment string `protobuf:"bytes,8,opt,name=fragment,proto3" json:"fragment,omitempty"`
332 // The HTTP request size in bytes. If unknown, it must be -1.
333 Size int64 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"`
334 // The network protocol used with the request, such as "HTTP/1.0", "HTTP/1.1", or "HTTP/2".
335 //
336 // See :repo:`headers.h:ProtocolStrings <source/common/http/headers.h>` for a list of all
337 // possible values.
338 Protocol string `protobuf:"bytes,10,opt,name=protocol,proto3" json:"protocol,omitempty"`
339 // The HTTP request body.
340 Body string `protobuf:"bytes,11,opt,name=body,proto3" json:"body,omitempty"`
341 }
342
343 func (x *AttributeContext_HttpRequest) Reset() {
344 *x = AttributeContext_HttpRequest{}
345 if protoimpl.UnsafeEnabled {
346 mi := &file_envoy_service_auth_v2_attribute_context_proto_msgTypes[3]
347 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
348 ms.StoreMessageInfo(mi)
349 }
350 }
351
352 func (x *AttributeContext_HttpRequest) String() string {
353 return protoimpl.X.MessageStringOf(x)
354 }
355
356 func (*AttributeContext_HttpRequest) ProtoMessage() {}
357
358 func (x *AttributeContext_HttpRequest) ProtoReflect() protoreflect.Message {
359 mi := &file_envoy_service_auth_v2_attribute_context_proto_msgTypes[3]
360 if protoimpl.UnsafeEnabled && x != nil {
361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
362 if ms.LoadMessageInfo() == nil {
363 ms.StoreMessageInfo(mi)
364 }
365 return ms
366 }
367 return mi.MessageOf(x)
368 }
369
370 // Deprecated: Use AttributeContext_HttpRequest.ProtoReflect.Descriptor instead.
371 func (*AttributeContext_HttpRequest) Descriptor() ([]byte, []int) {
372 return file_envoy_service_auth_v2_attribute_context_proto_rawDescGZIP(), []int{0, 2}
373 }
374
375 func (x *AttributeContext_HttpRequest) GetId() string {
376 if x != nil {
377 return x.Id
378 }
379 return ""
380 }
381
382 func (x *AttributeContext_HttpRequest) GetMethod() string {
383 if x != nil {
384 return x.Method
385 }
386 return ""
387 }
388
389 func (x *AttributeContext_HttpRequest) GetHeaders() map[string]string {
390 if x != nil {
391 return x.Headers
392 }
393 return nil
394 }
395
396 func (x *AttributeContext_HttpRequest) GetPath() string {
397 if x != nil {
398 return x.Path
399 }
400 return ""
401 }
402
403 func (x *AttributeContext_HttpRequest) GetHost() string {
404 if x != nil {
405 return x.Host
406 }
407 return ""
408 }
409
410 func (x *AttributeContext_HttpRequest) GetScheme() string {
411 if x != nil {
412 return x.Scheme
413 }
414 return ""
415 }
416
417 func (x *AttributeContext_HttpRequest) GetQuery() string {
418 if x != nil {
419 return x.Query
420 }
421 return ""
422 }
423
424 func (x *AttributeContext_HttpRequest) GetFragment() string {
425 if x != nil {
426 return x.Fragment
427 }
428 return ""
429 }
430
431 func (x *AttributeContext_HttpRequest) GetSize() int64 {
432 if x != nil {
433 return x.Size
434 }
435 return 0
436 }
437
438 func (x *AttributeContext_HttpRequest) GetProtocol() string {
439 if x != nil {
440 return x.Protocol
441 }
442 return ""
443 }
444
445 func (x *AttributeContext_HttpRequest) GetBody() string {
446 if x != nil {
447 return x.Body
448 }
449 return ""
450 }
451
452 var File_envoy_service_auth_v2_attribute_context_proto protoreflect.FileDescriptor
453
454 var file_envoy_service_auth_v2_attribute_context_proto_rawDesc = []byte{
455 0x0a, 0x2d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
456 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
457 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
458 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61,
459 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70,
460 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
461 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61,
462 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e,
463 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
464 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
465 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e,
466 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e,
467 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, 0x0a, 0x0a, 0x10, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
468 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x44, 0x0a, 0x06, 0x73, 0x6f,
469 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6e, 0x76,
470 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
471 0x76, 0x32, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74,
472 0x65, 0x78, 0x74, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
473 0x12, 0x4e, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
474 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65,
475 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x74,
476 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x50,
477 0x65, 0x65, 0x72, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
478 0x12, 0x49, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
479 0x0b, 0x32, 0x2f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
480 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
481 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
482 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6d, 0x0a, 0x12, 0x63,
483 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
484 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
485 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e,
486 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
487 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
488 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
489 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x46, 0x0a, 0x10, 0x6d, 0x65,
490 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0b,
491 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69,
492 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
493 0x61, 0x52, 0x0f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x74, 0x65,
494 0x78, 0x74, 0x1a, 0xa3, 0x02, 0x0a, 0x04, 0x50, 0x65, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x07, 0x61,
495 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65,
496 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65,
497 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
498 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
499 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x06, 0x6c,
500 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x65, 0x6e,
501 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68,
502 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e,
503 0x74, 0x65, 0x78, 0x74, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
504 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1c, 0x0a,
505 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
506 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x63,
507 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
508 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x1a, 0x39, 0x0a,
509 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
510 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
511 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
512 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x82, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71,
513 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
514 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
515 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04,
516 0x74, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x02, 0x20, 0x01,
517 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
518 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69,
519 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x48, 0x74, 0x74, 0x70,
520 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x1a, 0x83, 0x03,
521 0x0a, 0x0b, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a,
522 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a,
523 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d,
524 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x5a, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
525 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73,
526 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x2e, 0x41,
527 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e,
528 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64,
529 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
530 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
531 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20,
532 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68,
533 0x65, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,
534 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
535 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d,
536 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d,
537 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
538 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
539 0x63, 0x6f, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
540 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28,
541 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65,
542 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
543 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
544 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
545 0x02, 0x38, 0x01, 0x1a, 0x44, 0x0a, 0x16, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x45, 0x78,
546 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
547 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
548 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
549 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x8b, 0x01, 0xba, 0x80, 0xc8, 0xd1,
550 0x06, 0x02, 0x10, 0x01, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72,
551 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
552 0x65, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x32, 0x42, 0x15, 0x41, 0x74, 0x74, 0x72, 0x69,
553 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
554 0x50, 0x01, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65,
555 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e,
556 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79,
557 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x32,
558 0x3b, 0x61, 0x75, 0x74, 0x68, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
559 }
560
561 var (
562 file_envoy_service_auth_v2_attribute_context_proto_rawDescOnce sync.Once
563 file_envoy_service_auth_v2_attribute_context_proto_rawDescData = file_envoy_service_auth_v2_attribute_context_proto_rawDesc
564 )
565
566 func file_envoy_service_auth_v2_attribute_context_proto_rawDescGZIP() []byte {
567 file_envoy_service_auth_v2_attribute_context_proto_rawDescOnce.Do(func() {
568 file_envoy_service_auth_v2_attribute_context_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_auth_v2_attribute_context_proto_rawDescData)
569 })
570 return file_envoy_service_auth_v2_attribute_context_proto_rawDescData
571 }
572
573 var file_envoy_service_auth_v2_attribute_context_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
574 var file_envoy_service_auth_v2_attribute_context_proto_goTypes = []interface{}{
575 (*AttributeContext)(nil), // 0: envoy.service.auth.v2.AttributeContext
576 (*AttributeContext_Peer)(nil), // 1: envoy.service.auth.v2.AttributeContext.Peer
577 (*AttributeContext_Request)(nil), // 2: envoy.service.auth.v2.AttributeContext.Request
578 (*AttributeContext_HttpRequest)(nil), // 3: envoy.service.auth.v2.AttributeContext.HttpRequest
579 nil, // 4: envoy.service.auth.v2.AttributeContext.ContextExtensionsEntry
580 nil, // 5: envoy.service.auth.v2.AttributeContext.Peer.LabelsEntry
581 nil, // 6: envoy.service.auth.v2.AttributeContext.HttpRequest.HeadersEntry
582 (*core.Metadata)(nil), // 7: envoy.api.v2.core.Metadata
583 (*core.Address)(nil), // 8: envoy.api.v2.core.Address
584 (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
585 }
586 var file_envoy_service_auth_v2_attribute_context_proto_depIdxs = []int32{
587 1, // 0: envoy.service.auth.v2.AttributeContext.source:type_name -> envoy.service.auth.v2.AttributeContext.Peer
588 1, // 1: envoy.service.auth.v2.AttributeContext.destination:type_name -> envoy.service.auth.v2.AttributeContext.Peer
589 2, // 2: envoy.service.auth.v2.AttributeContext.request:type_name -> envoy.service.auth.v2.AttributeContext.Request
590 4, // 3: envoy.service.auth.v2.AttributeContext.context_extensions:type_name -> envoy.service.auth.v2.AttributeContext.ContextExtensionsEntry
591 7, // 4: envoy.service.auth.v2.AttributeContext.metadata_context:type_name -> envoy.api.v2.core.Metadata
592 8, // 5: envoy.service.auth.v2.AttributeContext.Peer.address:type_name -> envoy.api.v2.core.Address
593 5, // 6: envoy.service.auth.v2.AttributeContext.Peer.labels:type_name -> envoy.service.auth.v2.AttributeContext.Peer.LabelsEntry
594 9, // 7: envoy.service.auth.v2.AttributeContext.Request.time:type_name -> google.protobuf.Timestamp
595 3, // 8: envoy.service.auth.v2.AttributeContext.Request.http:type_name -> envoy.service.auth.v2.AttributeContext.HttpRequest
596 6, // 9: envoy.service.auth.v2.AttributeContext.HttpRequest.headers:type_name -> envoy.service.auth.v2.AttributeContext.HttpRequest.HeadersEntry
597 10, // [10:10] is the sub-list for method output_type
598 10, // [10:10] is the sub-list for method input_type
599 10, // [10:10] is the sub-list for extension type_name
600 10, // [10:10] is the sub-list for extension extendee
601 0, // [0:10] is the sub-list for field type_name
602 }
603
604 func init() { file_envoy_service_auth_v2_attribute_context_proto_init() }
605 func file_envoy_service_auth_v2_attribute_context_proto_init() {
606 if File_envoy_service_auth_v2_attribute_context_proto != nil {
607 return
608 }
609 if !protoimpl.UnsafeEnabled {
610 file_envoy_service_auth_v2_attribute_context_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
611 switch v := v.(*AttributeContext); i {
612 case 0:
613 return &v.state
614 case 1:
615 return &v.sizeCache
616 case 2:
617 return &v.unknownFields
618 default:
619 return nil
620 }
621 }
622 file_envoy_service_auth_v2_attribute_context_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
623 switch v := v.(*AttributeContext_Peer); i {
624 case 0:
625 return &v.state
626 case 1:
627 return &v.sizeCache
628 case 2:
629 return &v.unknownFields
630 default:
631 return nil
632 }
633 }
634 file_envoy_service_auth_v2_attribute_context_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
635 switch v := v.(*AttributeContext_Request); i {
636 case 0:
637 return &v.state
638 case 1:
639 return &v.sizeCache
640 case 2:
641 return &v.unknownFields
642 default:
643 return nil
644 }
645 }
646 file_envoy_service_auth_v2_attribute_context_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
647 switch v := v.(*AttributeContext_HttpRequest); i {
648 case 0:
649 return &v.state
650 case 1:
651 return &v.sizeCache
652 case 2:
653 return &v.unknownFields
654 default:
655 return nil
656 }
657 }
658 }
659 type x struct{}
660 out := protoimpl.TypeBuilder{
661 File: protoimpl.DescBuilder{
662 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
663 RawDescriptor: file_envoy_service_auth_v2_attribute_context_proto_rawDesc,
664 NumEnums: 0,
665 NumMessages: 7,
666 NumExtensions: 0,
667 NumServices: 0,
668 },
669 GoTypes: file_envoy_service_auth_v2_attribute_context_proto_goTypes,
670 DependencyIndexes: file_envoy_service_auth_v2_attribute_context_proto_depIdxs,
671 MessageInfos: file_envoy_service_auth_v2_attribute_context_proto_msgTypes,
672 }.Build()
673 File_envoy_service_auth_v2_attribute_context_proto = out.File
674 file_envoy_service_auth_v2_attribute_context_proto_rawDesc = nil
675 file_envoy_service_auth_v2_attribute_context_proto_goTypes = nil
676 file_envoy_service_auth_v2_attribute_context_proto_depIdxs = nil
677 }