Error enabling: Error making API request |Code: 403. Errors: | * permission denied

Hello Team,

I installed Vault, My Vault status is clean, I added a new secret engine with kv path as per the instruction and tryign the following command “vault secrets enable -path=kv kv” but i get the below error

Key Value


Seal Type shamir
Initialized true
Sealed false
Total Shares 4
Threshold 3
Version 1.12.2
Build Date 2022-11-23T12:53:46Z
Storage Type file
Cluster Name vault-cluster-fb4de54c
Cluster ID 059b1ebd-d810-e951-63ec-9074023fe6c9
HA Enabled false
You have new mail in /var/mail/root

root@usatl-corp-test-hpcc:/home/nvelumani# vault secrets enable -path=kv kv
Error enabling: Error making API request.

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

  • permission denied

This is a perfectly ordinary permission denied response from Vault telling you that you don’t have permission to do that.

Make sure you are actually logged in to Vault as an identity which should have permission to do that operation.