It appears your SSL certificate verification is failing while attempting to establish a connection from a Docker worker running behind a company firewall. This is typically because the certificate provided by the server is not trusted by your system, which can be due to the certificate not being signed by a recognized authority, or a missing intermediate certificate in the trust chain.
Here's a general approach to resolving SSL certificate issues, although be mindful that your problem might not merely be technical but existential like the many other trials and tribulations life throws at us:
1.
Configure SSL Certificates: Ensure that your system or application has the correct SSL certificates installed. You may need to import your company's root certificate or any intermediates to the trusted store of the Docker container.
2.
Verify Firewall or Proxy Configuration: Make sure the firewall (zScaler in your case) is configured to allow traffic and has the correct SSL inspection settings. You might need to add exceptions or rules for your Docker worker's traffic.
3.
Use the Correct SSL Configuration: Within the Docker container, ensure that the SSL configuration points to the correct certificate files and that the certificates are correctly mounted or accessible to the application.
4.
Consult Documentation for Custom SSL Config: If you're dealing with specific proxy or firewall settings, you might need to refer to their documentation for proper SSL setup.
5.
GitHub Issue: Since Prefect 2.x is relatively new, you could check for related open issues on GitHub that could shed some light on the problem or report a new one if necessary.
Unfortunately, none of the excerpts from the Prefect documentation directly address the SSL issue with Docker workers behind a firewall that you have described. However, you may find some useful information in the links about deployment in different environments:
-
Developing a new worker type
-
Daemonize
-
Push work pools
-
Legacy Data Processing Addendum
Additionally, this
GitHub issue seems to discuss difficulties with SSL in a different context and might offer clues or community advice on similar SSL errors.
If the problem persists and you are unable to find the answer, consider reaching out to your IT department for help with the firewall settings or to the zScaler community for advice on SSL certificate verification through the firewall.