Debian Codegraph @

envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.pb.go

raw symbols SCIP
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/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.proto
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 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 // Configuration specific to the `SPIFFE <https://github.com/spiffe/spiffe>`_ certificate validator.
27 //
28 // Example:
29 //
30 // .. validated-code-block:: yaml
31 //
32 // :type-name: envoy.extensions.transport_sockets.tls.v3.CertificateValidationContext
33 //
34 // custom_validator_config:
35 // name: envoy.tls.cert_validator.spiffe
36 // typed_config:
37 // "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.SPIFFECertValidatorConfig
38 // trust_domains:
39 // - name: foo.com
40 // trust_bundle:
41 // filename: "foo.pem"
42 // - name: envoy.com
43 // trust_bundle:
44 // filename: "envoy.pem"
45 //
46 // In this example, a presented peer certificate whose SAN matches “spiffe://foo.com/**“ is validated against
47 // the "foo.pem" x.509 certificate. All the trust bundles are isolated from each other, so no trust domain can mint
48 // a SVID belonging to another trust domain. That means, in this example, a SVID signed by “envoy.com“'s CA with “spiffe://foo.com/**“
49 // SAN would be rejected since Envoy selects the trust bundle according to the presented SAN before validate the certificate.
50 //
51 // Note that SPIFFE validator inherits and uses the following options from :ref:`CertificateValidationContext <envoy_v3_api_msg_extensions.transport_sockets.tls.v3.CertificateValidationContext>`.
52 //
53 // - :ref:`allow_expired_certificate <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CertificateValidationContext.allow_expired_certificate>` to allow expired certificates.
54 // - :ref:`match_typed_subject_alt_names <envoy_v3_api_field_extensions.transport_sockets.tls.v3.CertificateValidationContext.match_typed_subject_alt_names>` to match **URI** SAN of certificates. Unlike the default validator, SPIFFE validator only matches **URI** SAN (which equals to SVID in SPIFFE terminology) and ignore other SAN types.
55 type SPIFFECertValidatorConfig struct {
56 state protoimpl.MessageState
57 sizeCache protoimpl.SizeCache
58 unknownFields protoimpl.UnknownFields
59
60 // This field specifies trust domains used for validating incoming X.509-SVID(s).
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 // Deprecated: Use SPIFFECertValidatorConfig.ProtoReflect.Descriptor instead.
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 // Name of the trust domain, “example.com“, “foo.bar.gov“ for example.
109 // Note that this must *not* have "spiffe://" prefix.
110 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
111 // Specify a data source holding x.509 trust bundle used for validating incoming SVID(s) in this trust domain.
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 // Deprecated: Use SPIFFECertValidatorConfig_TrustDomain.ProtoReflect.Descriptor instead.
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), // 0: envoy.extensions.transport_sockets.tls.v3.SPIFFECertValidatorConfig
224 (*SPIFFECertValidatorConfig_TrustDomain)(nil), // 1: envoy.extensions.transport_sockets.tls.v3.SPIFFECertValidatorConfig.TrustDomain
225 (*v3.DataSource)(nil), // 2: envoy.config.core.v3.DataSource
226 }
227 var file_envoy_extensions_transport_sockets_tls_v3_tls_spiffe_validator_config_proto_depIdxs = []int32{
228 1, // 0: envoy.extensions.transport_sockets.tls.v3.SPIFFECertValidatorConfig.trust_domains:type_name -> envoy.extensions.transport_sockets.tls.v3.SPIFFECertValidatorConfig.TrustDomain
229 2, // 1: envoy.extensions.transport_sockets.tls.v3.SPIFFECertValidatorConfig.TrustDomain.trust_bundle:type_name -> envoy.config.core.v3.DataSource
230 2, // [2:2] is the sub-list for method output_type
231 2, // [2:2] is the sub-list for method input_type
232 2, // [2:2] is the sub-list for extension type_name
233 2, // [2:2] is the sub-list for extension extendee
234 0, // [0:2] is the sub-list for field type_name
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 }