Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsHTTPSServerWithTLSTermination (0.6 sec)

  1. pkg/config/gateway/gateway.go

    	// to filter out https redirect
    	if server.Tls != nil && !protocol.Parse(server.Port.Protocol).IsHTTP() {
    		return true
    	}
    	return false
    }
    
    // IsHTTPSServerWithTLSTermination returns true if the server is HTTPS with TLS termination
    func IsHTTPSServerWithTLSTermination(server *v1alpha3.Server) bool {
    	if server.Tls != nil {
    		p := protocol.Parse(server.Port.Protocol)
    		if p == protocol.HTTPS && !IsPassThroughServer(server) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:13:01 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. pkg/config/gateway/gateway_test.go

    			},
    			expected: true,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := IsHTTPSServerWithTLSTermination(tc.server)
    			if actual != tc.expected {
    				t.Errorf("IsHTTPServer(%s) => %t, want %t",
    					tc.server, actual, tc.expected)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 26 05:53:25 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/gateway.go

    		//   or HTTPS servers using passthrough TLS
    		// This process typically yields multiple filter chain matches (with SNI) [if TLS is used]
    		for _, server := range serversForPort.Servers {
    			if gateway.IsHTTPSServerWithTLSTermination(server) {
    				routeName := mergedGateway.TLSServerInfo[server].RouteName
    				// This is a HTTPS server, where we are doing TLS termination. Build a http connection manager with TLS context
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 46.4K bytes
    - Viewed (0)
Back to top