{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/409","labels_url":"https://api.github.com/repos/docker/distribution/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/409/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/409/events","html_url":"https://github.com/docker/distribution/pull/409","id":69938738,"number":409,"title":"Implementation of a basic authentication scheme using standard .htpasswd...","user":{"login":"BadZen","id":4296744,"avatar_url":"https://avatars.githubusercontent.com/u/4296744?v=3","gravatar_id":"","url":"https://api.github.com/users/BadZen","html_url":"https://github.com/BadZen","followers_url":"https://api.github.com/users/BadZen/followers","following_url":"https://api.github.com/users/BadZen/following{/other_user}","gists_url":"https://api.github.com/users/BadZen/gists{/gist_id}","starred_url":"https://api.github.com/users/BadZen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BadZen/subscriptions","organizations_url":"https://api.github.com/users/BadZen/orgs","repos_url":"https://api.github.com/users/BadZen/repos","events_url":"https://api.github.com/users/BadZen/events{/privacy}","received_events_url":"https://api.github.com/users/BadZen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/distribution/labels/dco/yes","name":"dco/yes","color":"ededed"},{"url":"https://api.github.com/repos/docker/distribution/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/distribution/milestones/8","html_url":"https://github.com/docker/distribution/milestones/Registry/2.1","labels_url":"https://api.github.com/repos/docker/distribution/milestones/8/labels","id":1026598,"number":8,"title":"Registry/2.1","description":"Items in this roadmap will be part of the registry 2.1 release.","creator":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":51,"state":"open","created_at":"2015-03-18T04:15:41Z","updated_at":"2015-06-04T18:31:15Z","due_on":"2015-06-19T07:00:00Z","closed_at":null},"comments":18,"created_at":"2015-04-21T20:10:49Z","updated_at":"2015-06-04T18:31:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/distribution/pulls/409","html_url":"https://github.com/docker/distribution/pull/409","diff_url":"https://github.com/docker/distribution/pull/409.diff","patch_url":"https://github.com/docker/distribution/pull/409.patch"},"body":"(New to this project - contributions seem pretty open, but  let me know if you want me to PR in some other way...)\r\n\r\nThis is just a simple basic http authentication module for docker/distribution.   It ignores auth scope and you can configure a realm and path in the auth - the path points to an apache .htpasswd file, and performs HTTP basic authentication using SHA1 hashes. \r\n\r\nWe are using it to provide basic auth control for some scripts, without having to proxy behind a websever or jump through crazy JWT authentication server hoops.  Other folks might find it useful also.\r\n\r\nFrom what I understand about the preferred docker auth mechanisms I don't see the docker cli itself supporting this auth method.   But, it potentially could - we might make a fork of the CLI for that purpose too - but for us it would be nice to have some scope access controls if and when that happens...   can someone more involved with this project comment on that?"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/109000590","html_url":"https://github.com/docker/distribution/pull/409#issuecomment-109000590","issue_url":"https://api.github.com/repos/docker/distribution/issues/409","id":109000590,"user":{"login":"BadZen","id":4296744,"avatar_url":"https://avatars.githubusercontent.com/u/4296744?v=3","gravatar_id":"","url":"https://api.github.com/users/BadZen","html_url":"https://github.com/BadZen","followers_url":"https://api.github.com/users/BadZen/followers","following_url":"https://api.github.com/users/BadZen/following{/other_user}","gists_url":"https://api.github.com/users/BadZen/gists{/gist_id}","starred_url":"https://api.github.com/users/BadZen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BadZen/subscriptions","organizations_url":"https://api.github.com/users/BadZen/orgs","repos_url":"https://api.github.com/users/BadZen/repos","events_url":"https://api.github.com/users/BadZen/events{/privacy}","received_events_url":"https://api.github.com/users/BadZen/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T18:31:54Z","updated_at":"2015-06-04T18:31:54Z","body":"I tried running it that way, but thought it was incorrect since it tries to add the package I added to the distribution project as a dependency, and fails:  \r\n\r\ncan't load package: package github.com/docker/distribution/registry/auth/basic: cannot find package \"github.com/docker/distribution/registry/auth/basic\" in any of:\r\n\t/usr/lib/golang/src/github.com/docker/distribution/registry/auth/basic (from $GOROOT)\r\n\t/home/dtrombley/go/src/github.com/docker/distribution/registry/auth/basic (from $GOPATH)\r\n\r\nDo I need to manually copy my fork over the docker/distribution in my gopath for this to work, or something like that?"}}