'Fetch and Read secrets to vault using python hvac

Hello I have just tried using this code but still getting error. Any idea how to solve this?

I have referred similar post also but it is not working.

import hvac
client = hvac.Client(url='https://vault.xyz.com:1100/ui')
response = client.secrets.kv.v2.read_secret_version(path='/secrets/secret/show/ab/ss/dd')

Error-

raise_for_error raise exceptions.Forbidden(message, errors=errors, method=method, url=url) hvac.exceptions.Forbidden: 1 error occurred: * permission denied


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source