Skip to content

Support connection with Proxy in Databricks provider #32576

Closed

Description

@sravanscb

Apache Airflow version

2.6.3

What happened

Databricks connection is unable to query login.microsoftonline.com if using a proxy as there is no provision in databricks.py file to include proxy as part of requests.post command to include proxy in it.

What you think should happen instead

there is no provision in databricks.py file to include proxy as part of requests.post command to include proxy in it.

How to reproduce

Try reaching login.microsoftonline.com endpoint via proxy.
Tried providing proxy as part of extra in databricks connection
{
"azure_tenant_id": "xxxx",
"proxies": {
"http": "http://xxxx:443",
"https": "http://xxxx:443"
}
}
Error:
{databricks_base.py:434} INFO - Using AAD Token for SPN.
{databricks_base.py:223} INFO - Existing AAD token is expired, or going to expire soon. Refreshing...
{connectionpool.py:1003} DEBUG - Starting new HTTPS connection (1): login.microsoftonline.com:443
{databricks_base.py:469} ERROR - Attempt 1 API Request to Databricks failed with reason: <Future at 0x7f1954c4e280 state=finished raised ConnectTimeout>

Noticed that line 251 where the requests.post happens doesn't have this enabled.

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Other

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. boring-cyborg commented on Jul 13, 2023

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  2. changed the title [-]Proxy support needed[/-] [+]Support connection with Proxy in Databricks provider[/+] on Jul 13, 2023
  3. potiuk commented on Jul 13, 2023

    @potiuk
    Member

    cc: @alexott ?

  4. sravanscb commented on Nov 29, 2023

    @sravanscb
    Author

    Hi Team

    Is anyone looking into this?

  5. potiuk commented on Nov 29, 2023

    @potiuk
    Member

    Hi Team

    Is anyone looking into this?

    If no-one is assigned and actively doing here, there is no other source of information than this issue. It waits for someone to pick an interest - do I understand you want to get assigned and start working on it @sravanscb ? Shall I assign you?

  6. adnanhb commented on Aug 5, 2024

    @adnanhb

    @potiuk can you assign this issue to me? We need this feature urgently.

  7. potiuk commented on Aug 5, 2024

    @potiuk
    Member

    Surely - go ahead.

  8. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @adnanhb We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  9. eladkal commented on May 26, 2026

    @eladkal
    Contributor

    cc @mwojtyczka will you have time to look into this report?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions