I am getting the following error, when trying to deploy the nomad job. Is anyone know whats the issue and how can we solve the problem ? The issue has been started previous week. The vault version 1.10.4 , after downgrading to 1.10.0 the same issue is persists.
vault.read(kv/development/servicename): failed to check if kv/development/servicename is KVv2, assume not: Error making API request.
preflight capability check returned 403, please ensure client’s policies grant access to path “kv/development/servicename/”
2022-06-20T07:29:49.717Z [WARN] agent: (view) vault.read(kv/development/servicename): vault.read(kv/development/servicenamei): Error making API request.
The error is most likely a permission denied from Vault. Looks like the role you created and are authnting to that is trying to create your nomad token is missing a vault policy or the policy is misconfigured (missing the path to the secret you’re asking for).
Most likely “kv/development/servicename/” or possibly “kv/data/development/servicename/” if you’re using a KV v2 engine.