You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "mansfieldj3 (via GitHub)" <gi...@apache.org> on 2026/01/12 21:40:51 UTC

[PR] reformat add proxy support commit [airflow]

mansfieldj3 opened a new pull request, #60432:
URL: https://github.com/apache/airflow/pull/60432

   This change enables users to configure proxy settings directly in Snowflake connections via extra parameters instead of relying solely on system environment variables, providing better isolation and control.
   
   What changes:
   
   - Add proxy_host, proxy_port, proxy_user, and proxy_password fields to SnowflakeHook connection configuration
   - Proxy parameters are extracted from connection extras and passed to snowflake.connector.connect()
   - UI fields added for proxy configuration in connection form
   - Support for both modern field names and backcompat prefixes
   
   Why:
   
   - Enables team-specific proxy configurations without affecting system-wide settings
   - Prevents unintended proxy usage from environment variables
   - Provides more granular control over network routing per connection
   
   Tests:
   
   - test_get_conn_params_with_proxy_host_only
   - test_get_conn_params_with_proxy_host_and_port
   - test_get_conn_params_with_proxy_port_as_int
   - test_get_conn_params_with_proxy_full_config
   - test_get_conn_params_with_proxy_backcompat_prefix
   - test_get_conn_with_proxy_should_call_connect
   
   Closes: #59078 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reformat add proxy support commit [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #60432:
URL: https://github.com/apache/airflow/pull/60432#issuecomment-3775707168

   You should make sure if proxy_password is masked automaticall when logging connection - look at our secrets masker - I am not sure if "proxy_password" will be redacted automatically by password substring in the name, or whether you need to update the default fields to contain proxy_password or maybe implement partial match when masking values.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reformat add proxy support commit [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #60432:
URL: https://github.com/apache/airflow/pull/60432


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reformat add proxy support commit [airflow]

Posted by "mansfieldj3 (via GitHub)" <gi...@apache.org>.
mansfieldj3 commented on PR #60432:
URL: https://github.com/apache/airflow/pull/60432#issuecomment-3740953101

   New merge request should resolve previous static errors and issue with using conn_params = hook._get_conn_params not conn_params = hook._get_conn_params()


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reformat add proxy support commit [airflow]

Posted by "mansfieldj3 (via GitHub)" <gi...@apache.org>.
mansfieldj3 commented on PR #60432:
URL: https://github.com/apache/airflow/pull/60432#issuecomment-3746674554

   somehow managed to only delete one of two trailing spaces on line 439 :|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reformat add proxy support commit [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #60432:
URL: https://github.com/apache/airflow/pull/60432#issuecomment-3777250560

   > given how complex the logic is I'd rather play it safe and remove if not needed.
   
   Yeah


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reformat add proxy support commit [airflow]

Posted by "mansfieldj3 (via GitHub)" <gi...@apache.org>.
mansfieldj3 commented on PR #60432:
URL: https://github.com/apache/airflow/pull/60432#issuecomment-3746790217

   @potiuk can you review out this request when you get the chance? Reasonably simple change to add proxy support to the snowflake hook but if you have any suggestions let me know


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reformat add proxy support commit [airflow]

Posted by "mansfieldj3 (via GitHub)" <gi...@apache.org>.
mansfieldj3 commented on PR #60432:
URL: https://github.com/apache/airflow/pull/60432#issuecomment-3740615420

   Reformatting of previously merge which was closed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reformat add proxy support commit [airflow]

Posted by "mansfieldj3 (via GitHub)" <gi...@apache.org>.
mansfieldj3 commented on PR #60432:
URL: https://github.com/apache/airflow/pull/60432#issuecomment-3775922063

   I've added proxy_password to the default DEFAULT_SENSITIVE_FIELDS variables in secret masker, I *think* because it had both proxy and password in the name it probably would have been masked but given how complex the logic is I'd rather play it safe and remove if not needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reformat add proxy support commit [airflow]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on PR #60432:
URL: https://github.com/apache/airflow/pull/60432#issuecomment-3778454768

   Awesome work, congrats on your first merged pull request! You are invited to check our [Issue Tracker](https://github.com/apache/airflow/issues) for additional contributions.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org