Facing the following error while trying to read the configuration property value from the consul agent. Unable to find the policy or role mapping.
rpc error making call: rpc error making call: Permission denied: token with AccessorID ‘00000000-0000-0000-0000-000000000002’ lacks permission ‘key:read’ on “config/WhatsApp/product.name”
1 Like
Hi @reach4csk,
You are getting this error as the request to read the KV doesn’t seem to be using a valid ACL token at all, and as a result, the agent is falling back to the anonymous token (AccessorID: 00000000-0000-0000-0000-000000000002
).
Please try with a valid ACL token. If you are using the API directly and not using the Consul binary/library, you can pass the token by referring to the following documentation: HTTP API | Consul by HashiCorp
If you are using Consul CLI or the official library, you can set the token SecretID in the CONSUL_HTTP_TOKEN
environment variable.