Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckWorkloadCertificate (0.3 sec)

  1. 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)
  2. 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