Debian Codegraph @

envoy/config/rbac/v2/rbac.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/config/rbac/v2/rbac.proto
6
7 package rbacv2
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
12 route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route"
13 matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher"
14 _ "github.com/envoyproxy/protoc-gen-validate/validate"
15 v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
16 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
17 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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 // Should we do safe-list or block-list style access control?
30 type RBAC_Action int32
31
32 const (
33 // The policies grant access to principals. The rest is denied. This is safe-list style
34 // access control. This is the default type.
35 RBAC_ALLOW RBAC_Action = 0
36 // The policies deny access to principals. The rest is allowed. This is block-list style
37 // access control.
38 RBAC_DENY RBAC_Action = 1
39 )
40
41 // Enum value maps for RBAC_Action.
42 var (
43 RBAC_Action_name = map[int32]string{
44 0: "ALLOW",
45 1: "DENY",
46 }
47 RBAC_Action_value = map[string]int32{
48 "ALLOW": 0,
49 "DENY": 1,
50 }
51 )
52
53 func (x RBAC_Action) Enum() *RBAC_Action {
54 p := new(RBAC_Action)
55 *p = x
56 return p
57 }
58
59 func (x RBAC_Action) String() string {
60 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
61 }
62
63 func (RBAC_Action) Descriptor() protoreflect.EnumDescriptor {
64 return file_envoy_config_rbac_v2_rbac_proto_enumTypes[0].Descriptor()
65 }
66
67 func (RBAC_Action) Type() protoreflect.EnumType {
68 return &file_envoy_config_rbac_v2_rbac_proto_enumTypes[0]
69 }
70
71 func (x RBAC_Action) Number() protoreflect.EnumNumber {
72 return protoreflect.EnumNumber(x)
73 }
74
75 // Deprecated: Use RBAC_Action.Descriptor instead.
76 func (RBAC_Action) EnumDescriptor() ([]byte, []int) {
77 return file_envoy_config_rbac_v2_rbac_proto_rawDescGZIP(), []int{0, 0}
78 }
79
80 // Role Based Access Control (RBAC) provides service-level and method-level access control for a
81 // service. RBAC policies are additive. The policies are examined in order. A request is allowed
82 // once a matching policy is found (suppose the `action` is ALLOW).
83 //
84 // Here is an example of RBAC configuration. It has two policies:
85 //
86 // - Service account "cluster.local/ns/default/sa/admin" has full access to the service, and so
87 // does "cluster.local/ns/default/sa/superuser".
88 //
89 // - Any user can read ("GET") the service at paths with prefix "/products", so long as the
90 // destination port is either 80 or 443.
91 //
92 // .. code-block:: yaml
93 //
94 // action: ALLOW
95 // policies:
96 // "service-admin":
97 // permissions:
98 //
99 // - any: true
100 // principals:
101 //
102 // - authenticated:
103 // principal_name:
104 // exact: "cluster.local/ns/default/sa/admin"
105 //
106 // - authenticated:
107 // principal_name:
108 // exact: "cluster.local/ns/default/sa/superuser"
109 // "product-viewer":
110 // permissions:
111 //
112 // - and_rules:
113 // rules:
114 //
115 // - header: { name: ":method", exact_match: "GET" }
116 //
117 // - url_path:
118 // path: { prefix: "/products" }
119 //
120 // - or_rules:
121 // rules:
122 //
123 // - destination_port: 80
124 //
125 // - destination_port: 443
126 // principals:
127 //
128 // - any: true
129 type RBAC struct {
130 state protoimpl.MessageState
131 sizeCache protoimpl.SizeCache
132 unknownFields protoimpl.UnknownFields
133
134 // The action to take if a policy matches. The request is allowed if and only if:
135 //
136 // - `action` is "ALLOWED" and at least one policy matches
137 // - `action` is "DENY" and none of the policies match
138 Action RBAC_Action `protobuf:"varint,1,opt,name=action,proto3,enum=envoy.config.rbac.v2.RBAC_Action" json:"action,omitempty"`
139 // Maps from policy name to policy. A match occurs when at least one policy matches the request.
140 Policies map[string]*Policy `protobuf:"bytes,2,rep,name=policies,proto3" json:"policies,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
141 }
142
143 func (x *RBAC) Reset() {
144 *x = RBAC{}
145 if protoimpl.UnsafeEnabled {
146 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[0]
147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
148 ms.StoreMessageInfo(mi)
149 }
150 }
151
152 func (x *RBAC) String() string {
153 return protoimpl.X.MessageStringOf(x)
154 }
155
156 func (*RBAC) ProtoMessage() {}
157
158 func (x *RBAC) ProtoReflect() protoreflect.Message {
159 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[0]
160 if protoimpl.UnsafeEnabled && x != nil {
161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
162 if ms.LoadMessageInfo() == nil {
163 ms.StoreMessageInfo(mi)
164 }
165 return ms
166 }
167 return mi.MessageOf(x)
168 }
169
170 // Deprecated: Use RBAC.ProtoReflect.Descriptor instead.
171 func (*RBAC) Descriptor() ([]byte, []int) {
172 return file_envoy_config_rbac_v2_rbac_proto_rawDescGZIP(), []int{0}
173 }
174
175 func (x *RBAC) GetAction() RBAC_Action {
176 if x != nil {
177 return x.Action
178 }
179 return RBAC_ALLOW
180 }
181
182 func (x *RBAC) GetPolicies() map[string]*Policy {
183 if x != nil {
184 return x.Policies
185 }
186 return nil
187 }
188
189 // Policy specifies a role and the principals that are assigned/denied the role. A policy matches if
190 // and only if at least one of its permissions match the action taking place AND at least one of its
191 // principals match the downstream AND the condition is true if specified.
192 type Policy struct {
193 state protoimpl.MessageState
194 sizeCache protoimpl.SizeCache
195 unknownFields protoimpl.UnknownFields
196
197 // Required. The set of permissions that define a role. Each permission is matched with OR
198 // semantics. To match all actions for this policy, a single Permission with the `any` field set
199 // to true should be used.
200 Permissions []*Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
201 // Required. The set of principals that are assigned/denied the role based on “action”. Each
202 // principal is matched with OR semantics. To match all downstreams for this policy, a single
203 // Principal with the `any` field set to true should be used.
204 Principals []*Principal `protobuf:"bytes,2,rep,name=principals,proto3" json:"principals,omitempty"`
205 // An optional symbolic expression specifying an access control
206 // :ref:`condition <arch_overview_condition>`. The condition is combined
207 // with the permissions and the principals as a clause with AND semantics.
208 Condition *v1alpha1.Expr `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
209 }
210
211 func (x *Policy) Reset() {
212 *x = Policy{}
213 if protoimpl.UnsafeEnabled {
214 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[1]
215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
216 ms.StoreMessageInfo(mi)
217 }
218 }
219
220 func (x *Policy) String() string {
221 return protoimpl.X.MessageStringOf(x)
222 }
223
224 func (*Policy) ProtoMessage() {}
225
226 func (x *Policy) ProtoReflect() protoreflect.Message {
227 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[1]
228 if protoimpl.UnsafeEnabled && x != nil {
229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
230 if ms.LoadMessageInfo() == nil {
231 ms.StoreMessageInfo(mi)
232 }
233 return ms
234 }
235 return mi.MessageOf(x)
236 }
237
238 // Deprecated: Use Policy.ProtoReflect.Descriptor instead.
239 func (*Policy) Descriptor() ([]byte, []int) {
240 return file_envoy_config_rbac_v2_rbac_proto_rawDescGZIP(), []int{1}
241 }
242
243 func (x *Policy) GetPermissions() []*Permission {
244 if x != nil {
245 return x.Permissions
246 }
247 return nil
248 }
249
250 func (x *Policy) GetPrincipals() []*Principal {
251 if x != nil {
252 return x.Principals
253 }
254 return nil
255 }
256
257 func (x *Policy) GetCondition() *v1alpha1.Expr {
258 if x != nil {
259 return x.Condition
260 }
261 return nil
262 }
263
264 // Permission defines an action (or actions) that a principal can take.
265 // [#next-free-field: 11]
266 type Permission struct {
267 state protoimpl.MessageState
268 sizeCache protoimpl.SizeCache
269 unknownFields protoimpl.UnknownFields
270
271 // Types that are assignable to Rule:
272 //
273 // *Permission_AndRules
274 // *Permission_OrRules
275 // *Permission_Any
276 // *Permission_Header
277 // *Permission_UrlPath
278 // *Permission_DestinationIp
279 // *Permission_DestinationPort
280 // *Permission_Metadata
281 // *Permission_NotRule
282 // *Permission_RequestedServerName
283 Rule isPermission_Rule `protobuf_oneof:"rule"`
284 }
285
286 func (x *Permission) Reset() {
287 *x = Permission{}
288 if protoimpl.UnsafeEnabled {
289 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[2]
290 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
291 ms.StoreMessageInfo(mi)
292 }
293 }
294
295 func (x *Permission) String() string {
296 return protoimpl.X.MessageStringOf(x)
297 }
298
299 func (*Permission) ProtoMessage() {}
300
301 func (x *Permission) ProtoReflect() protoreflect.Message {
302 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[2]
303 if protoimpl.UnsafeEnabled && x != nil {
304 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
305 if ms.LoadMessageInfo() == nil {
306 ms.StoreMessageInfo(mi)
307 }
308 return ms
309 }
310 return mi.MessageOf(x)
311 }
312
313 // Deprecated: Use Permission.ProtoReflect.Descriptor instead.
314 func (*Permission) Descriptor() ([]byte, []int) {
315 return file_envoy_config_rbac_v2_rbac_proto_rawDescGZIP(), []int{2}
316 }
317
318 func (m *Permission) GetRule() isPermission_Rule {
319 if m != nil {
320 return m.Rule
321 }
322 return nil
323 }
324
325 func (x *Permission) GetAndRules() *Permission_Set {
326 if x, ok := x.GetRule().(*Permission_AndRules); ok {
327 return x.AndRules
328 }
329 return nil
330 }
331
332 func (x *Permission) GetOrRules() *Permission_Set {
333 if x, ok := x.GetRule().(*Permission_OrRules); ok {
334 return x.OrRules
335 }
336 return nil
337 }
338
339 func (x *Permission) GetAny() bool {
340 if x, ok := x.GetRule().(*Permission_Any); ok {
341 return x.Any
342 }
343 return false
344 }
345
346 func (x *Permission) GetHeader() *route.HeaderMatcher {
347 if x, ok := x.GetRule().(*Permission_Header); ok {
348 return x.Header
349 }
350 return nil
351 }
352
353 func (x *Permission) GetUrlPath() *matcher.PathMatcher {
354 if x, ok := x.GetRule().(*Permission_UrlPath); ok {
355 return x.UrlPath
356 }
357 return nil
358 }
359
360 func (x *Permission) GetDestinationIp() *core.CidrRange {
361 if x, ok := x.GetRule().(*Permission_DestinationIp); ok {
362 return x.DestinationIp
363 }
364 return nil
365 }
366
367 func (x *Permission) GetDestinationPort() uint32 {
368 if x, ok := x.GetRule().(*Permission_DestinationPort); ok {
369 return x.DestinationPort
370 }
371 return 0
372 }
373
374 func (x *Permission) GetMetadata() *matcher.MetadataMatcher {
375 if x, ok := x.GetRule().(*Permission_Metadata); ok {
376 return x.Metadata
377 }
378 return nil
379 }
380
381 func (x *Permission) GetNotRule() *Permission {
382 if x, ok := x.GetRule().(*Permission_NotRule); ok {
383 return x.NotRule
384 }
385 return nil
386 }
387
388 func (x *Permission) GetRequestedServerName() *matcher.StringMatcher {
389 if x, ok := x.GetRule().(*Permission_RequestedServerName); ok {
390 return x.RequestedServerName
391 }
392 return nil
393 }
394
395 type isPermission_Rule interface {
396 isPermission_Rule()
397 }
398
399 type Permission_AndRules struct {
400 // A set of rules that all must match in order to define the action.
401 AndRules *Permission_Set `protobuf:"bytes,1,opt,name=and_rules,json=andRules,proto3,oneof"`
402 }
403
404 type Permission_OrRules struct {
405 // A set of rules where at least one must match in order to define the action.
406 OrRules *Permission_Set `protobuf:"bytes,2,opt,name=or_rules,json=orRules,proto3,oneof"`
407 }
408
409 type Permission_Any struct {
410 // When any is set, it matches any action.
411 Any bool `protobuf:"varint,3,opt,name=any,proto3,oneof"`
412 }
413
414 type Permission_Header struct {
415 // A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
416 // available for HTTP request.
417 // Note: the pseudo-header :path includes the query and fragment string. Use the `url_path`
418 // field if you want to match the URL path without the query and fragment string.
419 Header *route.HeaderMatcher `protobuf:"bytes,4,opt,name=header,proto3,oneof"`
420 }
421
422 type Permission_UrlPath struct {
423 // A URL path on the incoming HTTP request. Only available for HTTP.
424 UrlPath *matcher.PathMatcher `protobuf:"bytes,10,opt,name=url_path,json=urlPath,proto3,oneof"`
425 }
426
427 type Permission_DestinationIp struct {
428 // A CIDR block that describes the destination IP.
429 DestinationIp *core.CidrRange `protobuf:"bytes,5,opt,name=destination_ip,json=destinationIp,proto3,oneof"`
430 }
431
432 type Permission_DestinationPort struct {
433 // A port number that describes the destination port connecting to.
434 DestinationPort uint32 `protobuf:"varint,6,opt,name=destination_port,json=destinationPort,proto3,oneof"`
435 }
436
437 type Permission_Metadata struct {
438 // Metadata that describes additional information about the action.
439 Metadata *matcher.MetadataMatcher `protobuf:"bytes,7,opt,name=metadata,proto3,oneof"`
440 }
441
442 type Permission_NotRule struct {
443 // Negates matching the provided permission. For instance, if the value of `not_rule` would
444 // match, this permission would not match. Conversely, if the value of `not_rule` would not
445 // match, this permission would match.
446 NotRule *Permission `protobuf:"bytes,8,opt,name=not_rule,json=notRule,proto3,oneof"`
447 }
448
449 type Permission_RequestedServerName struct {
450 // The request server from the client's connection request. This is
451 // typically TLS SNI.
452 //
453 // .. attention::
454 //
455 // The behavior of this field may be affected by how Envoy is configured
456 // as explained below.
457 //
458 // * If the :ref:`TLS Inspector <config_listener_filters_tls_inspector>`
459 // filter is not added, and if a `FilterChainMatch` is not defined for
460 // the :ref:`server name <envoy_api_field_listener.FilterChainMatch.server_names>`,
461 // a TLS connection's requested SNI server name will be treated as if it
462 // wasn't present.
463 //
464 // * A :ref:`listener filter <arch_overview_listener_filters>` may
465 // overwrite a connection's requested server name within Envoy.
466 //
467 // Please refer to :ref:`this FAQ entry <faq_how_to_setup_sni>` to learn to
468 // setup SNI.
469 RequestedServerName *matcher.StringMatcher `protobuf:"bytes,9,opt,name=requested_server_name,json=requestedServerName,proto3,oneof"`
470 }
471
472 func (*Permission_AndRules) isPermission_Rule() {}
473
474 func (*Permission_OrRules) isPermission_Rule() {}
475
476 func (*Permission_Any) isPermission_Rule() {}
477
478 func (*Permission_Header) isPermission_Rule() {}
479
480 func (*Permission_UrlPath) isPermission_Rule() {}
481
482 func (*Permission_DestinationIp) isPermission_Rule() {}
483
484 func (*Permission_DestinationPort) isPermission_Rule() {}
485
486 func (*Permission_Metadata) isPermission_Rule() {}
487
488 func (*Permission_NotRule) isPermission_Rule() {}
489
490 func (*Permission_RequestedServerName) isPermission_Rule() {}
491
492 // Principal defines an identity or a group of identities for a downstream subject.
493 // [#next-free-field: 12]
494 type Principal struct {
495 state protoimpl.MessageState
496 sizeCache protoimpl.SizeCache
497 unknownFields protoimpl.UnknownFields
498
499 // Types that are assignable to Identifier:
500 //
501 // *Principal_AndIds
502 // *Principal_OrIds
503 // *Principal_Any
504 // *Principal_Authenticated_
505 // *Principal_SourceIp
506 // *Principal_DirectRemoteIp
507 // *Principal_RemoteIp
508 // *Principal_Header
509 // *Principal_UrlPath
510 // *Principal_Metadata
511 // *Principal_NotId
512 Identifier isPrincipal_Identifier `protobuf_oneof:"identifier"`
513 }
514
515 func (x *Principal) Reset() {
516 *x = Principal{}
517 if protoimpl.UnsafeEnabled {
518 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[3]
519 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
520 ms.StoreMessageInfo(mi)
521 }
522 }
523
524 func (x *Principal) String() string {
525 return protoimpl.X.MessageStringOf(x)
526 }
527
528 func (*Principal) ProtoMessage() {}
529
530 func (x *Principal) ProtoReflect() protoreflect.Message {
531 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[3]
532 if protoimpl.UnsafeEnabled && x != nil {
533 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
534 if ms.LoadMessageInfo() == nil {
535 ms.StoreMessageInfo(mi)
536 }
537 return ms
538 }
539 return mi.MessageOf(x)
540 }
541
542 // Deprecated: Use Principal.ProtoReflect.Descriptor instead.
543 func (*Principal) Descriptor() ([]byte, []int) {
544 return file_envoy_config_rbac_v2_rbac_proto_rawDescGZIP(), []int{3}
545 }
546
547 func (m *Principal) GetIdentifier() isPrincipal_Identifier {
548 if m != nil {
549 return m.Identifier
550 }
551 return nil
552 }
553
554 func (x *Principal) GetAndIds() *Principal_Set {
555 if x, ok := x.GetIdentifier().(*Principal_AndIds); ok {
556 return x.AndIds
557 }
558 return nil
559 }
560
561 func (x *Principal) GetOrIds() *Principal_Set {
562 if x, ok := x.GetIdentifier().(*Principal_OrIds); ok {
563 return x.OrIds
564 }
565 return nil
566 }
567
568 func (x *Principal) GetAny() bool {
569 if x, ok := x.GetIdentifier().(*Principal_Any); ok {
570 return x.Any
571 }
572 return false
573 }
574
575 func (x *Principal) GetAuthenticated() *Principal_Authenticated {
576 if x, ok := x.GetIdentifier().(*Principal_Authenticated_); ok {
577 return x.Authenticated
578 }
579 return nil
580 }
581
582 // Deprecated: Marked as deprecated in envoy/config/rbac/v2/rbac.proto.
583 func (x *Principal) GetSourceIp() *core.CidrRange {
584 if x, ok := x.GetIdentifier().(*Principal_SourceIp); ok {
585 return x.SourceIp
586 }
587 return nil
588 }
589
590 func (x *Principal) GetDirectRemoteIp() *core.CidrRange {
591 if x, ok := x.GetIdentifier().(*Principal_DirectRemoteIp); ok {
592 return x.DirectRemoteIp
593 }
594 return nil
595 }
596
597 func (x *Principal) GetRemoteIp() *core.CidrRange {
598 if x, ok := x.GetIdentifier().(*Principal_RemoteIp); ok {
599 return x.RemoteIp
600 }
601 return nil
602 }
603
604 func (x *Principal) GetHeader() *route.HeaderMatcher {
605 if x, ok := x.GetIdentifier().(*Principal_Header); ok {
606 return x.Header
607 }
608 return nil
609 }
610
611 func (x *Principal) GetUrlPath() *matcher.PathMatcher {
612 if x, ok := x.GetIdentifier().(*Principal_UrlPath); ok {
613 return x.UrlPath
614 }
615 return nil
616 }
617
618 func (x *Principal) GetMetadata() *matcher.MetadataMatcher {
619 if x, ok := x.GetIdentifier().(*Principal_Metadata); ok {
620 return x.Metadata
621 }
622 return nil
623 }
624
625 func (x *Principal) GetNotId() *Principal {
626 if x, ok := x.GetIdentifier().(*Principal_NotId); ok {
627 return x.NotId
628 }
629 return nil
630 }
631
632 type isPrincipal_Identifier interface {
633 isPrincipal_Identifier()
634 }
635
636 type Principal_AndIds struct {
637 // A set of identifiers that all must match in order to define the downstream.
638 AndIds *Principal_Set `protobuf:"bytes,1,opt,name=and_ids,json=andIds,proto3,oneof"`
639 }
640
641 type Principal_OrIds struct {
642 // A set of identifiers at least one must match in order to define the downstream.
643 OrIds *Principal_Set `protobuf:"bytes,2,opt,name=or_ids,json=orIds,proto3,oneof"`
644 }
645
646 type Principal_Any struct {
647 // When any is set, it matches any downstream.
648 Any bool `protobuf:"varint,3,opt,name=any,proto3,oneof"`
649 }
650
651 type Principal_Authenticated_ struct {
652 // Authenticated attributes that identify the downstream.
653 Authenticated *Principal_Authenticated `protobuf:"bytes,4,opt,name=authenticated,proto3,oneof"`
654 }
655
656 type Principal_SourceIp struct {
657 // A CIDR block that describes the downstream IP.
658 // This address will honor proxy protocol, but will not honor XFF.
659 //
660 // Deprecated: Marked as deprecated in envoy/config/rbac/v2/rbac.proto.
661 SourceIp *core.CidrRange `protobuf:"bytes,5,opt,name=source_ip,json=sourceIp,proto3,oneof"`
662 }
663
664 type Principal_DirectRemoteIp struct {
665 // A CIDR block that describes the downstream remote/origin address.
666 // Note: This is always the physical peer even if the
667 // :ref:`remote_ip <envoy_api_field_config.rbac.v2.Principal.remote_ip>` is inferred
668 // from for example the x-forwarder-for header, proxy protocol, etc.
669 DirectRemoteIp *core.CidrRange `protobuf:"bytes,10,opt,name=direct_remote_ip,json=directRemoteIp,proto3,oneof"`
670 }
671
672 type Principal_RemoteIp struct {
673 // A CIDR block that describes the downstream remote/origin address.
674 // Note: This may not be the physical peer and could be different from the
675 // :ref:`direct_remote_ip <envoy_api_field_config.rbac.v2.Principal.direct_remote_ip>`.
676 // E.g, if the remote ip is inferred from for example the x-forwarder-for header,
677 // proxy protocol, etc.
678 RemoteIp *core.CidrRange `protobuf:"bytes,11,opt,name=remote_ip,json=remoteIp,proto3,oneof"`
679 }
680
681 type Principal_Header struct {
682 // A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
683 // available for HTTP request.
684 // Note: the pseudo-header :path includes the query and fragment string. Use the `url_path`
685 // field if you want to match the URL path without the query and fragment string.
686 Header *route.HeaderMatcher `protobuf:"bytes,6,opt,name=header,proto3,oneof"`
687 }
688
689 type Principal_UrlPath struct {
690 // A URL path on the incoming HTTP request. Only available for HTTP.
691 UrlPath *matcher.PathMatcher `protobuf:"bytes,9,opt,name=url_path,json=urlPath,proto3,oneof"`
692 }
693
694 type Principal_Metadata struct {
695 // Metadata that describes additional information about the principal.
696 Metadata *matcher.MetadataMatcher `protobuf:"bytes,7,opt,name=metadata,proto3,oneof"`
697 }
698
699 type Principal_NotId struct {
700 // Negates matching the provided principal. For instance, if the value of `not_id` would match,
701 // this principal would not match. Conversely, if the value of `not_id` would not match, this
702 // principal would match.
703 NotId *Principal `protobuf:"bytes,8,opt,name=not_id,json=notId,proto3,oneof"`
704 }
705
706 func (*Principal_AndIds) isPrincipal_Identifier() {}
707
708 func (*Principal_OrIds) isPrincipal_Identifier() {}
709
710 func (*Principal_Any) isPrincipal_Identifier() {}
711
712 func (*Principal_Authenticated_) isPrincipal_Identifier() {}
713
714 func (*Principal_SourceIp) isPrincipal_Identifier() {}
715
716 func (*Principal_DirectRemoteIp) isPrincipal_Identifier() {}
717
718 func (*Principal_RemoteIp) isPrincipal_Identifier() {}
719
720 func (*Principal_Header) isPrincipal_Identifier() {}
721
722 func (*Principal_UrlPath) isPrincipal_Identifier() {}
723
724 func (*Principal_Metadata) isPrincipal_Identifier() {}
725
726 func (*Principal_NotId) isPrincipal_Identifier() {}
727
728 // Used in the `and_rules` and `or_rules` fields in the `rule` oneof. Depending on the context,
729 // each are applied with the associated behavior.
730 type Permission_Set struct {
731 state protoimpl.MessageState
732 sizeCache protoimpl.SizeCache
733 unknownFields protoimpl.UnknownFields
734
735 Rules []*Permission `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
736 }
737
738 func (x *Permission_Set) Reset() {
739 *x = Permission_Set{}
740 if protoimpl.UnsafeEnabled {
741 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[5]
742 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
743 ms.StoreMessageInfo(mi)
744 }
745 }
746
747 func (x *Permission_Set) String() string {
748 return protoimpl.X.MessageStringOf(x)
749 }
750
751 func (*Permission_Set) ProtoMessage() {}
752
753 func (x *Permission_Set) ProtoReflect() protoreflect.Message {
754 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[5]
755 if protoimpl.UnsafeEnabled && x != nil {
756 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
757 if ms.LoadMessageInfo() == nil {
758 ms.StoreMessageInfo(mi)
759 }
760 return ms
761 }
762 return mi.MessageOf(x)
763 }
764
765 // Deprecated: Use Permission_Set.ProtoReflect.Descriptor instead.
766 func (*Permission_Set) Descriptor() ([]byte, []int) {
767 return file_envoy_config_rbac_v2_rbac_proto_rawDescGZIP(), []int{2, 0}
768 }
769
770 func (x *Permission_Set) GetRules() []*Permission {
771 if x != nil {
772 return x.Rules
773 }
774 return nil
775 }
776
777 // Used in the `and_ids` and `or_ids` fields in the `identifier` oneof. Depending on the context,
778 // each are applied with the associated behavior.
779 type Principal_Set struct {
780 state protoimpl.MessageState
781 sizeCache protoimpl.SizeCache
782 unknownFields protoimpl.UnknownFields
783
784 Ids []*Principal `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
785 }
786
787 func (x *Principal_Set) Reset() {
788 *x = Principal_Set{}
789 if protoimpl.UnsafeEnabled {
790 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[6]
791 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
792 ms.StoreMessageInfo(mi)
793 }
794 }
795
796 func (x *Principal_Set) String() string {
797 return protoimpl.X.MessageStringOf(x)
798 }
799
800 func (*Principal_Set) ProtoMessage() {}
801
802 func (x *Principal_Set) ProtoReflect() protoreflect.Message {
803 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[6]
804 if protoimpl.UnsafeEnabled && x != nil {
805 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
806 if ms.LoadMessageInfo() == nil {
807 ms.StoreMessageInfo(mi)
808 }
809 return ms
810 }
811 return mi.MessageOf(x)
812 }
813
814 // Deprecated: Use Principal_Set.ProtoReflect.Descriptor instead.
815 func (*Principal_Set) Descriptor() ([]byte, []int) {
816 return file_envoy_config_rbac_v2_rbac_proto_rawDescGZIP(), []int{3, 0}
817 }
818
819 func (x *Principal_Set) GetIds() []*Principal {
820 if x != nil {
821 return x.Ids
822 }
823 return nil
824 }
825
826 // Authentication attributes for a downstream.
827 type Principal_Authenticated struct {
828 state protoimpl.MessageState
829 sizeCache protoimpl.SizeCache
830 unknownFields protoimpl.UnknownFields
831
832 // The name of the principal. If set, The URI SAN or DNS SAN in that order is used from the
833 // certificate, otherwise the subject field is used. If unset, it applies to any user that is
834 // authenticated.
835 PrincipalName *matcher.StringMatcher `protobuf:"bytes,2,opt,name=principal_name,json=principalName,proto3" json:"principal_name,omitempty"`
836 }
837
838 func (x *Principal_Authenticated) Reset() {
839 *x = Principal_Authenticated{}
840 if protoimpl.UnsafeEnabled {
841 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[7]
842 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
843 ms.StoreMessageInfo(mi)
844 }
845 }
846
847 func (x *Principal_Authenticated) String() string {
848 return protoimpl.X.MessageStringOf(x)
849 }
850
851 func (*Principal_Authenticated) ProtoMessage() {}
852
853 func (x *Principal_Authenticated) ProtoReflect() protoreflect.Message {
854 mi := &file_envoy_config_rbac_v2_rbac_proto_msgTypes[7]
855 if protoimpl.UnsafeEnabled && x != nil {
856 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
857 if ms.LoadMessageInfo() == nil {
858 ms.StoreMessageInfo(mi)
859 }
860 return ms
861 }
862 return mi.MessageOf(x)
863 }
864
865 // Deprecated: Use Principal_Authenticated.ProtoReflect.Descriptor instead.
866 func (*Principal_Authenticated) Descriptor() ([]byte, []int) {
867 return file_envoy_config_rbac_v2_rbac_proto_rawDescGZIP(), []int{3, 1}
868 }
869
870 func (x *Principal_Authenticated) GetPrincipalName() *matcher.StringMatcher {
871 if x != nil {
872 return x.PrincipalName
873 }
874 return nil
875 }
876
877 var File_envoy_config_rbac_v2_rbac_proto protoreflect.FileDescriptor
878
879 var file_envoy_config_rbac_v2_rbac_proto_rawDesc = []byte{
880 0x0a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x72,
881 0x62, 0x61, 0x63, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74,
882 0x6f, 0x12, 0x14, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
883 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61,
884 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65,
885 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f,
886 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2f, 0x72, 0x6f, 0x75,
887 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72,
888 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f,
889 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
890 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79,
891 0x70, 0x65, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x70, 0x61, 0x74, 0x68, 0x2e,
892 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70,
893 0x65, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
894 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
895 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
896 0x2f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75,
897 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
898 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61,
899 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e,
900 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, 0x02, 0x0a, 0x04, 0x52, 0x42, 0x41, 0x43, 0x12, 0x39,
901 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21,
902 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62,
903 0x61, 0x63, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x42, 0x41, 0x43, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f,
904 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x08, 0x70, 0x6f, 0x6c,
905 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x65, 0x6e,
906 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e,
907 0x76, 0x32, 0x2e, 0x52, 0x42, 0x41, 0x43, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
908 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x1a,
909 0x59, 0x0a, 0x0d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
910 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
911 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
912 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
913 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
914 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x1d, 0x0a, 0x06, 0x41, 0x63,
915 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x00, 0x12,
916 0x08, 0x0a, 0x04, 0x44, 0x45, 0x4e, 0x59, 0x10, 0x01, 0x22, 0xdf, 0x01, 0x0a, 0x06, 0x50, 0x6f,
917 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4c, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
918 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
919 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76, 0x32,
920 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05,
921 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
922 0x6e, 0x73, 0x12, 0x49, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73,
923 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63,
924 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72,
925 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08,
926 0x01, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x12, 0x3c, 0x0a,
927 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
928 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78,
929 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x72,
930 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xdc, 0x05, 0x0a, 0x0a,
931 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x09, 0x61, 0x6e,
932 0x64, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e,
933 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62, 0x61,
934 0x63, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
935 0x53, 0x65, 0x74, 0x48, 0x00, 0x52, 0x08, 0x61, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12,
936 0x41, 0x0a, 0x08, 0x6f, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
937 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
938 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
939 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x72, 0x52, 0x75, 0x6c,
940 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x03, 0x61, 0x6e, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42,
941 0x07, 0xfa, 0x42, 0x04, 0x6a, 0x02, 0x08, 0x01, 0x48, 0x00, 0x52, 0x03, 0x61, 0x6e, 0x79, 0x12,
942 0x3b, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
943 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x72,
944 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68,
945 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x08,
946 0x75, 0x72, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
947 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63,
948 0x68, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x48,
949 0x00, 0x52, 0x07, 0x75, 0x72, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x45, 0x0a, 0x0e, 0x64, 0x65,
950 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01,
951 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
952 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x69, 0x64, 0x72, 0x52, 0x61, 0x6e, 0x67, 0x65,
953 0x48, 0x00, 0x52, 0x0d, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
954 0x70, 0x12, 0x36, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
955 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06,
956 0x2a, 0x04, 0x18, 0xff, 0xff, 0x03, 0x48, 0x00, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e,
957 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x41, 0x0a, 0x08, 0x6d, 0x65, 0x74,
958 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e,
959 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72,
960 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72,
961 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x08,
962 0x6e, 0x6f, 0x74, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
963 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62,
964 0x61, 0x63, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
965 0x48, 0x00, 0x52, 0x07, 0x6e, 0x6f, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x57, 0x0a, 0x15, 0x72,
966 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f,
967 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76,
968 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e,
969 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x48, 0x00, 0x52,
970 0x13, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
971 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x47, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x40, 0x0a, 0x05, 0x72,
972 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76,
973 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76,
974 0x32, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xfa, 0x42,
975 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x42, 0x0b, 0x0a,
976 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0xf5, 0x06, 0x0a, 0x09, 0x50,
977 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x3e, 0x0a, 0x07, 0x61, 0x6e, 0x64, 0x5f,
978 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
979 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76, 0x32,
980 0x2e, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x74, 0x48, 0x00,
981 0x52, 0x06, 0x61, 0x6e, 0x64, 0x49, 0x64, 0x73, 0x12, 0x3c, 0x0a, 0x06, 0x6f, 0x72, 0x5f, 0x69,
982 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79,
983 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76, 0x32, 0x2e,
984 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x2e, 0x53, 0x65, 0x74, 0x48, 0x00, 0x52,
985 0x05, 0x6f, 0x72, 0x49, 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x03, 0x61, 0x6e, 0x79, 0x18, 0x03, 0x20,
986 0x01, 0x28, 0x08, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x6a, 0x02, 0x08, 0x01, 0x48, 0x00, 0x52, 0x03,
987 0x61, 0x6e, 0x79, 0x12, 0x55, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63,
988 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x65, 0x6e, 0x76,
989 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76,
990 0x32, 0x2e, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x2e, 0x41, 0x75, 0x74, 0x68,
991 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x75, 0x74,
992 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3f, 0x0a, 0x09, 0x73, 0x6f,
993 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
994 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72,
995 0x65, 0x2e, 0x43, 0x69, 0x64, 0x72, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x02, 0x18, 0x01, 0x48,
996 0x00, 0x52, 0x08, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x70, 0x12, 0x48, 0x0a, 0x10, 0x64,
997 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x69, 0x70, 0x18,
998 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70,
999 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x69, 0x64, 0x72, 0x52, 0x61,
1000 0x6e, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x52, 0x65, 0x6d,
1001 0x6f, 0x74, 0x65, 0x49, 0x70, 0x12, 0x3b, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f,
1002 0x69, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79,
1003 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x69, 0x64,
1004 0x72, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65,
1005 0x49, 0x70, 0x12, 0x3b, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01,
1006 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76,
1007 0x32, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4d, 0x61,
1008 0x74, 0x63, 0x68, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
1009 0x3c, 0x0a, 0x08, 0x75, 0x72, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28,
1010 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d,
1011 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x4d, 0x61, 0x74, 0x63, 0x68,
1012 0x65, 0x72, 0x48, 0x00, 0x52, 0x07, 0x75, 0x72, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x41, 0x0a,
1013 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
1014 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74,
1015 0x63, 0x68, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x74,
1016 0x63, 0x68, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
1017 0x12, 0x38, 0x0a, 0x06, 0x6e, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,
1018 0x32, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
1019 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61,
1020 0x6c, 0x48, 0x00, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x49, 0x64, 0x1a, 0x42, 0x0a, 0x03, 0x53, 0x65,
1021 0x74, 0x12, 0x3b, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f,
1022 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62,
1023 0x61, 0x63, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x42,
1024 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x03, 0x69, 0x64, 0x73, 0x1a, 0x5f,
1025 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12,
1026 0x48, 0x0a, 0x0e, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x5f, 0x6e, 0x61, 0x6d,
1027 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
1028 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72,
1029 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x52, 0x0d, 0x70, 0x72, 0x69, 0x6e,
1030 0x63, 0x69, 0x70, 0x61, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x42,
1031 0x11, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x03, 0xf8,
1032 0x42, 0x01, 0x42, 0x7d, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x0a, 0x22, 0x69, 0x6f,
1033 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
1034 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x62, 0x61, 0x63, 0x2e, 0x76, 0x32,
1035 0x42, 0x09, 0x52, 0x62, 0x61, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67,
1036 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70,
1037 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d,
1038 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
1039 0x69, 0x67, 0x2f, 0x72, 0x62, 0x61, 0x63, 0x2f, 0x76, 0x32, 0x3b, 0x72, 0x62, 0x61, 0x63, 0x76,
1040 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1041 }
1042
1043 var (
1044 file_envoy_config_rbac_v2_rbac_proto_rawDescOnce sync.Once
1045 file_envoy_config_rbac_v2_rbac_proto_rawDescData = file_envoy_config_rbac_v2_rbac_proto_rawDesc
1046 )
1047
1048 func file_envoy_config_rbac_v2_rbac_proto_rawDescGZIP() []byte {
1049 file_envoy_config_rbac_v2_rbac_proto_rawDescOnce.Do(func() {
1050 file_envoy_config_rbac_v2_rbac_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_rbac_v2_rbac_proto_rawDescData)
1051 })
1052 return file_envoy_config_rbac_v2_rbac_proto_rawDescData
1053 }
1054
1055 var file_envoy_config_rbac_v2_rbac_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
1056 var file_envoy_config_rbac_v2_rbac_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
1057 var file_envoy_config_rbac_v2_rbac_proto_goTypes = []interface{}{
1058 (RBAC_Action)(0), // 0: envoy.config.rbac.v2.RBAC.Action
1059 (*RBAC)(nil), // 1: envoy.config.rbac.v2.RBAC
1060 (*Policy)(nil), // 2: envoy.config.rbac.v2.Policy
1061 (*Permission)(nil), // 3: envoy.config.rbac.v2.Permission
1062 (*Principal)(nil), // 4: envoy.config.rbac.v2.Principal
1063 nil, // 5: envoy.config.rbac.v2.RBAC.PoliciesEntry
1064 (*Permission_Set)(nil), // 6: envoy.config.rbac.v2.Permission.Set
1065 (*Principal_Set)(nil), // 7: envoy.config.rbac.v2.Principal.Set
1066 (*Principal_Authenticated)(nil), // 8: envoy.config.rbac.v2.Principal.Authenticated
1067 (*v1alpha1.Expr)(nil), // 9: google.api.expr.v1alpha1.Expr
1068 (*route.HeaderMatcher)(nil), // 10: envoy.api.v2.route.HeaderMatcher
1069 (*matcher.PathMatcher)(nil), // 11: envoy.type.matcher.PathMatcher
1070 (*core.CidrRange)(nil), // 12: envoy.api.v2.core.CidrRange
1071 (*matcher.MetadataMatcher)(nil), // 13: envoy.type.matcher.MetadataMatcher
1072 (*matcher.StringMatcher)(nil), // 14: envoy.type.matcher.StringMatcher
1073 }
1074 var file_envoy_config_rbac_v2_rbac_proto_depIdxs = []int32{
1075 0, // 0: envoy.config.rbac.v2.RBAC.action:type_name -> envoy.config.rbac.v2.RBAC.Action
1076 5, // 1: envoy.config.rbac.v2.RBAC.policies:type_name -> envoy.config.rbac.v2.RBAC.PoliciesEntry
1077 3, // 2: envoy.config.rbac.v2.Policy.permissions:type_name -> envoy.config.rbac.v2.Permission
1078 4, // 3: envoy.config.rbac.v2.Policy.principals:type_name -> envoy.config.rbac.v2.Principal
1079 9, // 4: envoy.config.rbac.v2.Policy.condition:type_name -> google.api.expr.v1alpha1.Expr
1080 6, // 5: envoy.config.rbac.v2.Permission.and_rules:type_name -> envoy.config.rbac.v2.Permission.Set
1081 6, // 6: envoy.config.rbac.v2.Permission.or_rules:type_name -> envoy.config.rbac.v2.Permission.Set
1082 10, // 7: envoy.config.rbac.v2.Permission.header:type_name -> envoy.api.v2.route.HeaderMatcher
1083 11, // 8: envoy.config.rbac.v2.Permission.url_path:type_name -> envoy.type.matcher.PathMatcher
1084 12, // 9: envoy.config.rbac.v2.Permission.destination_ip:type_name -> envoy.api.v2.core.CidrRange
1085 13, // 10: envoy.config.rbac.v2.Permission.metadata:type_name -> envoy.type.matcher.MetadataMatcher
1086 3, // 11: envoy.config.rbac.v2.Permission.not_rule:type_name -> envoy.config.rbac.v2.Permission
1087 14, // 12: envoy.config.rbac.v2.Permission.requested_server_name:type_name -> envoy.type.matcher.StringMatcher
1088 7, // 13: envoy.config.rbac.v2.Principal.and_ids:type_name -> envoy.config.rbac.v2.Principal.Set
1089 7, // 14: envoy.config.rbac.v2.Principal.or_ids:type_name -> envoy.config.rbac.v2.Principal.Set
1090 8, // 15: envoy.config.rbac.v2.Principal.authenticated:type_name -> envoy.config.rbac.v2.Principal.Authenticated
1091 12, // 16: envoy.config.rbac.v2.Principal.source_ip:type_name -> envoy.api.v2.core.CidrRange
1092 12, // 17: envoy.config.rbac.v2.Principal.direct_remote_ip:type_name -> envoy.api.v2.core.CidrRange
1093 12, // 18: envoy.config.rbac.v2.Principal.remote_ip:type_name -> envoy.api.v2.core.CidrRange
1094 10, // 19: envoy.config.rbac.v2.Principal.header:type_name -> envoy.api.v2.route.HeaderMatcher
1095 11, // 20: envoy.config.rbac.v2.Principal.url_path:type_name -> envoy.type.matcher.PathMatcher
1096 13, // 21: envoy.config.rbac.v2.Principal.metadata:type_name -> envoy.type.matcher.MetadataMatcher
1097 4, // 22: envoy.config.rbac.v2.Principal.not_id:type_name -> envoy.config.rbac.v2.Principal
1098 2, // 23: envoy.config.rbac.v2.RBAC.PoliciesEntry.value:type_name -> envoy.config.rbac.v2.Policy
1099 3, // 24: envoy.config.rbac.v2.Permission.Set.rules:type_name -> envoy.config.rbac.v2.Permission
1100 4, // 25: envoy.config.rbac.v2.Principal.Set.ids:type_name -> envoy.config.rbac.v2.Principal
1101 14, // 26: envoy.config.rbac.v2.Principal.Authenticated.principal_name:type_name -> envoy.type.matcher.StringMatcher
1102 27, // [27:27] is the sub-list for method output_type
1103 27, // [27:27] is the sub-list for method input_type
1104 27, // [27:27] is the sub-list for extension type_name
1105 27, // [27:27] is the sub-list for extension extendee
1106 0, // [0:27] is the sub-list for field type_name
1107 }
1108
1109 func init() { file_envoy_config_rbac_v2_rbac_proto_init() }
1110 func file_envoy_config_rbac_v2_rbac_proto_init() {
1111 if File_envoy_config_rbac_v2_rbac_proto != nil {
1112 return
1113 }
1114 if !protoimpl.UnsafeEnabled {
1115 file_envoy_config_rbac_v2_rbac_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
1116 switch v := v.(*RBAC); i {
1117 case 0:
1118 return &v.state
1119 case 1:
1120 return &v.sizeCache
1121 case 2:
1122 return &v.unknownFields
1123 default:
1124 return nil
1125 }
1126 }
1127 file_envoy_config_rbac_v2_rbac_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
1128 switch v := v.(*Policy); i {
1129 case 0:
1130 return &v.state
1131 case 1:
1132 return &v.sizeCache
1133 case 2:
1134 return &v.unknownFields
1135 default:
1136 return nil
1137 }
1138 }
1139 file_envoy_config_rbac_v2_rbac_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
1140 switch v := v.(*Permission); i {
1141 case 0:
1142 return &v.state
1143 case 1:
1144 return &v.sizeCache
1145 case 2:
1146 return &v.unknownFields
1147 default:
1148 return nil
1149 }
1150 }
1151 file_envoy_config_rbac_v2_rbac_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1152 switch v := v.(*Principal); i {
1153 case 0:
1154 return &v.state
1155 case 1:
1156 return &v.sizeCache
1157 case 2:
1158 return &v.unknownFields
1159 default:
1160 return nil
1161 }
1162 }
1163 file_envoy_config_rbac_v2_rbac_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1164 switch v := v.(*Permission_Set); i {
1165 case 0:
1166 return &v.state
1167 case 1:
1168 return &v.sizeCache
1169 case 2:
1170 return &v.unknownFields
1171 default:
1172 return nil
1173 }
1174 }
1175 file_envoy_config_rbac_v2_rbac_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1176 switch v := v.(*Principal_Set); i {
1177 case 0:
1178 return &v.state
1179 case 1:
1180 return &v.sizeCache
1181 case 2:
1182 return &v.unknownFields
1183 default:
1184 return nil
1185 }
1186 }
1187 file_envoy_config_rbac_v2_rbac_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1188 switch v := v.(*Principal_Authenticated); i {
1189 case 0:
1190 return &v.state
1191 case 1:
1192 return &v.sizeCache
1193 case 2:
1194 return &v.unknownFields
1195 default:
1196 return nil
1197 }
1198 }
1199 }
1200 file_envoy_config_rbac_v2_rbac_proto_msgTypes[2].OneofWrappers = []interface{}{
1201 (*Permission_AndRules)(nil),
1202 (*Permission_OrRules)(nil),
1203 (*Permission_Any)(nil),
1204 (*Permission_Header)(nil),
1205 (*Permission_UrlPath)(nil),
1206 (*Permission_DestinationIp)(nil),
1207 (*Permission_DestinationPort)(nil),
1208 (*Permission_Metadata)(nil),
1209 (*Permission_NotRule)(nil),
1210 (*Permission_RequestedServerName)(nil),
1211 }
1212 file_envoy_config_rbac_v2_rbac_proto_msgTypes[3].OneofWrappers = []interface{}{
1213 (*Principal_AndIds)(nil),
1214 (*Principal_OrIds)(nil),
1215 (*Principal_Any)(nil),
1216 (*Principal_Authenticated_)(nil),
1217 (*Principal_SourceIp)(nil),
1218 (*Principal_DirectRemoteIp)(nil),
1219 (*Principal_RemoteIp)(nil),
1220 (*Principal_Header)(nil),
1221 (*Principal_UrlPath)(nil),
1222 (*Principal_Metadata)(nil),
1223 (*Principal_NotId)(nil),
1224 }
1225 type x struct{}
1226 out := protoimpl.TypeBuilder{
1227 File: protoimpl.DescBuilder{
1228 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1229 RawDescriptor: file_envoy_config_rbac_v2_rbac_proto_rawDesc,
1230 NumEnums: 1,
1231 NumMessages: 8,
1232 NumExtensions: 0,
1233 NumServices: 0,
1234 },
1235 GoTypes: file_envoy_config_rbac_v2_rbac_proto_goTypes,
1236 DependencyIndexes: file_envoy_config_rbac_v2_rbac_proto_depIdxs,
1237 EnumInfos: file_envoy_config_rbac_v2_rbac_proto_enumTypes,
1238 MessageInfos: file_envoy_config_rbac_v2_rbac_proto_msgTypes,
1239 }.Build()
1240 File_envoy_config_rbac_v2_rbac_proto = out.File
1241 file_envoy_config_rbac_v2_rbac_proto_rawDesc = nil
1242 file_envoy_config_rbac_v2_rbac_proto_goTypes = nil
1243 file_envoy_config_rbac_v2_rbac_proto_depIdxs = nil
1244 }