Python3 using HVAC with “approle” authentication to pull secret from Hashivault #748
-
Need some help please!!! I have working code to pull a secret out of Hashi using the Management token, but... I need to switch this around to use the "approle" type authentication and do not understand the authentication differences. My original code used something like this: def vault(KEY): Anyone have any code examples of using hvac with "approle"? I know how to do this in API (using Insomnia) but struggling with what hvac expects... and where... Thanks!!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
First off I recommend doing a
just to make sure that your token is working. Mostly from the docs....
|
Beta Was this translation helpful? Give feedback.
First off I recommend doing a
just to make sure that your token is working.
Second all the approle stuff I have seen you have the role-id and use that to request the secret-id (if you don't have it and have secret_bound_cidr on the role) then authenticate with role-id, secret-id
Mostly from the docs....