{"action":"created","issue":{"url":"https://api.github.com/repos/target/portauthority/issues/12","repository_url":"https://api.github.com/repos/target/portauthority","labels_url":"https://api.github.com/repos/target/portauthority/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/target/portauthority/issues/12/comments","events_url":"https://api.github.com/repos/target/portauthority/issues/12/events","html_url":"https://github.com/target/portauthority/issues/12","id":322864708,"number":12,"title":"Add support for token login Gitlab (Registry crawler)","user":{"login":"MightyPrefix","id":17978478,"avatar_url":"https://avatars0.githubusercontent.com/u/17978478?v=4","gravatar_id":"","url":"https://api.github.com/users/MightyPrefix","html_url":"https://github.com/MightyPrefix","followers_url":"https://api.github.com/users/MightyPrefix/followers","following_url":"https://api.github.com/users/MightyPrefix/following{/other_user}","gists_url":"https://api.github.com/users/MightyPrefix/gists{/gist_id}","starred_url":"https://api.github.com/users/MightyPrefix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MightyPrefix/subscriptions","organizations_url":"https://api.github.com/users/MightyPrefix/orgs","repos_url":"https://api.github.com/users/MightyPrefix/repos","events_url":"https://api.github.com/users/MightyPrefix/events{/privacy}","received_events_url":"https://api.github.com/users/MightyPrefix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-14T15:22:29Z","updated_at":"2018-05-14T16:04:31Z","closed_at":null,"author_association":"NONE","body":"We use a private Gitlab Docker registry which uses a JWT authentication service to issue auth tokens for the registry API. Instead of authenticating with a username and password for the registry crawler, is it possible to support the use of an authentication token?\r\n\r\nFor example we use https://gitlab.xxx/jwt/auth?service=container_registry&scope=repository:xxx/xxx:pull which gives us the token we need to authenticate with the registry.\r\n\r\nIs it possible to either just use that token directly or to make an auth request to our JWT service?"},"comment":{"url":"https://api.github.com/repos/target/portauthority/issues/comments/388871305","html_url":"https://github.com/target/portauthority/issues/12#issuecomment-388871305","issue_url":"https://api.github.com/repos/target/portauthority/issues/12","id":388871305,"user":{"login":"ErikThoreson","id":21063507,"avatar_url":"https://avatars1.githubusercontent.com/u/21063507?v=4","gravatar_id":"","url":"https://api.github.com/users/ErikThoreson","html_url":"https://github.com/ErikThoreson","followers_url":"https://api.github.com/users/ErikThoreson/followers","following_url":"https://api.github.com/users/ErikThoreson/following{/other_user}","gists_url":"https://api.github.com/users/ErikThoreson/gists{/gist_id}","starred_url":"https://api.github.com/users/ErikThoreson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErikThoreson/subscriptions","organizations_url":"https://api.github.com/users/ErikThoreson/orgs","repos_url":"https://api.github.com/users/ErikThoreson/repos","events_url":"https://api.github.com/users/ErikThoreson/events{/privacy}","received_events_url":"https://api.github.com/users/ErikThoreson/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T16:04:31Z","updated_at":"2018-05-14T16:04:31Z","author_association":"CONTRIBUTOR","body":"I think we do something similar for `gcr.io` but I'm not super happy with they way it's done since it's a one off.\r\n\r\nhttps://github.com/target/portauthority/blob/master/pkg/docker/auth.go#L41-L57\r\n\r\nAre you still supplying credentials for the initial login to the registry?"}}
{"actor":{"display_login":"ErikThoreson"}}