-
Notifications
You must be signed in to change notification settings - Fork 86
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
Script at get.docker.com doesn't contain fingerprint #602
Comments
For some reason the key checking I added was removed in docker/docker-install#39 This needs to be fixed. |
(We stopped using the gpg servers as they are highly unreliable). |
We download the apt gpg key here: It isn't hardcoded into the script because we use get.docker.com against multiple different apt repositories (external and internal). By default apt repositories use gpg verification, so there's no need for explicit checking since apt will do it for you when you try to install. Output from script without said line above:
|
@seemethere well but that download isn't verified other than basic HTTPS, is it? that is a significant reduction in security for static use of the script. if you use multiple keys, why not add all of them instead of none? |
@seemethere why is there an explicit checking against the fingerprint in the manual installation instructions? Isn't that to increase security and should therefore also be build into any automated installation? |
The script at get.docker.com doesn't contain any fingerprint for the apt key. While this makes no difference when downloading it on-demand and piping it into a bash, this makes a big difference in security when downloading it once and baking it into an image, and using this fixed version for a longer time to install docker in a larger deployment.
Expected behavior
the script contains the apt-key fingerprint inside itself, and verifies it
Actual behavior
the script only relies on HTTPS verification, which results in much weaker security in cases where the script isn't downloaded via HTTPS on-demand but baked
Steps to reproduce the behavior
Output of
docker version
:affects website script only
Output of
docker info
:affects website script only
Additional environment details (AWS, VirtualBox, physical, etc.)
The text was updated successfully, but these errors were encountered: