-
Notifications
You must be signed in to change notification settings - Fork 169
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 snowflake connections through proxy no longer work #21
Comments
dbt-labs/dbt-core#3695 had similar error |
Thanks for opening the issue @mosqueteiro, and for getting to the bottom of the change to proxy support in dbt v0.19 → v0.20—really, it sounds like this is a bug in Since dbt v0.20 supports any version of snowflake-connector-python Have you been able to install and pin an older version of snowflake-connector-python (e.g. v2.4.5) and confirm that the proxy is still working? Thanks also for opening the issue in the Snowflake connector: snowflakedb/snowflake-connector-python#865. I think we need clarity there before we should proceed with a solution on dbt-snowflake's side. Based on what they've documented, it sounds like using the env vars is the recommended approach, rather than passing |
I have been able to pin the |
@jtcohen6 we've got similar issues with connecting using a proxy. we actually found that (for our case) it was best for us to directly use the
would you be opposed to a PR that adds this collection of parameters ( (Forgot to add this initially) |
@laxjesse I wouldn't be opposed. We have a "catch-all" method for just this purpose, to ferry auth-related arguments over to the Snowflake python connector: dbt-snowflake/dbt/adapters/snowflake/connections.py Lines 71 to 73 in c7c865b
Question: Do you provide |
makes sense! we do provide the standard args as well. |
Describe the bug
dbt
debug
,run
,test
, and any other commands that initiate a connection with the snowflake database are no longer able to utilize a proxy to make the connection.Steps To Reproduce
Need: Snowflake server that only accepts whitelisted IPs and proxy server whose IP is whitelisted for Snowflake
server; environment variables set for HTTP_PROXY, HTTPS_PROXY; dbt profile for snowflake connection to database;
snowflake-connector-python>=2.4.6
run
Expected behavior
dbt debug
runs detects environment variables for proxy and sets up snowflake connection accordingly, outputsScreenshots and log output
dbt debug
output:System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
Ubuntu 20.04
Linux-5.10.47-linuxkit-x86_64-with-debian-bullseye-sid
The output of
python --version
:Python 3.7.11
Additional context
There is a bug with
snowflake-connector-python>=2.4.6
where it is no longer able to use the environment variablesHTTP_PROXY
andHTTPS_PROXY
meaning connections that require a proxy with dbt no longer work. TheSnowflakeConnection
class has parameters to pass proxy settings into it. Utilizing these parameters dbt profiles of the snowflake type could include parameters to define the proxy and side-step this issue.The text was updated successfully, but these errors were encountered: