Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly set key and keyserver for docker apt repository #217

Closed

Conversation

sethrosenblum
Copy link
Contributor

Currently we make a request to get.docker.io on every chef run, whether or not we already have the apt key installed. This should fix #215 .

@tduffield
Copy link
Contributor

I have to admit my ignorance on the matter. What is the likelihood that the repo_key will change?

@darron
Copy link

darron commented Oct 28, 2014

It's pretty low - likely only if it's "compromised". They don't have an expiry on the key either.

If you look at Docker's own Ubuntu setup script here: http://get.docker.com/ubuntu/

You'll see that they actually install the key from the keyserver - not the URL:

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

This change makes the cookbook more resilient and faster - it no longer has to check the key on every chef run.

+1

@tduffield
Copy link
Contributor

Awesome. I agree that the change is an improvement I just wanted to make sure that the cookbook wasn't likely to break without warning or we were going to have to update the cookbook super frequently.

This looks good to merge. I'm going to release this as a patch release so I'll do that soon.

@tduffield
Copy link
Contributor

Can I make one request - can you document inline how you acquire that repo_key value?

@sethrosenblum
Copy link
Contributor Author

👍

@tduffield
Copy link
Contributor

Closed - merged into the 0.35-stable branch. Will be released in the next 0.35 patch release.

@tduffield tduffield closed this Oct 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install can't access https://get.docker.io
3 participants