-
Notifications
You must be signed in to change notification settings - Fork 20
[Bug] Environment variable NO_PROXY is not honored when using thin client #168
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
Comments
The fix is for users to provide http proxy details in dbt HTTP PROXY environment variables are ignored. Below is an example how you can pass the http proxy details outputs:
dev:
type: oracle
user: "{{ env_var('DBT_ORACLE_USER') }}"
pass: "{{ env_var('DBT_ORACLE_PASSWORD') }}"
..
https_proxy: "www-proxy.com"
https_proxy_port: 80 The main reason to do this is because, I don't see |
Thanks for looking into this! This proposed breaking change is fine for me and my company's use case, but maybe other people are using the variables to connect to the database?
Why the I understand you'r decision to not make some extra logic as proposed on slack. But feel free to reach out if you want me to make a draft of a working proposal based on the slack discussion. I would be happy to work in it. Either way, we are happy as long as it's fixed. :) |
Thank you, I remember our discussion on Slack. For now, we decided for a simpler change to fix this. If someone complains about a breaking change we can release a patch with your proposed solution of We just need test all cases for no_proxy=example.com
no_proxy=anotherdomain,com,localhost,example.com,*.example.com
no_proxy=*
no_proxy=192.168.1.1,10.0.0.0/8 Weighing in all these factors, for now, we went ahead with a simpler solution but let's see :) |
Yeah, |
Is there an existing issue for this?
Current Behavior
The https proxy specified in the environment variable HTTPS_PROXY is used regardless of DNS specified in the environment variable NO_PROXY when using thin client. Thick (CX) client is honoring the NO_PROXY variable.
This behavior results in not being able to connect to databases on our local network.
Expected Behavior
When running thin client, the https proxy should not be used if the dns is listed in the environment variable NO_PROXY.
Steps To Reproduce
Example for posix-shell
Relevant log output using
--debug
flag enabled10:32:10 dbt was unable to connect to the specified database. The database returned the following error: >Database Error DPY-6005: cannot connect to database (CONNECTION_ID=dbt-oracle-1.9.2-caot9iNuzx7+XxJViaAdSA==). DPY-2029: https_proxy requires use of the tcps protocol
Environment
What Oracle database version are you using dbt with?
Not relevant
Additional Context
A workaround is to unset the HTTPS_PROXY variable when we are connecting to a local database or use thick client.
This issue have been discussed before on slack with a proposed solution, ref: https://getdbt.slack.com/archives/C01PWH4TXLY/p1683206320243519
The text was updated successfully, but these errors were encountered: