Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for TLSConfig (0.38 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig.go

    	if uncastObj == nil {
    		return nil, errors.New("dynamiccertificates: configuration not ready")
    	}
    	tlsConfig, ok := uncastObj.(*tls.Config)
    	if !ok {
    		return nil, errors.New("dynamiccertificates: unexpected config type")
    	}
    
    	tlsConfigCopy := tlsConfig.Clone()
    
    	// if the client set SNI information, just use our "normal" SNI flow
    	if len(clientHello.ServerName) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/invalid/gateway/tlsconfig-tcp.yaml

    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: Gateway
    metadata:
      name: tlsconfig-tcp
    spec:
      gatewayClassName: acme-lb
      listeners:
      - name: example
        protocol: TCP
        port: 443
        tls:
          certificateRefs:
          - kind: Secret
            group: ""
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 296 bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/proxy/dial_test.go

    	testcases := map[string]struct {
    		TLSConfig   *tls.Config
    		Dial        utilnet.DialFunc
    		ExpectError string
    		ExpectProto string
    	}{
    		"insecure": {
    			TLSConfig: &tls.Config{InsecureSkipVerify: true},
    		},
    		"secure, no roots": {
    			TLSConfig:   &tls.Config{InsecureSkipVerify: false},
    			ExpectError: "unknown authority|not trusted",
    		},
    		"secure with roots": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/secure_serving.go

    	if s.Listener == nil {
    		return nil, nil, fmt.Errorf("listener must not be nil")
    	}
    
    	tlsConfig, err := s.tlsConfig(stopCh)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	secureServer := &http.Server{
    		Addr:           s.Listener.Addr().String(),
    		Handler:        handler,
    		MaxHeaderBytes: 1 << 20,
    		TLSConfig:      tlsConfig,
    
    		IdleTimeout:       90 * time.Second, // matches http.DefaultTransport keep-alive timeout
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 20:54:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. pkg/kube/spdy.go

    	// Get the TLS config.
    	tlsConfig, err := rest.TLSConfigFor(restConfig)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed getting TLS config: %w", err)
    	}
    	if tlsConfig == nil && restConfig.Transport != nil {
    		// If using a custom transport, skip server verification on the upgrade.
    		// nolint: gosec
    		tlsConfig = &tls.Config{
    			InsecureSkipVerify: true,
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 21:30:37 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. test/fixedbugs/issue25727.go

    var _ = s.DoneChan                  // ERROR "s.DoneChan undefined .type http.Server has no field or method DoneChan.$|undefined field or method"
    var _ = http.Server{tlsConfig: nil} // ERROR "cannot refer to unexported field tlsConfig in struct literal|unknown field .?tlsConfig.? in .?http.Server|unknown field"
    var _ = http.Server{DoneChan: nil}  // ERROR "unknown field DoneChan in struct literal of type http.Server$|unknown field .?DoneChan.? in .?http.Server"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/proxy/dial.go

    			if supportsHTTP11(tlsConfig.NextProtos) {
    				tlsConfig = tlsConfig.Clone()
    				tlsConfig.NextProtos = []string{"http/1.1"}
    			}
    
    			tlsConn := tls.Client(netConn, tlsConfig)
    			if err := tlsConn.HandshakeContext(ctx); err != nil {
    				netConn.Close()
    				return nil, err
    			}
    			return tlsConn, nil
    		} else {
    			// Dial.
    			tlsDialer := tls.Dialer{
    				Config: tlsConfig,
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/egressselector/config.go

    	}
    	return allErrs
    }
    
    func validateTLSConfig(tlsConfig *apiserver.TLSConfig, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    
    	if tlsConfig == nil {
    		allErrs = append(allErrs, field.Required(
    			fldPath.Child("tlsConfig"),
    			"TLSConfig must be present when using HTTPS"))
    		return allErrs
    	}
    	if tlsConfig.CABundle != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  9. pkg/scheduler/extender.go

    	var cfg restclient.Config
    	if config.TLSConfig != nil {
    		cfg.TLSClientConfig.Insecure = config.TLSConfig.Insecure
    		cfg.TLSClientConfig.ServerName = config.TLSConfig.ServerName
    		cfg.TLSClientConfig.CertFile = config.TLSConfig.CertFile
    		cfg.TLSClientConfig.KeyFile = config.TLSConfig.KeyFile
    		cfg.TLSClientConfig.CAFile = config.TLSConfig.CAFile
    		cfg.TLSClientConfig.CertData = config.TLSConfig.CertData
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go

    	if err != nil {
    		return nil, err
    	}
    
    	tlsConfig := s.tlsConfig
    	switch {
    	case tlsConfig == nil:
    		tlsConfig = &tls.Config{ServerName: host}
    	case len(tlsConfig.ServerName) == 0:
    		tlsConfig = tlsConfig.Clone()
    		tlsConfig.ServerName = host
    	}
    
    	tlsConn := tls.Client(rwc, tlsConfig)
    
    	if err := tlsConn.HandshakeContext(ctx); err != nil {
    		tlsConn.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top