403 errors on running literally anything

Hi, I am using hashicorp’s hosted service. I am not using consul yet.
I have enabled the option to allow requests from outside the VPC.

I generated an admin token from the dashboard, Set VAULT_TOKEN and VAULT_ADDR fields.

When I run literally anything like,

  1. vault debug
  2. vault auth list
  3. vault kv list <kv-that-exists>

I get 403 errors like this.

Error listing enabled authentications: Error making API request.

URL: GET https://instadapp.vault.1592b418-2038-43e8-bf5a-0b50c0ea68e5.aws.hashicorp.cloud:8200/v1/sys/auth
Code: 403. Errors:

* 1 error occurred:
	* permission denied


~ # vault token create -wrap-ttl=1440m -field=wrapping_token
Error creating token: Error making API request.

URL: POST https://instadapp.vault.1592b418-2038-43e8-bf5a-0b50c0ea68e5.aws.hashicorp.cloud:8200/v1/auth/token/create
Code: 403. Errors:

* 1 error occurred:
	* permission denied


I searched in the github issues and there are literally 10-15 more or less similar issues

What do I need to do to fix this?

Are you setting the namespace variable (probably admin) as shown in “Connect to your Vault cluster”?

Hey, Thank you for responding.

That was the problem. I wasn’t setting VAULT_NAMESPACE.

1 Like