Skip to content

Incorrect policy given in README #284

@jakubgs

Description

@jakubgs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions