Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied with consul 1.4.2 #253

Open
fuero opened this issue Feb 21, 2019 · 2 comments
Open

Permission denied with consul 1.4.2 #253

fuero opened this issue Feb 21, 2019 · 2 comments

Comments

@fuero
Copy link

fuero commented Feb 21, 2019

Just tried consul-alerts with consul 1.4.2, it dies with (output from consul monitor):

[ERR] http: Request GET /v1/session/create?dc=dc1&token=, error: method GET not allowed from=x.x.x.x
[ERR] http: Request GET /v1/agent/self?dc=dc1, error: Permission denied from=

According to the docs, it's supposed to be a PUT request instead of GET for the session API and the agent API doesn't accept parameters.

For completion's sake, here's the policy I used:

{
  "node_prefix": {
    "": {
      "policy": "write"
    }
  },
  "service_prefix": {
    "": {
      "policy": "read"
    }
  },
  "key_prefix": {
    "consul-alerts": {
      "policy": "write"
    }
  },
  "agent_prefix": {
    "": {
      "policy": "write"
    }
  },
  "session_prefix": {
    "": {
      "policy": "write"
    }
  },
  "event_prefix": {
    "": {
      "policy": "read"
    }
  }
}
@far-blue
Copy link

Anyone got a fix for this? I'm seeing the same problem with consul 1.5.1.

I'm using the following ACL policy:

key_prefix "consul-alerts/" {
  policy = "write"
}

service_prefix "" {
  policy = "read"
}

session_prefix "" {
  policy = "write"
}

agent_prefix "" {
    policy = "read"
}

And I'm seeing:
[ERR] http: Request GET /v1/agent/self?dc=argosy, error: Permission denied

@far-blue
Copy link

This is related to #270 and is due to an old Consul API dep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants