Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CheckWorkloadCertificate (0.51 sec)

  1. pilot/cmd/pilot-agent/options/security_test.go

    			paths:    []string{cert.Name(), "/this-is-a-nonexisting-path-1", "/this-is-a-nonexisting-path-2"},
    			expected: false,
    		},
    	}
    	for _, tt := range tests {
    		result := security.CheckWorkloadCertificate(tt.paths[0], tt.paths[1], tt.paths[2])
    		if result != tt.expected {
    			t.Errorf("Test %s failed, expected: %t got: %t", tt.name, tt.expected, result)
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 31 18:31:36 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/options/security.go

    	log.Infof("using credential fetcher of %s type in %s trust domain", credFetcherTypeEnv, o.TrustDomain)
    	o.CredFetcher = credFetcher
    
    	if o.CAProviderName == security.GkeWorkloadCertificateProvider {
    		if !security.CheckWorkloadCertificate(security.GkeWorkloadCertChainFilePath,
    			security.GkeWorkloadKeyFilePath, security.GkeWorkloadRootCertFilePath) {
    			return nil, fmt.Errorf("GKE workload certificate files (%v, %v, %v) not present",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. pkg/security/security.go

    			return cert
    		}
    	}
    	istiolog.Warn("OS CA Cert could not be found for agent")
    	return ""
    }
    
    // CheckWorkloadCertificate returns true when the workload certificate
    // files are present under the provided paths. Otherwise, return false.
    func CheckWorkloadCertificate(certChainFilePath, keyFilePath, rootCertFilePath string) bool {
    	if _, err := os.Stat(certChainFilePath); err != nil {
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  4. pkg/istio-agent/agent.go

    		a.wg.Add(1)
    		go func() {
    			defer a.wg.Done()
    			<-ctx.Done()
    		}()
    	}
    	return a.wg.Wait, nil
    }
    
    func (a *Agent) initSdsServer() error {
    	var err error
    	if security.CheckWorkloadCertificate(security.WorkloadIdentityCertChainPath, security.WorkloadIdentityKeyPath, security.WorkloadIdentityRootCertPath) {
    		log.Info("workload certificate files detected, creating secret manager without caClient")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
Back to top