Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewKubernetesRA (0.29 sec)

  1. security/pkg/pki/ra/k8s_ra.go

    	// mutex protects the R/W to caCertificatesFromMeshConfig.
    	mutex sync.RWMutex
    }
    
    var pkiRaLog = log.RegisterScope("pkira", "Istiod RA log")
    
    // NewKubernetesRA : Create a RA that interfaces with K8S CSR CA
    func NewKubernetesRA(raOpts *IstioRAOptions) (*KubernetesRA, error) {
    	keyCertBundle, err := util.NewKeyCertBundleWithRootCertFromFile(raOpts.CaCertFile)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. security/pkg/pki/ra/common.go

    // the caOptions defines the external provider
    func NewIstioRA(opts *IstioRAOptions) (RegistrationAuthority, error) {
    	if opts.ExternalCAType == ExtCAK8s {
    		istioRA, err := NewKubernetesRA(opts)
    		if err != nil {
    			return nil, fmt.Errorf("failed to create an K8s CA: %v", err)
    		}
    		return istioRA, err
    	}
    	return nil, fmt.Errorf("invalid CA Name %s", opts.ExternalCAType)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 11 19:57:30 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. security/pkg/pki/ra/k8s_ra_test.go

    		DefaultCertTTL: defaultCertTTL,
    		MaxCertTTL:     maxCertTTL,
    		CaSigner:       caSigner,
    		CaCertFile:     caCertFile,
    		VerifyAppendCA: true,
    		K8sClient:      client.Kube(),
    	}
    	return NewKubernetesRA(raOpts)
    }
    
    // TestK8sSign : Verify that ra.k8sSign returns a valid certPEM while using k8s Fake Client to create a CSR
    func TestK8sSign(t *testing.T) {
    	csrPEM := createFakeCsr(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 27 00:44:54 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top