libopenstorage / secrets

Openstorage support for Key Management Systems
Apache License 2.0
16 stars 16 forks source link

vault: update authentication func #53

Closed saheienko closed 3 years ago

saheienko commented 3 years ago

Signed-off-by: Serhii Aheienko serhii.aheienko@gmail.com

What this PR does / why we need it For now if both VAULT_TOKEN and VAULT_AUTH_METHOD parameters are provided, the last is used. Change it to the VAULT_TOKEN with this change.

Which issue(s) this PR fixes (optional) Closes #

Special notes for your reviewer:

adityadani commented 3 years ago

@leseb This client tries to mimic vault client's (CLI) behavior, which gives VAULT_TOKEN the highest preference over any other vault auth methods.