{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/3099","labels_url":"https://api.github.com/repos/coreos/etcd/issues/3099/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/3099/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/3099/events","html_url":"https://github.com/coreos/etcd/issues/3099","id":93303381,"number":3099,"title":"Inconsistent 2.1.0 behavior for v2/security","user":{"login":"raoofmd","id":12846989,"avatar_url":"https://avatars.githubusercontent.com/u/12846989?v=3","gravatar_id":"","url":"https://api.github.com/users/raoofmd","html_url":"https://github.com/raoofmd","followers_url":"https://api.github.com/users/raoofmd/followers","following_url":"https://api.github.com/users/raoofmd/following{/other_user}","gists_url":"https://api.github.com/users/raoofmd/gists{/gist_id}","starred_url":"https://api.github.com/users/raoofmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raoofmd/subscriptions","organizations_url":"https://api.github.com/users/raoofmd/orgs","repos_url":"https://api.github.com/users/raoofmd/repos","events_url":"https://api.github.com/users/raoofmd/events{/privacy}","received_events_url":"https://api.github.com/users/raoofmd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/etcd/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/coreos/etcd/labels/etcdserver/api","name":"etcdserver/api","color":"ffffff"},{"url":"https://api.github.com/repos/coreos/etcd/labels/v2api","name":"v2api","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/coreos/etcd/milestones/19","html_url":"https://github.com/coreos/etcd/milestones/v2.1.0","labels_url":"https://api.github.com/repos/coreos/etcd/milestones/19/labels","id":1081381,"number":19,"title":"v2.1.0","description":"","creator":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":13,"state":"open","created_at":"2015-04-23T22:48:48Z","updated_at":"2015-07-06T15:35:18Z","due_on":"2015-07-06T07:00:00Z","closed_at":null},"comments":6,"created_at":"2015-07-06T15:15:09Z","updated_at":"2015-07-06T19:01:02Z","closed_at":null,"body":"I've a 3 member cluster, where discovery is based on dns on https.\r\nIn the below sample I'm talking to proxy which is also using the same dns discovery as the cluster.\r\n\r\nLast login: Thu Jul  2 19:51:45 2015 from xx.xx.xx.xx\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/roles\r\n{\"roles\":[\"guest\",\"root\",\"webServicesDevRole\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"users\":[\"root\",\"webServicesDev\"]}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ more enableSecurity.json\r\n{\"user\" : \"root\", \"password\": \"rm01d3\"}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":false}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/users\r\n{\"message\":\"Insufficient credentials\"}[rm@dev123 ~]$ curl --insecure http://test.dev.net:2377/v2/security/enable\r\n{\"enabled\":true}\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/118960345","html_url":"https://github.com/coreos/etcd/issues/3099#issuecomment-118960345","issue_url":"https://api.github.com/repos/coreos/etcd/issues/3099","id":118960345,"user":{"login":"raoofmd","id":12846989,"avatar_url":"https://avatars.githubusercontent.com/u/12846989?v=3","gravatar_id":"","url":"https://api.github.com/users/raoofmd","html_url":"https://github.com/raoofmd","followers_url":"https://api.github.com/users/raoofmd/followers","following_url":"https://api.github.com/users/raoofmd/following{/other_user}","gists_url":"https://api.github.com/users/raoofmd/gists{/gist_id}","starred_url":"https://api.github.com/users/raoofmd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raoofmd/subscriptions","organizations_url":"https://api.github.com/users/raoofmd/orgs","repos_url":"https://api.github.com/users/raoofmd/repos","events_url":"https://api.github.com/users/raoofmd/events{/privacy}","received_events_url":"https://api.github.com/users/raoofmd/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T19:01:02Z","updated_at":"2015-07-06T19:01:02Z","body":"[rm@dev789 etcd]$  curl -u root:m1lkm3 --insecure https://node02.etcd.dev.com:2379/v2/members\r\n{\"members\":[{\"id\":\"4c5854cca2fdc9c\",\"name\":\"node03\",\"peerURLs\":[\"https://node03.etcd.dev.com:2380\"],\"clientURLs\":[\"https://node03.etcd.dev.com:2379\"]},{\"id\":\"5f97c3330e24a56d\",\"name\":\"node02\",\"peerURLs\":[\"https://node02.etcd.dev.com:2380\"],\"clientURLs\":[\"https://node02.etcd.dev.com:2379\"]},{\"id\":\"f95caeae097ab105\",\"name\":\"node01\",\"peerURLs\":[\"https://node01.etcd.dev.com:2380\"],\"clientURLs\":[\"https://node01.etcd.dev.com:2379\"]}]}"}}