How to resolve NotImplementedError for client.auth.approle.login of hvac

Viewed 29

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')
1 Answers

AppRole has been implemented on hvac starting from version 0.10.6. Try to install the latest version instead. At the time of this writing it's 0.11.2

Related