- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for IsPassThroughServer (0.22 sec)
-
pkg/config/gateway/gateway.go
if !features.EnableQUICListeners { return false } p := protocol.Parse(server.Port.Protocol) return p == protocol.HTTPS && !IsPassThroughServer(server) } // IsPassThroughServer returns true if this server does TLS passthrough (auto or manual) func IsPassThroughServer(server *v1alpha3.Server) bool { if server.Tls == nil { return false } if server.Tls.Mode == v1alpha3.ServerTLSSettings_PASSTHROUGH ||
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 12 17:13:01 UTC 2023 - 2.7K bytes - Viewed (0) -
pkg/config/gateway/gateway_test.go
}, expected: false, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { actual := IsPassThroughServer(tc.server) if actual != tc.expected { t.Errorf("IsPassThroughServer(%s) => %t, want %t", tc.server, actual, tc.expected) } }) } } func TestIsTCPServerWithTLSTermination(t *testing.T) { cases := []struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 26 05:53:25 UTC 2022 - 10.5K bytes - Viewed (0) -
pilot/pkg/networking/core/gateway.go
) *tls.DownstreamTlsContext { // Server.TLS cannot be nil or passthrough. But as a safety guard, return nil if server.Tls == nil || gateway.IsPassThroughServer(server) { return nil // We don't need to setup TLS context for passthrough mode } server.Tls.CipherSuites = security.FilterCipherSuites(server.Tls.CipherSuites)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 06 04:44:06 UTC 2024 - 46.4K bytes - Viewed (0) -
pilot/pkg/model/gateway.go
if server.Bind != "" { bind = "." + server.Bind } if p.IsHTTP() { return "http" + "." + strconv.Itoa(int(portNumber)) + bind // Format: http.%d.%s } if p == protocol.HTTPS && !gateway.IsPassThroughServer(server) { return "https" + "." + strconv.Itoa(int(server.Port.Number)) + "." + server.Port.Name + "." + cfg.Name + "." + cfg.Namespace + bind // Format: https.%d.%s.%s.%s.%s } return "" }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:37 UTC 2024 - 26K bytes - Viewed (0) -
pkg/config/validation/validation.go
} else if !p.IsTLS() && server.Tls != nil { // only tls redirect is allowed if this is a HTTP server if p.IsHTTP() { if !gateway.IsPassThroughServer(server) || server.Tls.CaCertificates != "" || server.Tls.PrivateKey != "" || server.Tls.ServerCertificate != "" { v = AppendValidation(v, fmt.Errorf("server cannot have TLS settings for plain text HTTP ports"))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0)