You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: networking/v1alpha3/gateway.proto
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -380,6 +380,9 @@ message Port {
380
380
uint32target_port=4 [deprecated=true];
381
381
}
382
382
383
+
// +kubebuilder:validation:XValidation:message="only one of credentialNames or tlsCertificates can be set",rule="oneof(self.tlsCertificates, self.credentialNames)"
384
+
// +kubebuilder:validation:XValidation:message="only one of credentialName or credentialNames can be set",rule="oneof(self.credentialName, self.credentialNames)"
385
+
// +kubebuilder:validation:XValidation:message="only one of credentialName or tlsCertificates can be set",rule="oneof(self.credentialNames, self.tlsCertificates)"
383
386
messageServerTLSSettings {
384
387
// If set to true, the load balancer will send a 301 redirect for
385
388
// all http connections, asking the clients to use HTTPS.
@@ -471,9 +474,40 @@ message ServerTLSSettings {
471
474
// or credentialName can be specified.
472
475
stringcredential_name=10;
473
476
477
+
// Same as CredentialName but for multiple certificates. Mainly used for specifying
478
+
// RSA and ECDSA certificates for the same server.
479
+
// +kubebuilder:validation:MaxItems=2
480
+
// +kubebuilder:validation:MinItems=1
481
+
repeatedstringcredential_names=14;
482
+
483
+
// TLSCertificate describes the server's TLS certificate.
484
+
messageTLSCertificate {
485
+
// REQUIRED if mode is `SIMPLE` or `MUTUAL`. The path to the file
486
+
// holding the server-side TLS certificate to use.
487
+
stringserver_certificate=1;
488
+
489
+
// REQUIRED if mode is `SIMPLE` or `MUTUAL`. The path to the file
490
+
// holding the server's private key.
491
+
stringprivate_key=2;
492
+
493
+
// REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`. The path to a file
494
+
// containing certificate authority certificates to use in verifying a presented
495
+
// client side certificate.
496
+
stringca_certificates=3;
497
+
}
498
+
499
+
// Only one of `server_certificate`, `private_key`, `ca_certificates` or `credential_name`
500
+
// or `credential_names` or `tls_certificates` should be specified.
501
+
// This is mainly used for specifying RSA and ECDSA certificates for the same server.
502
+
// +kubebuilder:validation:MaxItems=2
503
+
// +kubebuilder:validation:MinItems=1
504
+
repeatedTLSCertificatetls_certificates=15;
505
+
474
506
// A list of alternate names to verify the subject identity in the
475
507
// certificate presented by the client.
476
508
// Requires TLS mode to be set to `MUTUAL`.
509
+
// When multiple certificates are provided via `credential_names` or `tls_certificates`,
510
+
// the subject alternate names are validated against the selected certificate.
477
511
repeatedstringsubject_alt_names=6;
478
512
479
513
// An optional list of base64-encoded SHA-256 hashes of the SPKIs of
0 commit comments