{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/4905","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/4905/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/4905/comments","events_url":"https://api.github.com/repos/npm/npm/issues/4905/events","html_url":"https://github.com/npm/npm/issues/4905","id":29715523,"number":4905,"title":"Move out the _auth token from npmrc","user":{"login":"mattiasb","id":1341313,"avatar_url":"https://avatars.githubusercontent.com/u/1341313?v=3","gravatar_id":"","url":"https://api.github.com/users/mattiasb","html_url":"https://github.com/mattiasb","followers_url":"https://api.github.com/users/mattiasb/followers","following_url":"https://api.github.com/users/mattiasb/following{/other_user}","gists_url":"https://api.github.com/users/mattiasb/gists{/gist_id}","starred_url":"https://api.github.com/users/mattiasb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattiasb/subscriptions","organizations_url":"https://api.github.com/users/mattiasb/orgs","repos_url":"https://api.github.com/users/mattiasb/repos","events_url":"https://api.github.com/users/mattiasb/events{/privacy}","received_events_url":"https://api.github.com/users/mattiasb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/feature-request","name":"feature-request","color":"98DCFF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-03-19T08:57:31Z","updated_at":"2016-03-21T11:13:03Z","closed_at":"2014-09-24T06:59:38Z","body":"I recently (by mistake) pushed a commit to my .config repo including the npm _auth-token. Since it's just a base64 encoded username:password string my login credentials just made the public of the web. \r\nUnfortunately (and this is really my fault only) I used this password on some other sites[1], so I had to spend some time yesterday changing my password on all those sites, and rewrite the history of my repo.\r\n\r\nSo, my suggestion is to move the _auth token out from the config file. \r\nPreferably also encrypt it[1]. You might want to consider storing it in the users keyring also if one is present (it is on OSX and most Linux desktops for example, no idea about windows).\r\n\r\n1: I see that encryption was removed in #565, what was the reason?"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/199228918","html_url":"https://github.com/npm/npm/issues/4905#issuecomment-199228918","issue_url":"https://api.github.com/repos/npm/npm/issues/4905","id":199228918,"user":{"login":"tiktaktok","id":1780400,"avatar_url":"https://avatars.githubusercontent.com/u/1780400?v=3","gravatar_id":"","url":"https://api.github.com/users/tiktaktok","html_url":"https://github.com/tiktaktok","followers_url":"https://api.github.com/users/tiktaktok/followers","following_url":"https://api.github.com/users/tiktaktok/following{/other_user}","gists_url":"https://api.github.com/users/tiktaktok/gists{/gist_id}","starred_url":"https://api.github.com/users/tiktaktok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiktaktok/subscriptions","organizations_url":"https://api.github.com/users/tiktaktok/orgs","repos_url":"https://api.github.com/users/tiktaktok/repos","events_url":"https://api.github.com/users/tiktaktok/events{/privacy}","received_events_url":"https://api.github.com/users/tiktaktok/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T11:13:03Z","updated_at":"2016-03-21T11:13:03Z","body":"Still no change on the version I have. This is a real issue in our team.\r\nI'm even willing to help fixing it if you show me where to start."}}