go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/server/auth/service/protocol/security_config.pb.go (about) 1 // Copyright 2019 The LUCI Authors. All rights reserved. 2 // Use of this source code is governed under the Apache License, Version 2.0 3 // that can be found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.31.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/server/auth/service/protocol/components/auth/proto/security_config.proto 10 11 package protocol 12 13 import ( 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // SecurityConfig is read from 'security.cfg' by Auth Service and distributed to 28 // all linked services (in its serialized form) as part of AuthDB proto. 29 // 30 // See AuthDB.security_config in replication.proto. 31 type SecurityConfig struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 // A list of regular expressions matching hostnames that should be recognized 37 // as being a part of single LUCI deployment. 38 // 39 // Different microservices within a single LUCI deployment may trust each 40 // other. This setting (coupled with the TLS certificate check) allows 41 // a service to recognize that a target of an RPC is another internal service 42 // belonging to the same LUCI deployment. 43 // 44 // '^' and '$' are implied. The regexp language is intersection of Python and 45 // Golang regexp languages and thus should use only very standard features 46 // common to both. 47 // 48 // Example: "(.*-dot-)?chromium-swarm\.appspot\.com". 49 InternalServiceRegexp []string `protobuf:"bytes,1,rep,name=internal_service_regexp,json=internalServiceRegexp,proto3" json:"internal_service_regexp,omitempty"` 50 } 51 52 func (x *SecurityConfig) Reset() { 53 *x = SecurityConfig{} 54 if protoimpl.UnsafeEnabled { 55 mi := &file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_msgTypes[0] 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 ms.StoreMessageInfo(mi) 58 } 59 } 60 61 func (x *SecurityConfig) String() string { 62 return protoimpl.X.MessageStringOf(x) 63 } 64 65 func (*SecurityConfig) ProtoMessage() {} 66 67 func (x *SecurityConfig) ProtoReflect() protoreflect.Message { 68 mi := &file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_msgTypes[0] 69 if protoimpl.UnsafeEnabled && x != nil { 70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 71 if ms.LoadMessageInfo() == nil { 72 ms.StoreMessageInfo(mi) 73 } 74 return ms 75 } 76 return mi.MessageOf(x) 77 } 78 79 // Deprecated: Use SecurityConfig.ProtoReflect.Descriptor instead. 80 func (*SecurityConfig) Descriptor() ([]byte, []int) { 81 return file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDescGZIP(), []int{0} 82 } 83 84 func (x *SecurityConfig) GetInternalServiceRegexp() []string { 85 if x != nil { 86 return x.InternalServiceRegexp 87 } 88 return nil 89 } 90 91 var File_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto protoreflect.FileDescriptor 92 93 var file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDesc = []byte{ 94 0x0a, 0x5d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 95 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x61, 0x75, 96 0x74, 0x68, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 97 0x63, 0x6f, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x61, 98 0x75, 0x74, 0x68, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 99 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 100 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 101 0x22, 0x48, 0x0a, 0x0e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 102 0x69, 0x67, 0x12, 0x36, 0x0a, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 103 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x01, 0x20, 104 0x03, 0x28, 0x09, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, 105 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x67, 0x65, 0x78, 0x70, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x6f, 106 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 107 0x63, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 108 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x3b, 109 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 110 } 111 112 var ( 113 file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDescOnce sync.Once 114 file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDescData = file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDesc 115 ) 116 117 func file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDescGZIP() []byte { 118 file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDescOnce.Do(func() { 119 file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDescData) 120 }) 121 return file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDescData 122 } 123 124 var file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 125 var file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_goTypes = []interface{}{ 126 (*SecurityConfig)(nil), // 0: components.auth.SecurityConfig 127 } 128 var file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_depIdxs = []int32{ 129 0, // [0:0] is the sub-list for method output_type 130 0, // [0:0] is the sub-list for method input_type 131 0, // [0:0] is the sub-list for extension type_name 132 0, // [0:0] is the sub-list for extension extendee 133 0, // [0:0] is the sub-list for field type_name 134 } 135 136 func init() { 137 file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_init() 138 } 139 func file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_init() { 140 if File_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto != nil { 141 return 142 } 143 if !protoimpl.UnsafeEnabled { 144 file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 145 switch v := v.(*SecurityConfig); i { 146 case 0: 147 return &v.state 148 case 1: 149 return &v.sizeCache 150 case 2: 151 return &v.unknownFields 152 default: 153 return nil 154 } 155 } 156 } 157 type x struct{} 158 out := protoimpl.TypeBuilder{ 159 File: protoimpl.DescBuilder{ 160 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 161 RawDescriptor: file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDesc, 162 NumEnums: 0, 163 NumMessages: 1, 164 NumExtensions: 0, 165 NumServices: 0, 166 }, 167 GoTypes: file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_goTypes, 168 DependencyIndexes: file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_depIdxs, 169 MessageInfos: file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_msgTypes, 170 }.Build() 171 File_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto = out.File 172 file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_rawDesc = nil 173 file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_goTypes = nil 174 file_go_chromium_org_luci_server_auth_service_protocol_components_auth_proto_security_config_proto_depIdxs = nil 175 }