Skip to content

Commit

Permalink
Fix deprecate message of CertificateValidationContext
Browse files Browse the repository at this point in the history
  • Loading branch information
pubudu538 authored and tharindu1st committed Mar 5, 2024
1 parent 733229e commit 29dad5a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions adapter/internal/oasparser/envoyconf/routes_with_clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,13 @@ func CreateRateLimitCluster() (*clusterv3.Cluster, []*corev3.Address, error) {
upstreamTLSContext.CommonTlsContext.ValidationContextType = &tlsv3.CommonTlsContext_ValidationContext{
ValidationContext: &tlsv3.CertificateValidationContext{
TrustedCa: trustedCASrc,
MatchSubjectAltNames: []*envoy_type_matcherv3.StringMatcher{
MatchTypedSubjectAltNames: []*tlsv3.SubjectAltNameMatcher{
{
MatchPattern: &envoy_type_matcherv3.StringMatcher_Exact{
Exact: sslCertSanHostName,
SanType: tlsv3.SubjectAltNameMatcher_DNS,
Matcher: &envoy_type_matcherv3.StringMatcher{
MatchPattern: &envoy_type_matcherv3.StringMatcher_Exact{
Exact: sslCertSanHostName,
},
},
},
},
Expand Down

0 comments on commit 29dad5a

Please sign in to comment.