Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbt deps returns an error related to SSL Cert verification when behind VPN #82

Open
jordanperr opened this issue Jun 13, 2023 · 0 comments

Comments

@jordanperr
Copy link

jordanperr commented Jun 13, 2023

When trying to build the entr_runtime image behind a corporate VPN, you will receive the following error:

External connection exception occurred: HTTPSConnectionPool(host='hub.getdbt.com', port=443): Max retries exceeded with url: /api/v1/index.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)')))

I have tried the following to fix this:

  1. Install our root cert in the docker image following guidelines from stack overflow.
USER root
ADD MyRootCA.crt /usr/local/share/ca-certificates/MyRootCA.crt
RUN chmod 644 /usr/local/share/ca-certificates/MyRootCA.crt && update-ca-certificates
  1. Set the environment variable REQUESTS_CA_BUNDLE to this cert:
REQUESTS_CA_BUNDLE=/usr/local/share/ca-certificates/MyRootCA.crt dbt deps

Possibly related to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant