Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsRootCertificate (0.4 sec)

  1. pkg/security/security.go

    func (s SdsCertificateConfig) GetRootResourceName() string {
    	if s.IsRootCertificate() {
    		return "file-root:" + s.CaCertificatePath // Format: file-root:%s
    	}
    	return ""
    }
    
    // IsRootCertificate returns true if this config represents a root certificate config.
    func (s SdsCertificateConfig) IsRootCertificate() bool {
    	return s.CaCertificatePath != ""
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. security/pkg/nodeagent/sds/sdsservice.go

    	} else {
    		cfg, ok = security.SdsCertificateConfigFromResourceName(s.ResourceName)
    	}
    	if s.ResourceName == security.RootCertReqResourceName || (ok && cfg.IsRootCertificate()) {
    		secret.Type = &tls.Secret_ValidationContext{
    			ValidationContext: &tls.CertificateValidationContext{
    				TrustedCa: &core.DataSource{
    					Specifier: &core.DataSource_InlineBytes{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 25 00:20:04 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. security/pkg/nodeagent/cache/secretcache_test.go

    			gotSecret.ResourceName)
    	}
    	cfg, ok := security.SdsCertificateConfigFromResourceName(expectedSecret.ResourceName)
    	if expectedSecret.ResourceName == security.RootCertReqResourceName || (ok && cfg.IsRootCertificate()) {
    		if !bytes.Equal(expectedSecret.RootCert, gotSecret.RootCert) {
    			t.Fatalf("root cert: expected %v but got %v", expectedSecret.RootCert,
    				gotSecret.RootCert)
    		}
    	} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top