Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for sniHosts (0.34 sec)

  1. pilot/pkg/networking/core/tls.go

    			sniHosts = []string{string(service.Hostname)}
    			for _, a := range service.Attributes.Aliases {
    				alt := GenerateAltVirtualHosts(a.Hostname.String(), 0, node.DNSDomain)
    				sniHosts = append(sniHosts, a.Hostname.String())
    				sniHosts = append(sniHosts, alt...)
    			}
    		}
    		destinationRule := CastDestinationRule(node.SidecarScope.DestinationRule(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. pilot/pkg/config/kube/gateway/testdata/tls.yaml.golden

      namespace: default
    spec:
      gateways:
      - istio-system/gateway-istio-autogenerated-k8s-gateway-passthrough
      hosts:
      - foo.com
      tls:
      - match:
        - sniHosts:
          - foo.com
        route:
        - destination:
            host: httpbin-foo.default.svc.domain.suffix
            port:
              number: 443
    ---
    apiVersion: networking.istio.io/v1alpha3
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 01 20:54:36 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. pilot/pkg/config/kube/gateway/testdata/serviceentry.yaml.golden

      creationTimestamp: null
      name: egress-tls-0-istio-autogenerated-k8s-gateway
      namespace: default
    spec:
      gateways:
      - mesh
      hosts:
      - google.com
      tls:
      - match:
        - sniHosts:
          - google.com
        route:
        - destination:
            host: google.com
            port:
              number: 443
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 19 18:39:48 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/gateway.go

    		// and that no two non-HTTPS servers can be on same port or share port names.
    		// Validation is done per gateway and also during merging
    		sniHosts:   node.MergedGateway.TLSServerInfo[server].SNIHosts,
    		tlsContext: buildGatewayListenerTLSContext(push.Mesh, server, node, transportProtocol),
    		httpOpts: &httpListenerOpts{
    			rds:                       routeName,
    			useRemoteAddress:          true,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/listener.go

    	}
    	if len(chain.sniHosts) > 0 {
    		fullWildcardFound := false
    		for _, h := range chain.sniHosts {
    			if h == "*" {
    				fullWildcardFound = true
    				// If we have a host with *, it effectively means match anything, i.e.
    				// no SNI based matching for this host.
    				break
    			}
    		}
    		if !fullWildcardFound {
    			chain.sniHosts = append([]string{}, chain.sniHosts...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. pilot/pkg/model/gateway.go

    	}
    	// sanitize the server hosts as it could contain hosts of form ns/host
    	sniHosts := sets.String{}
    	for _, h := range server.Hosts {
    		if strings.Contains(h, "/") {
    			parts := strings.Split(h, "/")
    			h = parts[1]
    		}
    		// do not add hosts, that have already been added
    		sniHosts.Insert(h)
    	}
    	return sets.SortedList(sniHosts)
    }
    
    // CheckDuplicates returns all of the hosts provided that are already known
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 26K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/gateway_test.go

    				t.Errorf("expecting httpopts:\n %+v \nbut got:\n %+v", tc.result.httpOpts, ret.httpOpts)
    			}
    			if !reflect.DeepEqual(tc.result.sniHosts, ret.sniHosts) {
    				t.Errorf("expecting snihosts %+v but got %+v", tc.result.sniHosts, ret.sniHosts)
    			}
    		})
    	}
    }
    
    func TestGatewayHTTPRouteConfig(t *testing.T) {
    	httpRedirectGateway := config.Config{
    		Meta: config.Meta{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 144K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/serviceentry_simulation_test.go

        protocol: TCP
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: vs1
    spec:
      hosts:
      - blah.somedomain
      tls:
      - match:
        - port: 9999
          sniHosts:
          - blah.somedomain
        route:
        - destination:
            host: blah.somedomain
            port:
              number: 9999`
    
    func TestServiceEntry(t *testing.T) {
    	cases := []simulationTest{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 21:06:06 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/conversion.go

    	for _, r := range routes {
    		if len(r.Match) == 1 && len(r.Match[0].SniHosts) > 1 {
    			r = r.DeepCopy()
    			sniHosts := []string{}
    			for _, h := range r.Match[0].SniHosts {
    				if host.Name(parentHost).Matches(host.Name(h)) {
    					sniHosts = append(sniHosts, h)
    				}
    			}
    			r.Match[0].SniHosts = sniHosts
    		}
    		res = append(res, r)
    	}
    	return res
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/gateway/testdata/mesh.yaml.golden

      creationTimestamp: null
      name: tls-tls-0-istio-autogenerated-k8s-gateway
      namespace: default
    spec:
      gateways:
      - mesh
      hosts:
      - echo-1.default.svc.domain.suffix
      tls:
      - match:
        - sniHosts:
          - echo-1.default.svc.domain.suffix
        route:
        - destination:
            host: echo.default.svc.domain.suffix
            port:
              number: 80
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 19 18:39:48 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top