{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/3281","labels_url":"https://api.github.com/repos/coreos/etcd/issues/3281/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/3281/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/3281/events","html_url":"https://github.com/coreos/etcd/issues/3281","id":100804483,"number":3281,"title":"Should give a more specific error message while using auth_api","user":{"login":"oscarrr110","id":161753,"avatar_url":"https://avatars.githubusercontent.com/u/161753?v=3","gravatar_id":"","url":"https://api.github.com/users/oscarrr110","html_url":"https://github.com/oscarrr110","followers_url":"https://api.github.com/users/oscarrr110/followers","following_url":"https://api.github.com/users/oscarrr110/following{/other_user}","gists_url":"https://api.github.com/users/oscarrr110/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarrr110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarrr110/subscriptions","organizations_url":"https://api.github.com/users/oscarrr110/orgs","repos_url":"https://api.github.com/users/oscarrr110/repos","events_url":"https://api.github.com/users/oscarrr110/events{/privacy}","received_events_url":"https://api.github.com/users/oscarrr110/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-13T15:54:11Z","updated_at":"2015-08-27T16:21:44Z","closed_at":null,"body":"**1 . if using error password, error msg as below**\r\n ./etcdctl -u test2:1111 get /rootpath2/key\r\nError:  0: Insufficient credentials () [0] \r\n**2 . if using right username and password,but  given the unauthorized path, error msg as below**\r\n./etcdctl -u test2:1111 get /rootpath2/key\r\nError:  0: Insufficient credentials () [0]\r\n**3. Wrong password or unauthorized path are different error, Shall we need to give more specific error message**"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/135483554","html_url":"https://github.com/coreos/etcd/issues/3281#issuecomment-135483554","issue_url":"https://api.github.com/repos/coreos/etcd/issues/3281","id":135483554,"user":{"login":"oscarrr110","id":161753,"avatar_url":"https://avatars.githubusercontent.com/u/161753?v=3","gravatar_id":"","url":"https://api.github.com/users/oscarrr110","html_url":"https://github.com/oscarrr110","followers_url":"https://api.github.com/users/oscarrr110/followers","following_url":"https://api.github.com/users/oscarrr110/following{/other_user}","gists_url":"https://api.github.com/users/oscarrr110/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarrr110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarrr110/subscriptions","organizations_url":"https://api.github.com/users/oscarrr110/orgs","repos_url":"https://api.github.com/users/oscarrr110/repos","events_url":"https://api.github.com/users/oscarrr110/events{/privacy}","received_events_url":"https://api.github.com/users/oscarrr110/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T16:21:44Z","updated_at":"2015-08-27T16:21:44Z","body":"Sorry for the missing.. : )\r\n\r\nI know your mean. \r\n\r\nActually I think that we should have got a balance between the user client and security feature.\r\n\r\nBut actually we expose the basic auth feature to the client user. I think that  he should know his own input(username and password) is correct\r\n\r\nMy app has been divided into two parts: Etcd cluster and Client User. They are a one-to-many relationship.\r\nActually client part does not have permission to access the etcd cluster. But client user still want to know what's wrong with his own behavior . Input invalid key or wrong username/password\r\n\r\n"}}