Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for GetRootResourceName (0.38 sec)

  1. pkg/security/security_test.go

    				t.Fatalf("unexpected IsKeyCertificate got %v, expected %v", key, tt.key)
    			}
    			if root := got.GetRootResourceName(); root != tt.rootResourceName {
    				t.Fatalf("unexpected GetRootResourceName got %v, expected %v", root, tt.rootResourceName)
    			}
    			if cert := got.GetResourceName(); cert != tt.resourceName {
    				t.Fatalf("unexpected GetRootResourceName got %v, expected %v", cert, tt.resourceName)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Sep 10 21:51:09 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. pkg/bootstrap/option/convert.go

    				DefaultValidationContext:         &auth.CertificateValidationContext{MatchSubjectAltNames: model.StringToExactMatch(tls.SubjectAltNames)},
    				ValidationContextSdsSecretConfig: model.ConstructSdsSecretConfig(res.GetRootResourceName()),
    			},
    		}
    		tlsContext.CommonTlsContext.AlpnProtocols = model.ALPNH2Only
    		tlsContext.Sni = tls.Sni
    	case networkingAPI.ClientTLSSettings_MUTUAL:
    		res := security.SdsCertificateConfig{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 00:35:05 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. security/pkg/nodeagent/cache/secretcache_test.go

    	})
    
    	// Check request for non-workload root-certs doesn't configuration with ProxyConfig TrustAnchor
    	checkSecret(t, sc, sc.existingCertificateFile.GetRootResourceName(), security.SecretItem{
    		ResourceName: sc.existingCertificateFile.GetRootResourceName(),
    		RootCert:     rootCert,
    	})
    }
    
    func TestProxyConfigAnchorsTriggerWorkloadCertUpdate(t *testing.T) {
    	cacheLog.SetOutputLevel(log.DebugLevel)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/cluster_tls.go

    						DefaultValidationContext:         defaultValidationContext,
    						ValidationContextSdsSecretConfig: sec_model.ConstructSdsSecretConfig(res.GetRootResourceName()),
    					},
    				}
    
    			}
    		}
    
    		applyTLSDefaults(tlsContext, opts.mesh.GetTlsDefaults())
    
    		if cb.isHttp2Cluster(c) {
    			// This is HTTP/2 cluster, advertise it with ALPN.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. pilot/pkg/security/model/authentication.go

    				DefaultValidationContext:         defaultValidationContext,
    				ValidationContextSdsSecretConfig: ConstructSdsSecretConfig(model.GetOrDefault(res.GetRootResourceName(), SDSRootResourceName)),
    			},
    		}
    
    	}
    	tlsContext.TlsCertificateSdsSecretConfigs = []*tls.SdsSecretConfig{
    		ConstructSdsSecretConfig(model.GetOrDefault(res.GetResourceName(), SDSDefaultResourceName)),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 22:11:02 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. pkg/security/security.go

    		return "file-cert:" + s.CertificatePath + ResourceSeparator + s.PrivateKeyPath // Format: file-cert:%s~%s
    	}
    	return ""
    }
    
    // GetRootResourceName converts a SdsCertificateConfig to a string to be used as an SDS resource name for the root
    func (s SdsCertificateConfig) GetRootResourceName() string {
    	if s.IsRootCertificate() {
    		return "file-root:" + s.CaCertificatePath // Format: file-root:%s
    	}
    	return ""
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  7. pkg/istio-agent/agent_test.go

    			a.ProxyConfig.ProxyMetadata[MetadataClientRootCert] = filepath.Join(dir, "root-cert.pem")
    			a.Security.FileMountedCerts = true
    			return a
    		}).Check(t, cfg.GetRootResourceName(), cfg.GetResourceName())
    	})
    	t.Run("File mounted certs with bogus token path", func(t *testing.T) {
    		// User sets FileMountedCerts and a bogus token path.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top