Replies: 1 comment
-
Prefect communicates with the server (self hosted or cloud) over regular http requests and websockets. As of this PR, Prefect supports connecting over an http proxy for websocket communication as well. To enable communication over a proxy, set Note: Your proxy will likely need explicit configuration updates to allow websocket connections. See here for an example with squid. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note
This was originally posted elsewhere in Oct. 2022, but should generally apply as of this discussion's creation. feel free to comment here with any proposed updates
Proxies intermediate network requests between a server and a client. They are typically found in the locked down networks of large enterprises, and are useful in a variety of privacy and security contexts.
In order to communicate with Prefect Cloud, the Prefect client library makes HTTPS requests. These requests are made using the httpx and aiohttp libraries, both of which respect accepted proxy environment variables. Because of this, the Prefect client works with proxies. Simply set the
HTTPS_PROXY
andSSL_CERT_FILE
environment variables as appropriate and things should “just work.”Demonstration
In order to test that this was true, we set up two EC2 instances, both of which were running Ubuntu 22.04 LTS. The first instance was connected to the internet in a public subnet. The second instance was placed in a private subnet with no assigned IP address and thus had no internet connection.
On the first instance, we downloaded and set up mitmproxy,
Beta Was this translation helpful? Give feedback.
All reactions