{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/1034","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/1034/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/1034/events","html_url":"https://github.com/hashicorp/consul/issues/1034","id":88445039,"number":1034,"title":"HTTP API does not work with tokens when registering services through the catalog","user":{"login":"jacobat","id":5836,"avatar_url":"https://avatars.githubusercontent.com/u/5836?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobat","html_url":"https://github.com/jacobat","followers_url":"https://api.github.com/users/jacobat/followers","following_url":"https://api.github.com/users/jacobat/following{/other_user}","gists_url":"https://api.github.com/users/jacobat/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobat/subscriptions","organizations_url":"https://api.github.com/users/jacobat/orgs","repos_url":"https://api.github.com/users/jacobat/repos","events_url":"https://api.github.com/users/jacobat/events{/privacy}","received_events_url":"https://api.github.com/users/jacobat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-15T14:36:43Z","updated_at":"2015-06-15T14:36:43Z","closed_at":null,"body":"I'm running a Consul server with ACL's enabled, defaulting to deny all access, and having a master token of \"secret\".\r\n\r\nI have an `agent_service.json` file:\r\n```json\r\n{\r\n  \"Address\": \"127.0.0.1\",\r\n  \"Name\": \"agent_service\"\r\n}\r\n```\r\nand I can use it to register a service through the HTTP API:\r\n```\r\ncurl -v -XPUT -d @agent_service.json http://192.168.51.2:8500/v1/agent/service/register?token=secret\r\n```\r\n\r\nI also have a `catalog_service.json` file:\r\n```json\r\n{\r\n  \"Node\": \"node0\",\r\n  \"Address\": \"192.168.0.1\",\r\n  \"Service\": {\r\n    \"Address\": \"127.0.0.1\",\r\n    \"Service\": \"catalog_service\"\r\n  }\r\n}\r\n```\r\nbut when I try to register it through the API:\r\n```\r\ncurl -XPUT -d @catalog_service.json http://192.168.51.2:8500/v1/catalog/register?token=secret\r\n```\r\nI get \"Permission denied\".\r\n\r\nLogs:\r\n```\r\n    2015/06/15 14:34:59 [INFO] agent: Synced service 'agent_service'\r\n    2015/06/15 14:35:11 [WARN] consul.catalog: Register of service 'catalog_service' on 'node0' denied due to ACLs\r\n    2015/06/15 14:35:11 [ERR] http: Request /v1/catalog/register?token=<hidden>, error: Permission denied\r\n```\r\n\r\nI'm thinking this may possibly be related to https://github.com/hashicorp/consul/pull/891."}}