{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/27966","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/27966/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/27966/comments","events_url":"https://api.github.com/repos/docker/docker/issues/27966/events","html_url":"https://github.com/docker/docker/issues/27966","id":186660394,"number":27966,"title":"[upstream go] registry logout doesn't remove auth data","user":{"login":"tophj-ibm","id":15270681,"avatar_url":"https://avatars.githubusercontent.com/u/15270681?v=3","gravatar_id":"","url":"https://api.github.com/users/tophj-ibm","html_url":"https://github.com/tophj-ibm","followers_url":"https://api.github.com/users/tophj-ibm/followers","following_url":"https://api.github.com/users/tophj-ibm/following{/other_user}","gists_url":"https://api.github.com/users/tophj-ibm/gists{/gist_id}","starred_url":"https://api.github.com/users/tophj-ibm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tophj-ibm/subscriptions","organizations_url":"https://api.github.com/users/tophj-ibm/orgs","repos_url":"https://api.github.com/users/tophj-ibm/repos","events_url":"https://api.github.com/users/tophj-ibm/events{/privacy}","received_events_url":"https://api.github.com/users/tophj-ibm/received_events","type":"User","site_admin":false},"labels":[{"id":190258329,"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-01T22:02:38Z","updated_at":"2016-11-02T18:01:46Z","closed_at":null,"body":"I've been testing upstream docker with upstream go, and I currently get two failures on x86_64\r\n\r\n```bash\r\n----------------------------------------------------------------------\r\nFAIL: docker_cli_logout_test.go:15: DockerRegistryAuthHtpasswdSuite.TestLogoutWithExternalAuth\r\n\r\ndocker_cli_logout_test.go:52:\r\n    c.Assert(string(b), checker.Not(checker.Contains), privateRegistryURL)\r\n... obtained string = \"\" +\r\n...     \"{\\n\" +\r\n...     \"\\t\\\"auths\\\": {\\n\" +\r\n...     \"\\t\\t\\\"127.0.0.1:5000\\\": {}\\n\" +\r\n...     \"\\t},\\n\" +\r\n...     \"\\t\\\"credsStore\\\": \\\"shell-test\\\"\\n\" +\r\n...     \"}\"\r\n... substring string = \"127.0.0.1:5000\"\r\n\r\n\r\n----------------------------------------------------------------------\r\nFAIL: docker_cli_logout_test.go:61: DockerRegistryAuthHtpasswdSuite.TestLogoutWithWrongHostnamesStored\r\n\r\ndocker_cli_logout_test.go:98:\r\n    c.Assert(string(b), checker.Not(checker.Contains), fmt.Sprintf(\"\\\"https://%s\\\": {}\", privateRegistryURL))\r\n... obtained string = \"\" +\r\n...     \"{\\n\" +\r\n...     \"\\t\\\"auths\\\": {\\n\" +\r\n...     \"\\t\\t\\\"127.0.0.1:5000\\\": {},\\n\" +\r\n...     \"\\t\\t\\\"https://127.0.0.1:5000\\\": {}\\n\" +\r\n...     \"\\t},\\n\" +\r\n...     \"\\t\\\"credsStore\\\": \\\"shell-test\\\"\\n\" +\r\n...     \"}\"\r\n... substring string = \"\\\"https://127.0.0.1:5000\\\": {}\"\r\n\r\n\r\n----------------------------------------------------------------------\r\n```\r\n\r\nComparing before and after, I can see the stored auth data looks like this after loging out with go1.7.3\r\n\r\n{\r\n\t\"auths\": {},\r\n\t\"credsStore\": \"shell-test\"\r\n}\r\n\r\n\r\nSo it looks like the auths section isn't properly getting cleared after logging out.\r\n\r\nSteps to recreate:\r\n1.) Build docker with upstream go instead of go1.7.3\r\n2.) Run the integration tests"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/257948462","html_url":"https://github.com/docker/docker/issues/27966#issuecomment-257948462","issue_url":"https://api.github.com/repos/docker/docker/issues/27966","id":257948462,"user":{"login":"tophj-ibm","id":15270681,"avatar_url":"https://avatars.githubusercontent.com/u/15270681?v=3","gravatar_id":"","url":"https://api.github.com/users/tophj-ibm","html_url":"https://github.com/tophj-ibm","followers_url":"https://api.github.com/users/tophj-ibm/followers","following_url":"https://api.github.com/users/tophj-ibm/following{/other_user}","gists_url":"https://api.github.com/users/tophj-ibm/gists{/gist_id}","starred_url":"https://api.github.com/users/tophj-ibm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tophj-ibm/subscriptions","organizations_url":"https://api.github.com/users/tophj-ibm/orgs","repos_url":"https://api.github.com/users/tophj-ibm/repos","events_url":"https://api.github.com/users/tophj-ibm/events{/privacy}","received_events_url":"https://api.github.com/users/tophj-ibm/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T18:01:46Z","updated_at":"2016-11-02T18:01:46Z","body":"sure thing"}}
{"actor":{"display_login":"tophj-ibm"}}