Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for newSigner (0.14 sec)

  1. pkg/controller/bootstrap/bootstrapsigner_test.go

    	}
    	return ret
    }
    
    func TestNoConfigMap(t *testing.T) {
    	signer, cl, _, _, err := newSigner()
    	if err != nil {
    		t.Fatalf("error creating Signer: %v", err)
    	}
    	signer.signConfigMap(context.TODO())
    	verifyActions(t, []core.Action{}, cl.Actions())
    }
    
    func TestSimpleSign(t *testing.T) {
    	signer, cl, secrets, configMaps, err := newSigner()
    	if err != nil {
    		t.Fatalf("error creating Signer: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. pkg/test/csrctrl/controllers/start_csrctrl.go

    	arrSigners := strings.Split(signerNames, ",")
    	signersMap := make(map[string]*signer.Signer, len(arrSigners))
    	var rootCertSignerArr []SignerRootCert
    	for _, signerName := range arrSigners {
    		signer, err := signer.NewSigner(signerRoot, signerName, certificateDuration)
    		if err != nil {
    			return nil, fmt.Errorf("unable to start signer for %q: %v", signerName, err)
    		}
    		signersMap[signerName] = signer
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 09 02:22:47 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. pkg/test/csrctrl/signer/signer.go

    	"istio.io/istio/pkg/test/csrctrl/authority"
    	"istio.io/istio/security/pkg/pki/util"
    )
    
    type Signer struct {
    	caProvider *caProvider
    	CertTTL    time.Duration
    }
    
    func NewSigner(signerRoot, signerName string, certificateDuration time.Duration) (*Signer, error) {
    	caProvider, err := newCAProvider(signerRoot, signerName)
    	if err != nil {
    		return nil, err
    	}
    
    	ret := &Signer{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 03 18:57:19 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  4. cmd/kube-controller-manager/app/bootstrap.go

    		isDisabledByDefault: true,
    	}
    }
    func startBootstrapSignerController(ctx context.Context, controllerContext ControllerContext, controllerName string) (controller.Interface, bool, error) {
    	bsc, err := bootstrap.NewSigner(
    		controllerContext.ClientBuilder.ClientOrDie("bootstrap-signer"),
    		controllerContext.InformerFactory.Core().V1().Secrets(),
    		controllerContext.InformerFactory.Core().V1().ConfigMaps(),
    		bootstrap.DefaultSignerOptions(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 11:28:02 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. pkg/test/csrctrl/controllers/csr_controller.go

    type Signer struct {
    	csrs    kclient.Client[*certv1.CertificateSigningRequest]
    	signers map[string]*signer.Signer
    	queue   controllers.Queue
    }
    
    func NewSigner(cl kube.Client, signers map[string]*signer.Signer) *Signer {
    	c := &Signer{
    		csrs:    kclient.New[*certv1.CertificateSigningRequest](cl),
    		signers: signers,
    	}
    	c.queue = controllers.NewQueue("csr",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. pkg/controller/bootstrap/bootstrapsigner.go

    	secretLister corelisters.SecretLister
    	secretSynced cache.InformerSynced
    
    	configMapLister corelisters.ConfigMapLister
    	configMapSynced cache.InformerSynced
    }
    
    // NewSigner returns a new *Signer.
    func NewSigner(cl clientset.Interface, secrets informers.SecretInformer, configMaps informers.ConfigMapInformer, options SignerOptions) (*Signer, error) {
    	e := &Signer{
    		client:             cl,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/mod/sumdb/test.go

    	defer s.mu.Unlock()
    
    	size := int64(len(s.records))
    	h, err := tlog.TreeHash(size, s.hashes)
    	if err != nil {
    		return nil, err
    	}
    	text := tlog.FormatTree(tlog.Tree{N: size, Hash: h})
    	signer, err := note.NewSigner(s.signer)
    	if err != nil {
    		return nil, err
    	}
    	return note.Sign(&note.Note{Text: string(text)}, signer)
    }
    
    func (s *TestServer) ReadRecords(ctx context.Context, id, n int64) ([][]byte, error) {
    	s.mu.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. security/pkg/server/ca/authenticate/oidc_test.go

    				t.Errorf("%v: unexpected caller (want %v but got %v)", name, expectedCaller, actualCaller)
    			}
    		})
    	}
    }
    
    func generateJWT(key *jose.JSONWebKey, claims []byte) (string, error) {
    	signer, err := jose.NewSigner(jose.SigningKey{
    		Algorithm: jose.SignatureAlgorithm(key.Algorithm),
    		Key:       key,
    	}, nil)
    	if err != nil {
    		return "", fmt.Errorf("failed to create a signer: %v", err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top