403 permission denied errors while connecting to vault from k8s cluster

We have a vault running on one k8s cluster. Authentication is all good when tried to setup from k8s devops cluster to Vault.

But when setting up in Dev, we keep getting permission denied error

The same process

  1. Enabled k8s auth
  2. Installed vault agent helm chart
  3. Created vault secret and used that token to check if authentication works but not working.

(⎈$ curl \
 --request POST \
 --data '{"jwt": "<token>", "role": "test"}' \
    https://vault-green.devops.projectronin.io/v1/auth/k8s-dev-test/login
{"errors":["permission denied"]}
(⎈ $


* Mark bundle as not supporting multiuse
< HTTP/1.1 403 Forbidden
< Date: Thu, 16 Feb 2023 22:27:59 GMT
< Content-Type: application/json
< Content-Length: 33
< Connection: keep-alive
< Cache-Control: no-store
< Strict-Transport-Security: max-age=31536000; includeSubDomains

Can anyone please help where I am doing wrong?

Thanks