Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for ServerName (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/webhook/authentication_test.go

    func TestAuthenticationDetection(t *testing.T) {
    	tests := []struct {
    		name       string
    		kubeconfig clientcmdapi.Config
    		serverName string
    		expected   rest.Config
    	}{
    		{
    			name:       "empty",
    			serverName: "foo.com",
    		},
    		{
    			name:       "fallback to current context",
    			serverName: "foo.com",
    			kubeconfig: clientcmdapi.Config{
    				AuthInfos: map[string]*clientcmdapi.AuthInfo{
    					"bar.com": {Token: "bar"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. pilot/pkg/grpc/tls.go

    	}
    
    	if host, _, err := net.SplitHostPort(opts.ServerAddress); err == nil {
    		config.ServerName = host
    	}
    	// For debugging on localhost (with port forward)
    	if strings.Contains(config.ServerName, "localhost") {
    		config.ServerName = "istiod.istio-system.svc"
    	}
    	if opts.SAN != "" {
    		config.ServerName = opts.SAN
    	}
    	// Compliance for all gRPC clients (e.g. Citadel)..
    	sec_model.EnforceGoCompliance(&config)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 22:11:02 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/proxy/dial_test.go

    		},
    		"secure with mismatched server": {
    			TLSConfig:   &tls.Config{InsecureSkipVerify: false, RootCAs: roots, ServerName: "bogus.com"},
    			ExpectError: "not bogus.com",
    		},
    		"secure with matched server": {
    			TLSConfig: &tls.Config{InsecureSkipVerify: false, RootCAs: roots, ServerName: "example.com"},
    		},
    
    		"insecure, custom dial": {
    			TLSConfig: &tls.Config{InsecureSkipVerify: true},
    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/options/serving_test.go

    			}
    
    			<-startedCh
    
    			// try to dial
    			addr := fmt.Sprintf("localhost:%d", secureOptions.BindPort)
    			t.Logf("Dialing %s as %q", addr, test.ServerName)
    			conn, err := tls.Dial("tcp", addr, &tls.Config{
    				RootCAs:    roots,
    				ServerName: test.ServerName, // used for SNI in the client HELLO packet
    			})
    			if err != nil {
    				t.Fatalf("failed to connect: %v", err)
    			}
    			defer conn.Close()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 15:52:39 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. pkg/hbone/dialer.go

    	if config == nil {
    		config = &tls.Config{MinVersion: tls.VersionTLS12}
    	}
    	// If no ServerName is set, infer the ServerName
    	// from the hostname we're connecting to.
    	if config.ServerName == "" {
    		// Make a copy to avoid polluting argument or default.
    		c := config.Clone()
    		c.ServerName = hostname
    		config = c
    	}
    
    	conn := tls.Client(rawConn, config)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 15:56:41 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/proxy/dial.go

    				// tls.Handshake() requires ServerName or InsecureSkipVerify
    				tlsConfig = &tls.Config{
    					InsecureSkipVerify: true,
    				}
    			} else if len(tlsConfig.ServerName) == 0 && !tlsConfig.InsecureSkipVerify {
    				// tls.HandshakeContext() requires ServerName or InsecureSkipVerify
    				// infer the ServerName from the hostname we're connecting to.
    				inferredHost := dialAddr
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GroovyInteroperabilityIntegrationTest.kt

            withFile(
                "groovy.gradle",
                """
                class MyExtension {
                    String server = 'default'
    
                    def configureServerName(serverName) {
                        this.server = serverName
                    }
                }
    
                class MyPlugin implements Plugin<Project> {
                    void apply(project) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/webhook/client.go

    		cfg.NextProtos = []string{"http/1.1"}
    
    		serverName := cc.Service.Name + "." + cc.Service.Namespace + ".svc"
    
    		host := net.JoinHostPort(serverName, strconv.Itoa(int(port)))
    		cfg.Host = "https://" + host
    		cfg.APIPath = cc.Service.Path
    		// Set the server name if not already set
    		if len(cfg.TLSClientConfig.ServerName) == 0 {
    			cfg.TLSClientConfig.ServerName = serverName
    		}
    
    		delegateDialer := cfg.Dial
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 09:09:10 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. pkg/test/echo/cmd/client/main.go

    	rootCmd.PersistentFlags().StringSliceVarP(&alpn, "alpn", "", nil, "alpn to set")
    	rootCmd.PersistentFlags().StringVarP(&serverName, "server-name", "", serverName, "server name to set")
    
    	rootCmd.PersistentFlags().StringVar(&hboneAddress, "hbone", "", "address to send HBONE request to")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_client.go

    func (c *Conn) makeClientHello() (*clientHelloMsg, *keySharePrivateKeys, *echContext, error) {
    	config := c.config
    	if len(config.ServerName) == 0 && !config.InsecureSkipVerify {
    		return nil, nil, nil, errors.New("tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config")
    	}
    
    	nextProtosLength := 0
    	for _, proto := range config.NextProtos {
    		if l := len(proto); l == 0 || l > 255 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 38.6K bytes
    - Viewed (0)
Back to top