- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsRootCertificate (0.4 sec)
-
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) -
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) -
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)