Skip to content

http_proxy and sslmode support#2

Merged
MT255026 merged 4 commits intorelease-branch-0.0.2from
http_proxy-and-sslmode
Feb 28, 2025
Merged

http_proxy and sslmode support#2
MT255026 merged 4 commits intorelease-branch-0.0.2from
http_proxy-and-sslmode

Conversation

@MT255026
Copy link
Collaborator

http_proxy and sslmode support

@MT255026 MT255026 requested a review from sc250072 February 25, 2025 05:21
if self.proxy_bypass_hosts is not None:
connection_params["proxy_bypass_hosts"] = self.proxy_bypass_hosts
if self.sslmode is not None:
connection_params["sslmode"] = self.sslmode
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mohan if you are specifying sslmode, there are two options verify-ca and verify-full. These requires ca file. for reference, please check https://github.com/Teradata/airflow/blob/d74dd4112ffb76b706b73f608305ef50fb16d7df/providers/teradata/src/airflow/providers/teradata/hooks/teradata.py#L177

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replied below

"browser",
"browser_tab_timeout",
"browser_timeout",
"http_proxy",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there no unit tests for these changes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add them

Comment on lines +136 to +151
if self.sslca is not None:
connection_params["sslca"] = self.sslca
if self.sslcapath is not None:
connection_params["sslcapath"] = self.sslcapath
if self.sslcrc is not None:
connection_params["sslcrc"] = self.sslcrc
if self.sslcipher is not None:
connection_params["sslcipher"] = self.sslcipher
if self.sslprotocol is not None:
connection_params["sslprotocol"] = self.sslprotocol
if self.slcrl is not None:
connection_params["slcrl"] = str(self.slcrl)
if self.sslocsp is not None:
connection_params["sslocsp"] = str(self.sslocsp)
if self.oidc_sslmode is not None:
connection_params["oidc_sslmode"] = self.oidc_sslmode
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, those are added here

@MT255026 MT255026 requested a review from sc250072 February 25, 2025 15:25
@MT255026 MT255026 merged commit 4c54097 into release-branch-0.0.2 Feb 28, 2025
1 check passed
@MT255026 MT255026 deleted the http_proxy-and-sslmode branch February 28, 2025 04:59
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

Successfully merging this pull request may close these issues.

2 participants