Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for GetCombinedValidationContext (0.44 sec)

  1. pilot/pkg/networking/core/cluster_traffic_policy_test.go

    			expectTransportSocketMatch: false,
    			validateTLSContext: func(t *testing.T, ctx *tls.UpstreamTlsContext) {
    				rootName := "file-root:" + mutualTLSSettingsWithCerts.CaCertificates
    				if got := ctx.CommonTlsContext.GetCombinedValidationContext().GetValidationContextSdsSecretConfig().GetName(); rootName != got {
    					t.Fatalf("expected root name %v got %v", rootName, got)
    				}
    				if got := ctx.CommonTlsContext.GetAlpnProtocols(); got != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 03:53:05 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. pilot/test/xdstest/extract.go

    		if s.GetTypedConfig().TypeUrl != TypeName[*tls.UpstreamTlsContext]() {
    			continue
    		}
    		tl := UnmarshalAny[tls.UpstreamTlsContext](t, s.GetTypedConfig())
    		resourceNames.Insert(tl.GetCommonTlsContext().GetCombinedValidationContext().GetValidationContextSdsSecretConfig().GetName())
    		for _, s := range tl.GetCommonTlsContext().GetTlsCertificateSdsSecretConfigs() {
    			resourceNames.Insert(s.GetName())
    		}
    	}
    	return resourceNames.UnsortedList()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/cluster_waypoint.go

    func (cb *ClusterBuilder) buildConnectOriginate(proxy *model.Proxy, push *model.PushContext, uriSanMatchers ...*matcher.StringMatcher) *cluster.Cluster {
    	ctx := buildCommonConnectTLSContext(proxy, push)
    	validationCtx := ctx.GetCombinedValidationContext().DefaultValidationContext
    	for _, uriSanMatcher := range uriSanMatchers {
    		if uriSanMatcher != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. pilot/pkg/xds/cds_test.go

    				tl := xdstest.UnmarshalAny[tls.UpstreamTlsContext](t, cluster.GetTransportSocket().GetTypedConfig())
    				names := sets.New[string]()
    				// nolint: staticcheck
    				for _, n := range tl.GetCommonTlsContext().GetCombinedValidationContext().GetDefaultValidationContext().GetMatchSubjectAltNames() {
    					names.Insert(n.GetExact())
    				}
    				assert.Equal(t, sets.SortedList(names), sets.SortedList(sets.New(sans...)))
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 02:06:39 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/cluster_tls_test.go

    			expectTransportSocketMatch: false,
    			validateTLSContext: func(t *testing.T, ctx *tls.UpstreamTlsContext) {
    				rootName := "file-root:" + mutualTLSSettingsWithCerts.CaCertificates
    				if got := ctx.CommonTlsContext.GetCombinedValidationContext().GetValidationContextSdsSecretConfig().GetName(); rootName != got {
    					t.Fatalf("expected root name %v got %v", rootName, got)
    				}
    				if got := ctx.CommonTlsContext.GetAlpnProtocols(); got != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 03:53:05 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/listener_waypoint.go

    	ctx := &tls.CommonTlsContext{}
    	security.ApplyToCommonTLSContext(ctx, proxy, nil, "", nil, true)
    	aliases := authn.TrustDomainsForValidation(push.Mesh)
    	validationCtx := ctx.GetCombinedValidationContext().DefaultValidationContext
    	if len(aliases) > 0 {
    		matchers := util.StringToPrefixMatch(security.AppendURIPrefixToTrustDomain(aliases))
    		for _, matcher := range matchers {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  7. pilot/pkg/xds/eds_test.go

    	}
    	transport := &tls.UpstreamTlsContext{}
    	ads.GetEdsClusters()["outbound|80||test1"].GetTransportSocketMatches()[0].GetTransportSocket().GetTypedConfig().UnmarshalTo(transport)
    	sans := transport.GetCommonTlsContext().GetCombinedValidationContext().GetDefaultValidationContext().GetMatchSubjectAltNames() //nolint: staticcheck
    	if len(sans) != 1 {
    		t.Fatalf("expected 1 san, got %v", sans)
    	}
    }
    
    func TestEds(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/cluster_test.go

    	}
    	for _, e := range expected {
    		c := xdstest.ExtractCluster(e, clusters)
    		tlsContext := getTLSContext(t, c)
    		g.Expect(tlsContext).NotTo(BeNil())
    
    		rootSdsConfig := tlsContext.CommonTlsContext.GetCombinedValidationContext().GetValidationContextSdsSecretConfig()
    		g.Expect(rootSdsConfig.GetName()).To(Equal("file-root:/clientRootCertFromNodeMetadata.pem"))
    
    		certSdsConfig := tlsContext.CommonTlsContext.GetTlsCertificateSdsSecretConfigs()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
Back to top