Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 128 for cpsr (0.04 sec)

  1. security/pkg/nodeagent/test/mock/caserver.go

    	s.faultInjectLock.Unlock()
    	return empty
    }
    
    // CreateCertificate handles CSR.
    func (s *CAServer) CreateCertificate(ctx context.Context, request *pb.IstioCertificateRequest) (
    	*pb.IstioCertificateResponse, error,
    ) {
    	caServerLog.Infof("received CSR request")
    	if s.shouldReject() {
    		caServerLog.Info("force rejecting CSR request")
    		return nil, status.Error(codes.Unavailable, "CA server is not available")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. pkg/apis/certificates/validation/validation.go

    	}
    	if csr.Spec.ExpirationSeconds != nil && *csr.Spec.ExpirationSeconds < 600 {
    		allErrs = append(allErrs, field.Invalid(specPath.Child("expirationSeconds"), *csr.Spec.ExpirationSeconds, "may not specify a duration less than 600 seconds (10 minutes)"))
    	}
    	allErrs = append(allErrs, validateConditions(field.NewPath("status", "conditions"), csr, opts)...)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  3. cmd/kube-controller-manager/app/certificates.go

    	if missingSingleSigningFile && !anySpecificFilesSet(controllerContext.ComponentConfig.CSRSigningController) {
    		logger.Info("Skipping CSR signer controller because no csr cert/key was specified")
    		return nil, false, nil
    	}
    	if !missingSingleSigningFile && anySpecificFilesSet(controllerContext.ComponentConfig.CSRSigningController) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 11:28:02 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  4. security/pkg/k8s/chiron/utils_test.go

    	go func() {
    		for {
    			select {
    			case <-ctx.Done():
    				return
    			case r := <-w.ResultChan():
    				csr := r.Object.(*cert.CertificateSigningRequest).DeepCopy()
    				if csr.Status.Certificate != nil {
    					log.Debugf("test signer skip, already signed: %v", csr.Name)
    					continue
    				}
    				if approved(csr) {
    					// This is a pretty terrible hack, but client-go fake doesn't properly support list+watch,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. security/pkg/pki/ra/k8s_ra_test.go

    	go func() {
    		for {
    			select {
    			case <-ctx.Done():
    				return
    			case r := <-w.ResultChan():
    				csr := r.Object.(*cert.CertificateSigningRequest).DeepCopy()
    				if csr.Status.Certificate != nil {
    					continue
    				}
    				csr.Status.Certificate = certificate
    				// fake clientset doesn't handle resource version, so we need to delay the update
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 27 00:44:54 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  6. pkg/registry/certificates/certificates/storage/metrics_test.go

    					SignerName:        "pandas",
    					ExpirationSeconds: csr.DurationToExpirationSeconds(time.Hour),
    				},
    			},
    			options:       &metav1.UpdateOptions{DryRun: []string{"stuff"}},
    			wantSigner:    "",
    			wantRequested: false,
    			wantHonored:   false,
    		},
    		{
    			name:    "old CSR already has a cert so it is ignored",
    			success: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. security/pkg/pki/util/generate_csr.go

    	if err != nil {
    		return nil, nil, fmt.Errorf("CSR template creation failed (%v)", err)
    	}
    
    	csrBytes, err := x509.CreateCertificateRequest(rand.Reader, template, crypto.PrivateKey(priv))
    	if err != nil {
    		return nil, nil, fmt.Errorf("CSR creation failed (%v)", err)
    	}
    
    	csr, privKey, err := encodePem(true, csrBytes, priv, options.PKCS8Key)
    	return csr, privKey, err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. security/pkg/nodeagent/caclient/providers/mock/mockcaclient.go

    	signingCert, signingKey, certChain, rootCert := c.bundle.GetAll()
    	csr, err := util.ParsePemEncodedCSR(csrPEM)
    	if err != nil {
    		return nil, fmt.Errorf("csr sign error: %v", err)
    	}
    	subjectIDs := []string{"test"}
    	certBytes, err := util.GenCertFromCSR(csr, signingCert, csr.PublicKey, *signingKey, subjectIDs, c.certLifetime, false)
    	if err != nil {
    		return nil, fmt.Errorf("csr sign error: %v", err)
    	}
    
    	block := &pem.Block{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. tools/certs/Makefile.k8s.mk

    .SUFFIXES: .csr .pem .conf
    .PRECIOUS: %/ca-key.pem %/ca-cert.pem %/cert-chain.pem
    .PRECIOUS: %/workload-cert.pem %/key.pem %/workload-cert-chain.pem
    .SECONDARY: root-cert.csr root-ca.conf %/cluster-ca.csr %/intermediate.conf
    
    .DEFAULT_GOAL := help
    
    SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
    
    include $(SELF_DIR)common.mk
    
    #------------------------------------------------------------------------
    ##help:		print this help message
    .PHONY: help
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 27 13:15:29 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. security/pkg/server/ca/monitoring.go

    		"The number of errors occurred when parsing the CSR.",
    	)
    
    	idExtractionErrorCounts = monitoring.NewSum(
    		"citadel_server_id_extraction_err_count",
    		"The number of errors occurred when extracting the ID from CSR.",
    	)
    
    	certSignErrorCounts = monitoring.NewSum(
    		"citadel_server_csr_sign_err_count",
    		"The number of errors occurred when signing the CSR.",
    	)
    
    	successCounts = monitoring.NewSum(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:09 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top