Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HashiCorp Vault Error 403 Permission denied

Im new to HashiCorp Vault and im Doing the tutorials one by one by far i have cleared installing vault and setting up the server.. I even learnt to create a secret, no problems. Im facing an issue in secret engines.. When i type the command "vault secrets enable -path=kv kv" im getting an error saying "Error enabling: Error making API request.

URL: POST http://127.0.0.1:8200/v1/sys/mounts/kv Code: 403. Errors:

  • permission denied" Can anyone pls help me..
like image 211
MadMorphine Avatar asked Nov 08 '25 01:11

MadMorphine


1 Answers

Vault denies access to its API endpoints by default. In order to use /sys/mounts/kv, you'll need to supply the X-Vault-Token header to your HTTP request, and that token must have sufficient permissions at the sys/mounts/kv path.

https://www.vaultproject.io/api-docs/system/mounts#enable-secrets-engine

like image 139
paladin-devops Avatar answered Nov 09 '25 19:11

paladin-devops



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!