Draft: hardening(proxy): check port against relay pattern
- Sep 02, 2024
-
-
WofWca authored
So that the broker cannot tell the proxy to connect to arbitrary ports of the Snowflake server machine. This is a breaking change for proxy users who set `allowed-relay-hostname-pattern` explicitly, because we renamed that parameter name in this commit. For library users this is not breaking. This does not affect the current production setup of Snowflake. This is especially useful when `AllowedRelayHostPattern` is lax, i.e. when the proxy is able to connect to arbitrary (or more or less arbitrary) hosts. See [Dedicated Snowflake server port as a way to tell if host allows Snowflake connections](#40166)
-