| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package tlsv3 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" |
| 12 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 13 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 14 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 15 |
reflect "reflect" |
| 16 |
sync "sync" |
| 17 |
) |
| 18 |
|
| 19 |
const ( |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 22 |
|
| 23 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 24 |
) |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
inst |
| 47 |
|
| 48 |
om/**“ |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
type SPIFFECertValidatorConfig struct { |
| 56 |
state protoimpl.MessageState |
| 57 |
sizeCache protoimpl.SizeCache |
| 58 |
unknownFields protoimpl.UnknownFields |
| 59 |
|
| 60 |
|
| 61 |
TrustDomains []*SPIFFECertValidatorConfig_TrustDomain `protobuf:"bytes,1,rep,name=trust_domains,json=trustDomains,proto3" json:"trust_domains,omitempty"` |
| 62 |
} |
| 63 |
|
| 64 |
func (x *SPIFFECertValidatorConfig) Reset() { |
| 65 |
*x = SPIFFECertValidatorConfig{} |
| 66 |
if protoimpl.UnsafeEnabled { |
| 67 |
mi := &file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_msgTypes[0] |
| 68 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 69 |
ms.StoreMessageInfo(mi) |
| 70 |
} |
| 71 |
} |
| 72 |
|
| 73 |
func (x *SPIFFECertValidatorConfig) String() string { |
| 74 |
return protoimpl.X.MessageStringOf(x) |
| 75 |
} |
| 76 |
|
| 77 |
func (*SPIFFECertValidatorConfig) ProtoMessage() {} |
| 78 |
|
| 79 |
func (x *SPIFFECertValidatorConfig) ProtoReflect() protoreflect.Message { |
| 80 |
mi := &file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_msgTypes[0] |
| 81 |
if protoimpl.UnsafeEnabled && x != nil { |
| 82 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 83 |
if ms.LoadMessageInfo() == nil { |
| 84 |
ms.StoreMessageInfo(mi) |
| 85 |
} |
| 86 |
return ms |
| 87 |
} |
| 88 |
return mi.MessageOf(x) |
| 89 |
} |
| 90 |
|
| 91 |
|
| 92 |
func (*SPIFFECertValidatorConfig) Descriptor() ([]byte, []int) { |
| 93 |
return file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDescGZIP(), []int{0} |
| 94 |
} |
| 95 |
|
| 96 |
func (x *SPIFFECertValidatorConfig) GetTrustDomains() []*SPIFFECertValidatorConfig_TrustDomain { |
| 97 |
if x != nil { |
| 98 |
return x.TrustDomains |
| 99 |
} |
| 100 |
return nil |
| 101 |
} |
| 102 |
|
| 103 |
type SPIFFECertValidatorConfig_TrustDomain struct { |
| 104 |
state protoimpl.MessageState |
| 105 |
sizeCache protoimpl.SizeCache |
| 106 |
unknownFields protoimpl.UnknownFields |
| 107 |
|
| 108 |
example. |
| 109 |
|
| 110 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 111 |
|
| 112 |
TrustBundle *v3.DataSource `protobuf:"bytes,2,opt,name=trust_bundle,json=trustBundle,proto3" json:"trust_bundle,omitempty"` |
| 113 |
} |
| 114 |
|
| 115 |
func (x *SPIFFECertValidatorConfig_TrustDomain) Reset() { |
| 116 |
*x = SPIFFECertValidatorConfig_TrustDomain{} |
| 117 |
if protoimpl.UnsafeEnabled { |
| 118 |
mi := &file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_msgTypes[1] |
| 119 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 120 |
ms.StoreMessageInfo(mi) |
| 121 |
} |
| 122 |
} |
| 123 |
|
| 124 |
func (x *SPIFFECertValidatorConfig_TrustDomain) String() string { |
| 125 |
return protoimpl.X.MessageStringOf(x) |
| 126 |
} |
| 127 |
|
| 128 |
func (*SPIFFECertValidatorConfig_TrustDomain) ProtoMessage() {} |
| 129 |
|
| 130 |
func (x *SPIFFECertValidatorConfig_TrustDomain) ProtoReflect() protoreflect.Message { |
| 131 |
mi := &file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_msgTypes[1] |
| 132 |
if protoimpl.UnsafeEnabled && x != nil { |
| 133 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 134 |
if ms.LoadMessageInfo() == nil { |
| 135 |
ms.StoreMessageInfo(mi) |
| 136 |
} |
| 137 |
return ms |
| 138 |
} |
| 139 |
return mi.MessageOf(x) |
| 140 |
} |
| 141 |
|
| 142 |
|
| 143 |
func (*SPIFFECertValidatorConfig_TrustDomain) Descriptor() ([]byte, []int) { |
| 144 |
return file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDescGZIP(), []int{0, 0} |
| 145 |
} |
| 146 |
|
| 147 |
func (x *SPIFFECertValidatorConfig_TrustDomain) GetName() string { |
| 148 |
if x != nil { |
| 149 |
return x.Name |
| 150 |
} |
| 151 |
return "" |
| 152 |
} |
| 153 |
|
| 154 |
func (x *SPIFFECertValidatorConfig_TrustDomain) GetTrustBundle() *v3.DataSource { |
| 155 |
if x != nil { |
| 156 |
return x.TrustBundle |
| 157 |
} |
| 158 |
return nil |
| 159 |
} |
| 160 |
|
| 161 |
var File_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto protoreflect.FileDescriptor |
| 162 |
|
| 163 |
var file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDesc = []byte{ |
| 164 |
0x0a, 0x4b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, |
| 165 |
0x6e, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x6f, 0x63, |
| 166 |
0x6b, 0x65, 0x74, 0x73, 0x2f, 0x74, 0x6c, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x74, 0x6c, 0x73, 0x5f, |
| 167 |
0x73, 0x70, 0x69, 0x66, 0x66, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, |
| 168 |
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x29, 0x65, |
| 169 |
0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, |
| 170 |
0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, |
| 171 |
0x73, 0x2e, 0x74, 0x6c, 0x73, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, |
| 172 |
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, |
| 173 |
0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, |
| 174 |
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, |
| 175 |
0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, |
| 176 |
0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 177 |
0x6f, 0x22, 0x8d, 0x02, 0x0a, 0x19, 0x53, 0x50, 0x49, 0x46, 0x46, 0x45, 0x43, 0x65, 0x72, 0x74, |
| 178 |
0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, |
| 179 |
0x7f, 0x0a, 0x0d, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, |
| 180 |
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x50, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, |
| 181 |
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, |
| 182 |
0x6f, 0x72, 0x74, 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x2e, 0x74, 0x6c, 0x73, 0x2e, |
| 183 |
0x76, 0x33, 0x2e, 0x53, 0x50, 0x49, 0x46, 0x46, 0x45, 0x43, 0x65, 0x72, 0x74, 0x56, 0x61, 0x6c, |
| 184 |
0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x72, 0x75, |
| 185 |
0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, |
| 186 |
0x08, 0x01, 0x52, 0x0c, 0x74, 0x72, 0x75, 0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, |
| 187 |
0x1a, 0x6f, 0x0a, 0x0b, 0x54, 0x72, 0x75, 0x73, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, |
| 188 |
0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, |
| 189 |
0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0c, |
| 190 |
0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, |
| 191 |
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, |
| 192 |
0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, |
| 193 |
0x75, 0x72, 0x63, 0x65, 0x52, 0x0b, 0x74, 0x72, 0x75, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, |
| 194 |
0x65, 0x42, 0xba, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x0a, 0x37, 0x69, 0x6f, |
| 195 |
0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, |
| 196 |
0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, |
| 197 |
0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x2e, 0x74, |
| 198 |
0x6c, 0x73, 0x2e, 0x76, 0x33, 0x42, 0x1d, 0x54, 0x6c, 0x73, 0x53, 0x70, 0x69, 0x66, 0x66, 0x65, |
| 199 |
0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, |
| 200 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, |
| 201 |
0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, |
| 202 |
0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, |
| 203 |
0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, |
| 204 |
0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, |
| 205 |
0x73, 0x2f, 0x74, 0x6c, 0x73, 0x2f, 0x76, 0x33, 0x3b, 0x74, 0x6c, 0x73, 0x76, 0x33, 0x62, 0x06, |
| 206 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 207 |
} |
| 208 |
|
| 209 |
var ( |
| 210 |
file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDescOnce sync.Once |
| 211 |
file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDescData = file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDesc |
| 212 |
) |
| 213 |
|
| 214 |
func file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDescGZIP() []byte { |
| 215 |
file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDescOnce.Do(func() { |
| 216 |
file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDescData) |
| 217 |
}) |
| 218 |
return file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDescData |
| 219 |
} |
| 220 |
|
| 221 |
var file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 222 |
var file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_goTypes = []interface{}{ |
| 223 |
(*SPIFFECertValidatorConfig)(nil), |
| 224 |
(*SPIFFECertValidatorConfig_TrustDomain)(nil), |
| 225 |
(*v3.DataSource)(nil), |
| 226 |
} |
| 227 |
var file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_depIdxs = []int32{ |
| 228 |
1, |
| 229 |
2, |
| 230 |
2, |
| 231 |
2, |
| 232 |
2, |
| 233 |
2, |
| 234 |
0, |
| 235 |
} |
| 236 |
|
| 237 |
func init() { file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_init() } |
| 238 |
func file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_init() { |
| 239 |
if File_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto != nil { |
| 240 |
return |
| 241 |
} |
| 242 |
if !protoimpl.UnsafeEnabled { |
| 243 |
file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 244 |
switch v := v.(*SPIFFECertValidatorConfig); i { |
| 245 |
case 0: |
| 246 |
return &v.state |
| 247 |
case 1: |
| 248 |
return &v.sizeCache |
| 249 |
case 2: |
| 250 |
return &v.unknownFields |
| 251 |
default: |
| 252 |
return nil |
| 253 |
} |
| 254 |
} |
| 255 |
file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 256 |
switch v := v.(*SPIFFECertValidatorConfig_TrustDomain); i { |
| 257 |
case 0: |
| 258 |
return &v.state |
| 259 |
case 1: |
| 260 |
return &v.sizeCache |
| 261 |
case 2: |
| 262 |
return &v.unknownFields |
| 263 |
default: |
| 264 |
return nil |
| 265 |
} |
| 266 |
} |
| 267 |
} |
| 268 |
type x struct{} |
| 269 |
out := protoimpl.TypeBuilder{ |
| 270 |
File: protoimpl.DescBuilder{ |
| 271 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 272 |
RawDescriptor: file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDesc, |
| 273 |
NumEnums: 0, |
| 274 |
NumMessages: 2, |
| 275 |
NumExtensions: 0, |
| 276 |
NumServices: 0, |
| 277 |
}, |
| 278 |
GoTypes: file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_goTypes, |
| 279 |
DependencyIndexes: file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_depIdxs, |
| 280 |
MessageInfos: file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_msgTypes, |
| 281 |
}.Build() |
| 282 |
File_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto = out.File |
| 283 |
file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_rawDesc = nil |
| 284 |
file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_goTypes = nil |
| 285 |
file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_depIdxs = nil |
| 286 |
} |