Deprecation warning for hvac read_secret_version
parameter in Hashicorp Vault client
#31347
Closed
2 tasks done
Labels
area:providers
good first issue
kind:task
A task that needs to be completed as part of a larger issue
provider:hashicorp
Hashicorp provider related issues
Apache Airflow version
2.6.1
What happened
If you're using the Hashicorp Vault as your secrets backend, any calls to the functions in
vault_client.py
results in warnings like below in logs:This is because of a breaking change in the vault client
hvac
package, specifically in theread_secret_version
function. A previously optional parameterraise_on_deleted_version
, is now defaults to False, and should be explicitly set to True for keeping the previous behavior.What you think should happen instead
There shouldn't be any deprecation warnings, parameter needs to be set explicitly.
How to reproduce
Setup hashicorp vault as the secrets backend
Run any airflow command that needs to access the secrets backend
Operating System
RHEL 8.5
Versions of Apache Airflow Providers
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: