Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Refs #14181 - Fix authentication validation when creating registry #148

Closed
wants to merge 1 commit into from

Conversation

dLobatog
Copy link
Member

On 9ea4059 Docker.authenticate! was
calling /auth on the Docker host API. This kind of authentication was
not correct, as it was authenticating access to the Docker host, not to
the registry.

Instead, we just perform a restclient call with basic authentication
against an endpoint as per https://docs.docker.com/v1.7/reference/api/hub_registry_spec/#authentication-and-authorization

We should support token authentication as well after this and add a
new field to the form.

Feel free to test with registry.access.redhat.com or https://registry.hub.docker.com/ - the latter will ask for username password, the former would work with anything.

On 9ea4059 Docker.authenticate! was
calling /auth on the Docker host API. This kind of authentication was
not correct, as it was authenticating access to the Docker host, not to
the registry.

Instead, we just perform a restclient call with basic authentication
against an endpoint as per https://docs.docker.com/v1.7/reference/api/hub_registry_spec/#authentication-and-authorization

We should support token authentication as well after this and add a
new field to the form.
@parthaa
Copy link
Contributor

parthaa commented Mar 29, 2016

Tested against registry.access.redhat.com or https://registry.hub.docker.com/ . ACK

@dLobatog
Copy link
Member Author

Merged as 00ab1f9, thanks @dLobatog!

@dLobatog dLobatog closed this Mar 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants