Objective of program : To fetch hashicorp vault data and establish connection
Tech : Python 3.7.3, Hvac library
Error : Program fails when trying to authenticate using client.auth.approle.login of hvac
Sudo code :
import hvac
client = hvac.Client(url='myurl',namespace='xyz',verify=false)
client.auth.approle.login(role_id='',secret_id='')
print(client.is_authenticated())
read_response = client.secrets.kv.v2.read_secret_version(path='somepath')