-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathjwt.pb.go
1144 lines (1003 loc) · 52.1 KB
/
jwt.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.35.1
// protoc v3.6.1
// source: github.com/solo-io/solo-apis/api/gloo/gloo/v1/enterprise/options/jwt/jwt.proto
package jwt
import (
reflect "reflect"
sync "sync"
_ "github.com/solo-io/protoc-gen-ext/extproto"
v3 "github.com/solo-io/solo-apis/pkg/api/gloo.solo.io/external/envoy/extensions/filters/http/jwt_authn/v3"
core "github.com/solo-io/solo-kit/pkg/api/v1/resources/core"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type VhostExtension_ValidationPolicy int32
const (
// Default value. Allow only requests that authenticate with a valid JWT to succeed.
// Note that the `allowMissingOrFailed=true` setting takes precedence. In such a case, even if you explicitly set `validationPolicy=REQUIRE_VALID`, this field is ignored.
VhostExtension_REQUIRE_VALID VhostExtension_ValidationPolicy = 0
// Allow requests to succeed even if JWT authentication is missing, but fail when an invalid JWT token is presented.
// You might use this setting when later steps depend on input from the JWT.
// For example, you might add claims from the JWT to request headers with the claimsToHeaders field.
// As such, you may want to make sure that any provided JWT is valid. If not, the request fails,
// which informs the requester that their JWT is not valid.
// Requests without a JWT, however, still succeed and skip JWT validation.
VhostExtension_ALLOW_MISSING VhostExtension_ValidationPolicy = 1
// Allow requests to succeed even when a JWT is missing or JWT verification fails.
// For example, you might apply multiple policies to your routes so that requests can authenticate with either a
// JWT or another method such as external auth. Use this value
// to allow a failed JWT auth request to pass through to the other authentication method.
VhostExtension_ALLOW_MISSING_OR_FAILED VhostExtension_ValidationPolicy = 2
)
// Enum value maps for VhostExtension_ValidationPolicy.
var (
VhostExtension_ValidationPolicy_name = map[int32]string{
0: "REQUIRE_VALID",
1: "ALLOW_MISSING",
2: "ALLOW_MISSING_OR_FAILED",
}
VhostExtension_ValidationPolicy_value = map[string]int32{
"REQUIRE_VALID": 0,
"ALLOW_MISSING": 1,
"ALLOW_MISSING_OR_FAILED": 2,
}
)
func (x VhostExtension_ValidationPolicy) Enum() *VhostExtension_ValidationPolicy {
p := new(VhostExtension_ValidationPolicy)
*p = x
return p
}
func (x VhostExtension_ValidationPolicy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VhostExtension_ValidationPolicy) Descriptor() protoreflect.EnumDescriptor {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_enumTypes[0].Descriptor()
}
func (VhostExtension_ValidationPolicy) Type() protoreflect.EnumType {
return &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_enumTypes[0]
}
func (x VhostExtension_ValidationPolicy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VhostExtension_ValidationPolicy.Descriptor instead.
func (VhostExtension_ValidationPolicy) EnumDescriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{3, 0}
}
type JwtStagedVhostExtension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// JWT Virtual host config for the JWT filter that runs before the extauth filter.
BeforeExtAuth *VhostExtension `protobuf:"bytes,1,opt,name=before_ext_auth,json=beforeExtAuth,proto3" json:"before_ext_auth,omitempty"`
// JWT Virtual host config for the JWT filter that runs after the extauth filter.
AfterExtAuth *VhostExtension `protobuf:"bytes,2,opt,name=after_ext_auth,json=afterExtAuth,proto3" json:"after_ext_auth,omitempty"`
}
func (x *JwtStagedVhostExtension) Reset() {
*x = JwtStagedVhostExtension{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *JwtStagedVhostExtension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*JwtStagedVhostExtension) ProtoMessage() {}
func (x *JwtStagedVhostExtension) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use JwtStagedVhostExtension.ProtoReflect.Descriptor instead.
func (*JwtStagedVhostExtension) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{0}
}
func (x *JwtStagedVhostExtension) GetBeforeExtAuth() *VhostExtension {
if x != nil {
return x.BeforeExtAuth
}
return nil
}
func (x *JwtStagedVhostExtension) GetAfterExtAuth() *VhostExtension {
if x != nil {
return x.AfterExtAuth
}
return nil
}
type JwtStagedRouteProvidersExtension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Per-route JWT config for the JWT filter that runs before the extauth filter.
BeforeExtAuth *VhostExtension `protobuf:"bytes,1,opt,name=before_ext_auth,json=beforeExtAuth,proto3" json:"before_ext_auth,omitempty"`
// Per-route JWT config for the JWT filter that runs before the extauth filter.
AfterExtAuth *VhostExtension `protobuf:"bytes,2,opt,name=after_ext_auth,json=afterExtAuth,proto3" json:"after_ext_auth,omitempty"`
}
func (x *JwtStagedRouteProvidersExtension) Reset() {
*x = JwtStagedRouteProvidersExtension{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *JwtStagedRouteProvidersExtension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*JwtStagedRouteProvidersExtension) ProtoMessage() {}
func (x *JwtStagedRouteProvidersExtension) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use JwtStagedRouteProvidersExtension.ProtoReflect.Descriptor instead.
func (*JwtStagedRouteProvidersExtension) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{1}
}
func (x *JwtStagedRouteProvidersExtension) GetBeforeExtAuth() *VhostExtension {
if x != nil {
return x.BeforeExtAuth
}
return nil
}
func (x *JwtStagedRouteProvidersExtension) GetAfterExtAuth() *VhostExtension {
if x != nil {
return x.AfterExtAuth
}
return nil
}
type JwtStagedRouteExtension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Per-route JWT config for the JWT filter that runs before the extauth filter.
BeforeExtAuth *RouteExtension `protobuf:"bytes,1,opt,name=before_ext_auth,json=beforeExtAuth,proto3" json:"before_ext_auth,omitempty"`
// Per-route JWT config for the JWT filter that runs before the extauth filter.
AfterExtAuth *RouteExtension `protobuf:"bytes,2,opt,name=after_ext_auth,json=afterExtAuth,proto3" json:"after_ext_auth,omitempty"`
}
func (x *JwtStagedRouteExtension) Reset() {
*x = JwtStagedRouteExtension{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *JwtStagedRouteExtension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*JwtStagedRouteExtension) ProtoMessage() {}
func (x *JwtStagedRouteExtension) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use JwtStagedRouteExtension.ProtoReflect.Descriptor instead.
func (*JwtStagedRouteExtension) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{2}
}
func (x *JwtStagedRouteExtension) GetBeforeExtAuth() *RouteExtension {
if x != nil {
return x.BeforeExtAuth
}
return nil
}
func (x *JwtStagedRouteExtension) GetAfterExtAuth() *RouteExtension {
if x != nil {
return x.AfterExtAuth
}
return nil
}
type VhostExtension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Map of JWT provider name to Provider.
// If specified, multiple providers will be `OR`-ed together and will allow validation to any of the providers.
Providers map[string]*Provider `protobuf:"bytes,4,rep,name=providers,proto3" json:"providers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Allow pass through of JWT requests for this virtual host, even if JWT token is missing or JWT auth failed.
// If this is false (default false), requests that fail JWT authentication will fail authorization immediately.
// For example, if a request requires either JWT auth OR another auth method, this can be enabled to allow a failed JWT auth request to pass through to the other auth method.
// Deprecated: use validation_policy instead.
//
// Deprecated: Marked as deprecated in github.com/solo-io/solo-apis/api/gloo/gloo/v1/enterprise/options/jwt/jwt.proto.
AllowMissingOrFailedJwt bool `protobuf:"varint,2,opt,name=allow_missing_or_failed_jwt,json=allowMissingOrFailedJwt,proto3" json:"allow_missing_or_failed_jwt,omitempty"`
// Optional: Configure how JWT validation works, with the flexibility to handle requests with missing or invalid JWTs.
// By default, after applying JWT policy to a route, only requests that authenticate with a valid JWT succeed.
ValidationPolicy VhostExtension_ValidationPolicy `protobuf:"varint,3,opt,name=validation_policy,json=validationPolicy,proto3,enum=jwt.options.gloo.solo.io.VhostExtension_ValidationPolicy" json:"validation_policy,omitempty"`
}
func (x *VhostExtension) Reset() {
*x = VhostExtension{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VhostExtension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VhostExtension) ProtoMessage() {}
func (x *VhostExtension) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VhostExtension.ProtoReflect.Descriptor instead.
func (*VhostExtension) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{3}
}
func (x *VhostExtension) GetProviders() map[string]*Provider {
if x != nil {
return x.Providers
}
return nil
}
// Deprecated: Marked as deprecated in github.com/solo-io/solo-apis/api/gloo/gloo/v1/enterprise/options/jwt/jwt.proto.
func (x *VhostExtension) GetAllowMissingOrFailedJwt() bool {
if x != nil {
return x.AllowMissingOrFailedJwt
}
return false
}
func (x *VhostExtension) GetValidationPolicy() VhostExtension_ValidationPolicy {
if x != nil {
return x.ValidationPolicy
}
return VhostExtension_REQUIRE_VALID
}
type RouteExtension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Disable JWT checks on this route.
Disable bool `protobuf:"varint,1,opt,name=disable,proto3" json:"disable,omitempty"`
}
func (x *RouteExtension) Reset() {
*x = RouteExtension{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RouteExtension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RouteExtension) ProtoMessage() {}
func (x *RouteExtension) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RouteExtension.ProtoReflect.Descriptor instead.
func (*RouteExtension) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{4}
}
func (x *RouteExtension) GetDisable() bool {
if x != nil {
return x.Disable
}
return false
}
type Provider struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The source for the keys to validate JWTs.
Jwks *Jwks `protobuf:"bytes,1,opt,name=jwks,proto3" json:"jwks,omitempty"`
// An incoming JWT must have an 'aud' claim and it must be in this list.
Audiences []string `protobuf:"bytes,2,rep,name=audiences,proto3" json:"audiences,omitempty"`
// Issuer of the JWT. the 'iss' claim of the JWT must match this.
Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
// Where to find the JWT of the current provider.
TokenSource *TokenSource `protobuf:"bytes,4,opt,name=token_source,json=tokenSource,proto3" json:"token_source,omitempty"`
// Should the token forwarded upstream. if false, the header containing the token will be removed.
KeepToken bool `protobuf:"varint,5,opt,name=keep_token,json=keepToken,proto3" json:"keep_token,omitempty"`
// What claims should be copied to upstream headers.
ClaimsToHeaders []*ClaimToHeader `protobuf:"bytes,6,rep,name=claims_to_headers,json=claimsToHeaders,proto3" json:"claims_to_headers,omitempty"`
// Optional: ClockSkewSeconds is used to verify time constraints, such as `exp` and `npf`. Default is 60s
ClockSkewSeconds *wrapperspb.UInt32Value `protobuf:"bytes,8,opt,name=clock_skew_seconds,json=clockSkewSeconds,proto3" json:"clock_skew_seconds,omitempty"`
// Optional: When this field is set, the specified value is used as the key in DynamicMetadata to store the JWT failure status code and message under that key. If the value is empty (i.e., ""), it is ignored.
// This field is particularly useful when logging the failure status.
//
// For example, if the value of `attach_failed_status_to_metadata` is 'custom_auth_failure_status' then
// the failure status can be accessed in the access log as '%DYNAMIC_METADATA(envoy.filters.http.jwt_authn:custom_auth_failure_status)'
// Note: status code and message can be individually accessed as '%DYNAMIC_METADATA(envoy.filters.http.jwt_authn:custom_auth_failure_status.code)' and '%DYNAMIC_METADATA(envoy.filters.http.jwt_authn:custom_auth_failure_status.message)' respectively.
AttachFailedStatusToMetadata string `protobuf:"bytes,9,opt,name=attach_failed_status_to_metadata,json=attachFailedStatusToMetadata,proto3" json:"attach_failed_status_to_metadata,omitempty"`
}
func (x *Provider) Reset() {
*x = Provider{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Provider) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Provider) ProtoMessage() {}
func (x *Provider) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Provider.ProtoReflect.Descriptor instead.
func (*Provider) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{5}
}
func (x *Provider) GetJwks() *Jwks {
if x != nil {
return x.Jwks
}
return nil
}
func (x *Provider) GetAudiences() []string {
if x != nil {
return x.Audiences
}
return nil
}
func (x *Provider) GetIssuer() string {
if x != nil {
return x.Issuer
}
return ""
}
func (x *Provider) GetTokenSource() *TokenSource {
if x != nil {
return x.TokenSource
}
return nil
}
func (x *Provider) GetKeepToken() bool {
if x != nil {
return x.KeepToken
}
return false
}
func (x *Provider) GetClaimsToHeaders() []*ClaimToHeader {
if x != nil {
return x.ClaimsToHeaders
}
return nil
}
func (x *Provider) GetClockSkewSeconds() *wrapperspb.UInt32Value {
if x != nil {
return x.ClockSkewSeconds
}
return nil
}
func (x *Provider) GetAttachFailedStatusToMetadata() string {
if x != nil {
return x.AttachFailedStatusToMetadata
}
return ""
}
type Jwks struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Jwks:
//
// *Jwks_Remote
// *Jwks_Local
Jwks isJwks_Jwks `protobuf_oneof:"jwks"`
}
func (x *Jwks) Reset() {
*x = Jwks{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Jwks) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Jwks) ProtoMessage() {}
func (x *Jwks) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Jwks.ProtoReflect.Descriptor instead.
func (*Jwks) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{6}
}
func (m *Jwks) GetJwks() isJwks_Jwks {
if m != nil {
return m.Jwks
}
return nil
}
func (x *Jwks) GetRemote() *RemoteJwks {
if x, ok := x.GetJwks().(*Jwks_Remote); ok {
return x.Remote
}
return nil
}
func (x *Jwks) GetLocal() *LocalJwks {
if x, ok := x.GetJwks().(*Jwks_Local); ok {
return x.Local
}
return nil
}
type isJwks_Jwks interface {
isJwks_Jwks()
}
type Jwks_Remote struct {
// Use a remote JWKS server
Remote *RemoteJwks `protobuf:"bytes,1,opt,name=remote,proto3,oneof"`
}
type Jwks_Local struct {
// Use an inline JWKS
Local *LocalJwks `protobuf:"bytes,2,opt,name=local,proto3,oneof"`
}
func (*Jwks_Remote) isJwks_Jwks() {}
func (*Jwks_Local) isJwks_Jwks() {}
type RemoteJwks struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The url used when accessing the upstream for Json Web Key Set.
// This is used to set the host and path in the request
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// The Upstream representing the Json Web Key Set server
UpstreamRef *core.ResourceRef `protobuf:"bytes,2,opt,name=upstream_ref,json=upstreamRef,proto3" json:"upstream_ref,omitempty"`
// Duration after which the cached JWKS should be expired.
// If not specified, default cache duration is 5 minutes.
CacheDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=cache_duration,json=cacheDuration,proto3" json:"cache_duration,omitempty"`
// Fetch Jwks asynchronously in the main thread before the listener is activated.
// Fetched Jwks can be used by all worker threads.
//
// If this feature is not enabled:
//
// - The Jwks is fetched on-demand when the requests come. During the fetching, first
// few requests are paused until the Jwks is fetched.
// - Each worker thread fetches its own Jwks since Jwks cache is per worker thread.
//
// If this feature is enabled:
//
// - Fetched Jwks is done in the main thread before the listener is activated. Its fetched
// Jwks can be used by all worker threads. Each worker thread doesn't need to fetch its own.
// - Jwks is ready when the requests come, not need to wait for the Jwks fetching.
AsyncFetch *v3.JwksAsyncFetch `protobuf:"bytes,3,opt,name=async_fetch,json=asyncFetch,proto3" json:"async_fetch,omitempty"`
}
func (x *RemoteJwks) Reset() {
*x = RemoteJwks{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RemoteJwks) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemoteJwks) ProtoMessage() {}
func (x *RemoteJwks) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RemoteJwks.ProtoReflect.Descriptor instead.
func (*RemoteJwks) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{7}
}
func (x *RemoteJwks) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *RemoteJwks) GetUpstreamRef() *core.ResourceRef {
if x != nil {
return x.UpstreamRef
}
return nil
}
func (x *RemoteJwks) GetCacheDuration() *durationpb.Duration {
if x != nil {
return x.CacheDuration
}
return nil
}
func (x *RemoteJwks) GetAsyncFetch() *v3.JwksAsyncFetch {
if x != nil {
return x.AsyncFetch
}
return nil
}
type LocalJwks struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Inline key. this can be json web key, key-set or PEM format.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
func (x *LocalJwks) Reset() {
*x = LocalJwks{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LocalJwks) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LocalJwks) ProtoMessage() {}
func (x *LocalJwks) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LocalJwks.ProtoReflect.Descriptor instead.
func (*LocalJwks) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{8}
}
func (x *LocalJwks) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
// Describes the location of a JWT token
type TokenSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Try to retrieve token from these headers
Headers []*TokenSource_HeaderSource `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
// Try to retrieve token from these query params
QueryParams []string `protobuf:"bytes,2,rep,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"`
}
func (x *TokenSource) Reset() {
*x = TokenSource{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TokenSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TokenSource) ProtoMessage() {}
func (x *TokenSource) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TokenSource.ProtoReflect.Descriptor instead.
func (*TokenSource) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{9}
}
func (x *TokenSource) GetHeaders() []*TokenSource_HeaderSource {
if x != nil {
return x.Headers
}
return nil
}
func (x *TokenSource) GetQueryParams() []string {
if x != nil {
return x.QueryParams
}
return nil
}
// Allows copying verified claims to headers sent upstream
type ClaimToHeader struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Claim name. for example, "sub"
Claim string `protobuf:"bytes,1,opt,name=claim,proto3" json:"claim,omitempty"`
// The header the claim will be copied to. for example, "x-sub".
Header string `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
// If the header exists, append to it (true), or overwrite it (false).
Append bool `protobuf:"varint,4,opt,name=append,proto3" json:"append,omitempty"`
}
func (x *ClaimToHeader) Reset() {
*x = ClaimToHeader{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ClaimToHeader) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClaimToHeader) ProtoMessage() {}
func (x *ClaimToHeader) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClaimToHeader.ProtoReflect.Descriptor instead.
func (*ClaimToHeader) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{10}
}
func (x *ClaimToHeader) GetClaim() string {
if x != nil {
return x.Claim
}
return ""
}
func (x *ClaimToHeader) GetHeader() string {
if x != nil {
return x.Header
}
return ""
}
func (x *ClaimToHeader) GetAppend() bool {
if x != nil {
return x.Append
}
return false
}
// Describes how to retrieve a JWT from a header
type TokenSource_HeaderSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the header. for example, "authorization"
Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// Prefix before the token. for example, "Bearer "
Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
}
func (x *TokenSource_HeaderSource) Reset() {
*x = TokenSource_HeaderSource{}
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TokenSource_HeaderSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TokenSource_HeaderSource) ProtoMessage() {}
func (x *TokenSource_HeaderSource) ProtoReflect() protoreflect.Message {
mi := &file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TokenSource_HeaderSource.ProtoReflect.Descriptor instead.
func (*TokenSource_HeaderSource) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDescGZIP(), []int{9, 0}
}
func (x *TokenSource_HeaderSource) GetHeader() string {
if x != nil {
return x.Header
}
return ""
}
func (x *TokenSource_HeaderSource) GetPrefix() string {
if x != nil {
return x.Prefix
}
return ""
}
var File_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto protoreflect.FileDescriptor
var file_github_com_solo_io_solo_apis_api_gloo_gloo_v1_enterprise_options_jwt_jwt_proto_rawDesc = []byte{
0x0a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6c,
0x6f, 0x2d, 0x69, 0x6f, 0x2f, 0x73, 0x6f, 0x6c, 0x6f, 0x2d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x67, 0x6c, 0x6f, 0x6f, 0x2f, 0x67, 0x6c, 0x6f, 0x6f, 0x2f, 0x76, 0x31, 0x2f,
0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2f, 0x6a, 0x77, 0x74, 0x2f, 0x6a, 0x77, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x18, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x6c,
0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6c, 0x6f, 0x2d, 0x69, 0x6f, 0x2f, 0x73,
0x6f, 0x6c, 0x6f, 0x2d, 0x6b, 0x69, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72,
0x65, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x6b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6c, 0x6f, 0x2d, 0x69, 0x6f, 0x2f, 0x73, 0x6f, 0x6c,
0x6f, 0x2d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6c, 0x6f, 0x6f, 0x2f,
0x67, 0x6c, 0x6f, 0x6f, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x65, 0x6e,
0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x66,
0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x6a, 0x77, 0x74, 0x5f,
0x61, 0x75, 0x74, 0x68, 0x6e, 0x2f, 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x65, 0x78, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70,
0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x01, 0x0a, 0x17, 0x4a, 0x77,
0x74, 0x53, 0x74, 0x61, 0x67, 0x65, 0x64, 0x56, 0x68, 0x6f, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65,
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0f, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5f,
0x65, 0x78, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28,
0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x6c, 0x6f,
0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x68, 0x6f, 0x73, 0x74, 0x45,
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65,
0x45, 0x78, 0x74, 0x41, 0x75, 0x74, 0x68, 0x12, 0x4e, 0x0a, 0x0e, 0x61, 0x66, 0x74, 0x65, 0x72,
0x5f, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x28, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x6c,
0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x68, 0x6f, 0x73, 0x74,
0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x61, 0x66, 0x74, 0x65, 0x72,
0x45, 0x78, 0x74, 0x41, 0x75, 0x74, 0x68, 0x22, 0xc4, 0x01, 0x0a, 0x20, 0x4a, 0x77, 0x74, 0x53,
0x74, 0x61, 0x67, 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x73, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0f,
0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f,
0x2e, 0x56, 0x68, 0x6f, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52,
0x0d, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x45, 0x78, 0x74, 0x41, 0x75, 0x74, 0x68, 0x12, 0x4e,
0x0a, 0x0e, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69,
0x6f, 0x2e, 0x56, 0x68, 0x6f, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
0x52, 0x0c, 0x61, 0x66, 0x74, 0x65, 0x72, 0x45, 0x78, 0x74, 0x41, 0x75, 0x74, 0x68, 0x22, 0xbb,
0x01, 0x0a, 0x17, 0x4a, 0x77, 0x74, 0x53, 0x74, 0x61, 0x67, 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74,
0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0f, 0x62, 0x65,
0x66, 0x6f, 0x72, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x52,
0x6f, 0x75, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x62,
0x65, 0x66, 0x6f, 0x72, 0x65, 0x45, 0x78, 0x74, 0x41, 0x75, 0x74, 0x68, 0x12, 0x4e, 0x0a, 0x0e,
0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e,
0x52, 0x6f, 0x75, 0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c,
0x61, 0x66, 0x74, 0x65, 0x72, 0x45, 0x78, 0x74, 0x41, 0x75, 0x74, 0x68, 0x22, 0xca, 0x03, 0x0a,
0x0e, 0x56, 0x68, 0x6f, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
0x55, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x37, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56, 0x68,
0x6f, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x70, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x1b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f,
0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x72, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65,
0x64, 0x5f, 0x6a, 0x77, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52,
0x17, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x4f, 0x72, 0x46,
0x61, 0x69, 0x6c, 0x65, 0x64, 0x4a, 0x77, 0x74, 0x12, 0x66, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69,
0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x56,
0x68, 0x6f, 0x73, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x61,
0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x10,
0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
0x1a, 0x60, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74,
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
0x38, 0x01, 0x22, 0x55, 0x0a, 0x10, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52,
0x45, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x4c, 0x4c,
0x4f, 0x57, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17,
0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x4f, 0x52,
0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x22, 0x2a, 0x0a, 0x0e, 0x52, 0x6f, 0x75,
0x74, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x64,
0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x69,
0x73, 0x61, 0x62, 0x6c, 0x65, 0x22, 0xc6, 0x03, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x12, 0x32, 0x0a, 0x04, 0x6a, 0x77, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1e, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67,
0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x4a, 0x77, 0x6b, 0x73,
0x52, 0x04, 0x6a, 0x77, 0x6b, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e,
0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x64, 0x69, 0x65,
0x6e, 0x63, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x0c,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x2e, 0x67, 0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6b, 0x65, 0x65, 0x70,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x53, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x5f,
0x74, 0x6f, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x27, 0x2e, 0x6a, 0x77, 0x74, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67,
0x6c, 0x6f, 0x6f, 0x2e, 0x73, 0x6f, 0x6c, 0x6f, 0x2e, 0x69, 0x6f, 0x2e, 0x43, 0x6c, 0x61, 0x69,
0x6d, 0x54, 0x6f, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0f, 0x63, 0x6c, 0x61, 0x69, 0x6d,
0x73, 0x54, 0x6f, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x4a, 0x0a, 0x12, 0x63, 0x6c,
0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x6b, 0x65, 0x77, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73,
0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x6b, 0x65, 0x77, 0x53,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x46, 0x0a, 0x20, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68,
0x5f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x74,
0x6f, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
0x52, 0x1c, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x54, 0x6f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8b,
0x01, 0x0a, 0x04, 0x4a, 0x77, 0x6b, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74,