- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for certificateData (0.2 sec)
-
pilot/pkg/trustbundle/trustbundle_test.go
{CertificateData: &meshconfig.MeshConfig_CertificateData_SpiffeBundleUrl{SpiffeBundleUrl: server2.Listener.Addr().String()}}, {CertificateData: &meshconfig.MeshConfig_CertificateData_SpiffeBundleUrl{SpiffeBundleUrl: server1.Listener.Addr().String()}}, {CertificateData: &meshconfig.MeshConfig_CertificateData_Pem{Pem: rootCACert}}, }})
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 13.1K bytes - Viewed (0) -
pkg/kubelet/certificate/transport_test.go
uC6Jo2eLcSV1sSdzTjaaWdM6XeYj6yHOAm8ZBIQs7m6V -----END RSA PRIVATE KEY-----`) ) type certificateData struct { keyPEM []byte certificatePEM []byte certificate *tls.Certificate } func newCertificateData(certificatePEM string, keyPEM string) *certificateData { certificate, err := tls.X509KeyPair([]byte(certificatePEM), []byte(keyPEM)) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 18 08:52:58 UTC 2020 - 7.8K bytes - Viewed (0) -
security/pkg/k8s/chiron/utils_test.go
secretNameSpace: "mock-secret-namespace", invalidCert: true, expectFail: true, certificateData: []byte(""), }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { log.FindScope("default").SetOutputLevel(log.DebugLevel) client := initFakeKubeClient(t, tc.certificateData) // 4. Read the signed certificate
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 03:58:11 UTC 2024 - 13K bytes - Viewed (0) -
pkg/kubelet/certificate/bootstrap/bootstrap_test.go
var certificateData []byte if c.failureType == certificateSigningRequestDenied { condition = certificatesv1.CertificateSigningRequestCondition{ Type: certificatesv1.CertificateDenied, } } else { condition = certificatesv1.CertificateSigningRequestCondition{ Type: certificatesv1.CertificateApproved, } certificateData = []byte(`issued certificate`) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 09 14:24:11 UTC 2023 - 13K bytes - Viewed (0) -
security/pkg/pki/ra/k8s_ra_test.go
if err != nil { t.Errorf("Failed to read sample %s", tc.rootCertForMeshConfig) } caCertificates := []*meshconfig.MeshConfig_CertificateData{ {CertificateData: &meshconfig.MeshConfig_CertificateData_Pem{Pem: string(rootCertPem)}, CertSigners: []string{signer}}, } ra.SetCACertificatesFromMeshConfig(caCertificates) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 27 00:44:54 UTC 2023 - 9.7K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter.go
certificateDir: certificateDir, } } // Exists checks if a certificate exist func (rw *pkiCertificateReadWriter) Exists() (bool, error) { certificatePath, _ := pkiutil.PathsForCertAndKey(rw.certificateDir, rw.baseName) return fileExists(certificatePath) } func fileExists(filename string) (bool, error) { info, err := os.Stat(filename) if err != nil { if os.IsNotExist(err) { return false, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 01 03:09:53 UTC 2024 - 8.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/pkiutil/pki_helpers.go
if cert == nil { return errors.New("certificate cannot be nil when writing to file") } certificatePath := pathForCert(pkiPath, name) if err := certutil.WriteCert(certificatePath, EncodeCertPEM(cert)); err != nil { return errors.Wrapf(err, "unable to write certificate to file %s", certificatePath) } return nil } // WriteCertBundle stores the given certificate bundle at the given location
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 25.5K bytes - Viewed (0) -
security/pkg/nodeagent/cache/secretcache.go
sdsFromFile = true if sitem, err = sc.generateKeyCertFromExistingFiles(cf.CertificatePath, cf.PrivateKeyPath, resourceName); err == nil { // Adding cert is sufficient here as key can't change without changing the cert. sc.addFileWatcher(cf.CertificatePath, resourceName) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 04 08:29:46 UTC 2024 - 28.2K bytes - Viewed (0) -
pkg/security/security.go
type SdsCertificateConfig struct { CertificatePath string PrivateKeyPath string CaCertificatePath string } const ( ResourceSeparator = "~" ) // GetResourceName converts a SdsCertificateConfig to a string to be used as an SDS resource name func (s SdsCertificateConfig) GetResourceName() string { if s.IsKeyCertificate() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 19.1K bytes - Viewed (0) -
pkg/istio-agent/agent_test.go
// file paths. CA communication is disabled. mTLS is always used for authentication with // Istiod, never JWT. dir := mktemp() copyCerts(t, dir) cfg := security.SdsCertificateConfig{ CertificatePath: filepath.Join(dir, "cert-chain.pem"), PrivateKeyPath: filepath.Join(dir, "key.pem"), CaCertificatePath: filepath.Join(dir, "root-cert.pem"), } Setup(t, func(a AgentTest) AgentTest {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 33.4K bytes - Viewed (0)