Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetOSRootFilePath (0.53 sec)

  1. security/pkg/nodeagent/cafile/cafile.go

    package cafile
    
    import (
    	"istio.io/istio/pkg/security"
    )
    
    // CACertFilePath stores the OS CA certificate file path
    var CACertFilePath = ""
    
    func init() {
    	CACertFilePath = security.GetOSRootFilePath()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Sep 10 21:51:09 UTC 2021
    - 790 bytes
    - Viewed (0)
  2. pkg/security/security.go

    	}
    
    	return "", fmt.Errorf("no bearer token exists in HTTP authorization header")
    }
    
    // GetOSRootFilePath returns the first file path detected from a list of known CA certificate file paths.
    // If none of the known CA certificate files are found, a warning in printed and an empty string is returned.
    func GetOSRootFilePath() string {
    	// Get and store the OS CA certificate path for Linux systems
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. security/pkg/nodeagent/cache/secretcache_test.go

    	if err != nil {
    		t.Fatalf("Error creating Mock CA client: %v", err)
    	}
    
    	sc := createCache(t, fakeCACli, func(resourceName string) {}, security.Options{CARootPath: cafile.CACertFilePath})
    	certPath := security.GetOSRootFilePath()
    	expected, err := sc.GenerateSecret("file-root:" + certPath)
    	if err != nil {
    		t.Fatalf("Could not get OS Cert: %v", err)
    	}
    
    	gotSecret, err := sc.GenerateSecret(security.FileRootSystemCACert)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. pkg/istio-agent/agent_test.go

    	})
    	t.Run("OS CA Certs are able to be accessed", func(t *testing.T) {
    		// Try loading an OS CA Cert from OS CA Certs file paths.
    		dir := mktemp()
    		copyCertsWithOSRootCA(t, dir)
    
    		osRootPath := security.GetOSRootFilePath()
    		caRootCert := filepath.Base(osRootPath)
    
    		cfg := security.SdsCertificateConfig{
    			CertificatePath:   filepath.Join(dir, "cert-chain.pem"),
    			PrivateKeyPath:    filepath.Join(dir, "key.pem"),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top