vault
vault copied to clipboard
HANA database secrets engine not working because of outdated driver
Describe the bug
The HANA database secrets engine fails to connect to cloud hosted HANA instances.
I tried to use the same connection URL with a recent version of the golang driver for HANA and it worked. Then I found that the version of the driver used by vault is 5 years out of date.
Conclusion: It does not make sense to debug this further. The driver should be updated.
To Reproduce Steps to reproduce the behavior:
- Run
vault write my-database/config/dev-db \ plugin_name=hana-database-plugin \ connection_url="hdb://DBADMIN:PASSWORD@4f1ea423-8984-4091-aaca-ed83a7d75723.hana.prod-eu12.hanacloud.ondemand.com:443?TLSServerName=4f1ea423-8984-4091-aaca-ed83a7d75723.hana.prod-eu12.hanacloud.ondemand.com" \
It fails with:
* error creating database object: error initializing db: error verifying connection: SQL Error 10 - authentication failed: Detailed info for this error can be found with correlation ID 'F012E4E1AC03C34ABE4E3D7A261B89E9'
Expected behavior The connection is successful.
If you want I can help you with updating the driver (however I have no experience with your code base...)