Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Use SSH pub key in order to allow access to a repository #531

Open
zedtux opened this issue Aug 20, 2014 · 31 comments
Open

Use SSH pub key in order to allow access to a repository #531

zedtux opened this issue Aug 20, 2014 · 31 comments

Comments

@zedtux
Copy link

zedtux commented Aug 20, 2014

Hello,

As I'm looking to mount a private Docker registry server, I'd like to limit the access not with user/password authentication system but with SSH key like Git does today.

Is there any plan to do this or am I the first one to request this ? 😄

@zedtux
Copy link
Author

zedtux commented Aug 20, 2014

What I mean is to be able to do then:

docker push docker@docker.zedroot.org:zedtux/my-docker-image

This would then push to my private server as I would have imported my SSH key in the docker registry (updating then the .ssh/authorised file).

@dmp42
Copy link
Contributor

dmp42 commented Aug 20, 2014

@zedtux so, you suggestion would mean using ssh as a transport (instead of http) - which is an idea.
Though, this is largely irrelevant to this project (docker-registry) and something you should rather suggest on the main docker repo / discussions.

@dmp42 dmp42 added this to the Not on us - keeping as courtesy milestone Aug 20, 2014
@zedtux
Copy link
Author

zedtux commented Aug 20, 2014

@dmp42 yes that is exactly the idea, to add another transport protocol to docker.

I have opened the ticket in this repo as I guess this repo will need to implement the SSH key management, isn't it ?

Anyway, I'm going to open another issue on the docker project itself mentioning this issue.
Thank you in any cases.

@zedtux
Copy link
Author

zedtux commented Aug 20, 2014

Done: docker issue #7650

@vitalyisaev2
Copy link

I guess I have just faced with a need of the same feature. +1.

@ph-One
Copy link

ph-One commented Feb 8, 2016

👍
Here's what I've done in the mean time...

# Server 1: Registry Server
docker run -d -p 127.0.0.1:5000:5000 registry:2
# Server 2: SSH Auth Server
ssh -f -N -L 5000:localhost:5000 user@registry_server_address -g
# Client: Test, should fail
curl http://registry_server_address:5000/v2/_catalog
# Client: Test, should pass
curl http://ssh_auth_server_address:5000/v2/_catalog

And now only those with SSH pub keys on Server 2 have access to the registry. Make sure to add --insecure-registry ssh_auth_server:5000 to your client's Docker daemon command.

@errordeveloper
Copy link

+1

@ra2637
Copy link

ra2637 commented Apr 29, 2016

really need it +1

@matutter
Copy link

matutter commented Oct 3, 2016

I agree, docker is becoming as essential to development as git.

@cypof
Copy link

cypof commented Jan 4, 2017

+1

14 similar comments
@antonin42
Copy link

+1

@sizeoftank
Copy link

+1

@tetherit
Copy link

+1

@EgorOmelyanenko
Copy link

+1

@boeboe
Copy link

boeboe commented Sep 30, 2017

+1

@aplut
Copy link

aplut commented Oct 2, 2017

+1

@varadgunjal
Copy link

+1

@dvolosnykh
Copy link

+1

@av8ramit
Copy link

av8ramit commented Nov 1, 2017

+1

@cfriedt
Copy link

cfriedt commented Nov 30, 2017

+1

@jgh-
Copy link

jgh- commented Jan 4, 2018

+1

@bttscut
Copy link

bttscut commented Jan 6, 2018

+1

@Sadykh
Copy link

Sadykh commented Jan 31, 2018

+1

@Natril
Copy link

Natril commented Feb 8, 2018

+1

@cfriedt
Copy link

cfriedt commented Feb 13, 2018

/me hears crickets chirping..

@boeboe
Copy link

boeboe commented Feb 13, 2018

D***** is dead soon anyway :)

https://www.youtube.com/watch?v=BeRr3aZbzqo&t=1940s

@philipianni
Copy link

+1

@SukiCZ
Copy link

SukiCZ commented Jun 14, 2018

+1

3 similar comments
@3pns
Copy link

3pns commented Jun 14, 2018

+1

@bwail
Copy link

bwail commented Jul 1, 2018

+1

@temporafugiunt
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests