Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for keyFiles (0.14 sec)

  1. platforms/software/security/src/testFixtures/groovy/org/gradle/security/fixtures/KeyServer.groovy

            def keyFile = baseDirectory.createFile("${longKeyId}.asc")
            keyFile.deleteOnExit()
            keyFile.newOutputStream().withCloseable { out ->
                new ArmoredOutputStream(out).withCloseable {
                    key.encode(it)
                }
            }
            registerKey(longKeyId, keyFile)
            registerKey(fingerprint, keyFile)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. pkg/kubeapiserver/authenticator/config.go

    func newLegacyServiceAccountAuthenticator(keyfiles []string, lookup bool, apiAudiences authenticator.Audiences, serviceAccountGetter serviceaccount.ServiceAccountTokenGetter, secretsWriter typedv1core.SecretsGetter) (authenticator.Token, error) {
    	allPublicKeys := []interface{}{}
    	for _, keyfile := range keyfiles {
    		publicKeys, err := keyutil.PublicKeysFromFile(keyfile)
    		if err != nil {
    			return nil, err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. pkg/kubeapiserver/options/authentication_test.go

    				ClientID:           "testClientID",
    				areFlagsConfigured: func() bool { return true },
    			},
    			testSA: &ServiceAccountAuthenticationOptions{
    				Issuers:  []string{"http://foo.bar.com"},
    				KeyFiles: []string{"testkeyfile1", "testkeyfile2"},
    			},
    		},
    		{
    			name: "test when OIDC is invalid",
    			testOIDC: &OIDCAuthenticationOptions{
    				UsernameClaim:      "sub",
    				SigningAlgs:        []string{"RS256"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  4. pkg/kubeapiserver/options/authentication.go

    		}
    	}
    
    	if o.RequestHeader != nil {
    		o.RequestHeader.AddFlags(fs)
    	}
    
    	if o.ServiceAccounts != nil {
    		fs.StringArrayVar(&o.ServiceAccounts.KeyFiles, "service-account-key-file", o.ServiceAccounts.KeyFiles, ""+
    			"File containing PEM-encoded x509 RSA or ECDSA private or public keys, used to verify "+
    			"ServiceAccount tokens. The specified file can contain multiple keys, and the flag can "+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 22:40:22 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  5. pkg/controlplane/apiserver/options/options.go

    		if len(completed.Authentication.ServiceAccounts.KeyFiles) == 0 && completed.SecureServing.ServerCert.CertKey.KeyFile != "" {
    			if kubeauthenticator.IsValidServiceAccountKeyFile(completed.SecureServing.ServerCert.CertKey.KeyFile) {
    				completed.Authentication.ServiceAccounts.KeyFiles = []string{completed.SecureServing.ServerCert.CertKey.KeyFile}
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. pkg/controlplane/apiserver/config.go

    	)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to apply admission: %w", err)
    	}
    
    	// Load and set the public keys.
    	var pubKeys []interface{}
    	for _, f := range opts.Authentication.ServiceAccounts.KeyFiles {
    		keys, err := keyutil.PublicKeysFromFile(f)
    		if err != nil {
    			return nil, nil, fmt.Errorf("failed to parse key file %q: %w", f, err)
    		}
    		pubKeys = append(pubKeys, keys...)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  7. cmd/kube-apiserver/app/testing/testserver.go

    	if err != nil {
    		return result, fmt.Errorf("failed to wait for default namespace to be created: %v", err)
    	}
    
    	tlsInfo := transport.TLSInfo{
    		CertFile:      storageConfig.Transport.CertFile,
    		KeyFile:       storageConfig.Transport.KeyFile,
    		TrustedCAFile: storageConfig.Transport.TrustedCAFile,
    	}
    	tlsConfig, err := tlsInfo.ClientConfig()
    	if err != nil {
    		return result, err
    	}
    	etcdConfig := clientv3.Config{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. pkg/test/cert/cert.go

    import (
    	"fmt"
    	"os/exec"
    )
    
    // GenerateKey and writes output to keyFile.
    func GenerateKey(keyFile string) error {
    	return openssl("genrsa", "-out", keyFile, "1024")
    }
    
    // GenerateCSR and writes output to csrFile.
    func GenerateCSR(confFile, keyFile, csrFile string) error {
    	return openssl("req", "-new",
    		"-config", confFile,
    		"-key", keyFile,
    		"-out", csrFile)
    }
    
    // GenerateCert and writes output to certFile.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 22 14:18:21 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/tls_test.go

    	codec := apitesting.TestCodec(codecs, examplev1.SchemeGroupVersion)
    
    	certFile, keyFile, caFile := configureTLSCerts(t)
    	defer os.RemoveAll(filepath.Dir(certFile))
    
    	// override server config to be TLS-enabled
    	etcdConfig := testserver.NewTestConfig(t)
    	etcdConfig.ClientTLSInfo = transport.TLSInfo{
    		CertFile:      certFile,
    		KeyFile:       keyFile,
    		TrustedCAFile: caFile,
    	}
    	for i := range etcdConfig.ListenClientUrls {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. pkg/test/cert/ca/intermediate.go

    // IntermediateCA is an intermediate CA for a single cluster.
    type Intermediate struct {
    	KeyFile  string
    	ConfFile string
    	CSRFile  string
    	CertFile string
    	Root     Root
    }
    
    // NewIntermediate creates a new intermediate CA for the given cluster.
    func NewIntermediate(workDir, config string, root Root) (Intermediate, error) {
    	ca := Intermediate{
    		KeyFile:  filepath.Join(workDir, "ca-key.pem"),
    		ConfFile: filepath.Join(workDir, "ca.conf"),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 3.9K bytes
    - Viewed (0)
Back to top