I used the policy that's recommended in the Configuration seciont of README:
key "consul-alerts" {
policy = "write"
}
service "" {
policy = "read"
}
event "" {
policy = "read"
}
session "" {
policy = "write"
}
But that resulted in errors like these from consul-alerts:
[ERROR] watch.watch: Watch errored: type=checks error="Unexpected response code: 403 (rpc error making call: ACL not found)" retry=3m0s
And these on the Consul agent side:
[ERROR] agent.http: Request error: method=PUT url=/v1/session/create?dc=he-eu-hel1&token=<hidden> from=127.0.0.1:60866 error="rpc error making call: Permission denied"
Changing the policy from session to session_prefix did fix that though:
service_prefix "" {
policy = "write"
}
Not sure what that's about, but maybe this helps someone.
I used the policy that's recommended in the Configuration seciont of README:
But that resulted in errors like these from
consul-alerts:And these on the Consul agent side:
Changing the policy from
sessiontosession_prefixdid fix that though:Not sure what that's about, but maybe this helps someone.