@@ -115,8 +115,15 @@ def update_validation(self, key: str, value: str) -> None:
115115 EnvoyValidationContext ,
116116 self .get_common ().setdefault ("validation_context" , empty_context ),
117117 )
118-
119118 src : EnvoyCoreSource = {"filename" : value }
119+
120+ # Create the 'match_subject_alt_names' dictionary if it doesn't exist
121+ match_san = validation .setdefault ("match_subject_alt_names" , {})
122+
123+ # Create the SAN type (e.g., DNS) dictionary if it doesn't exist
124+ san_type_dict = match_san .setdefault (san_type , [])
125+ san_type_dict .append (src )
126+
120127 validation [key ] = src
121128
122129 def add_context (self , ctx : IRTLSContext ) -> None :
@@ -142,6 +149,7 @@ def add_context(self, ctx: IRTLSContext) -> None:
142149 ("min_tls_version" , self .update_tls_version , "tls_minimum_protocol_version" ),
143150 ("max_tls_version" , self .update_tls_version , "tls_maximum_protocol_version" ),
144151 ("sni" , self .__setitem__ , "sni" ),
152+ ("verify_upstream_certs" , self .__setitem__ , "verify_upstream_certs" )
145153 ]:
146154 value = ctx .get (ctxkey , None )
147155
0 commit comments