Skip to content
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

inherit key "verify" from env into session so that kv_client can read it properly #38614

Merged
merged 14 commits into from
May 15, 2024
Merged
3 changes: 3 additions & 0 deletions airflow/providers/hashicorp/_internal_client/vault_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ def _client(self) -> hvac.Client:
session = Session()
session.mount("http://", adapter)
session.mount("https://", adapter)
if self.kwargs is not None and "verify" in self.kwargs:
if self.kwargs["verify"] is not None:
session.verify = self.kwargs["verify"]
self.kwargs["session"] = session

_client = hvac.Client(url=self.url, **self.kwargs)
Expand Down