Why is the hvac.Client() returning a <class 'requests.models.Response'> instead of a dictionary (vault secret and value)?

Viewed 29

I have written a very simple python code to get the password from Vault:

client = hvac.Client(
    url=<url>,
    token=<token>,
    verify=False
)


response = client.secrets.kv.read_secret_version(path='app')

print("Is client authenticated: {}".format(client.is_authenticated()))

print(response)
print(type(response))

However, the scripts returns a class:

<Response [200]>
<class 'requests.models.Response'>

Anyone knows why this is happening?

0 Answers
Related