User Tools

Site Tools


docker:security:sign_and_verify_images_to_mitigate_mitm_attacks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker:security:sign_and_verify_images_to_mitigate_mitm_attacks [2020/04/18 19:53] peterdocker:security:sign_and_verify_images_to_mitigate_mitm_attacks [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 24: Line 24:
  
 Now attempt to pull an image that you know is not signed—the request is denied and the image is not pulled. Now attempt to pull an image that you know is not signed—the request is denied and the image is not pulled.
 +
 +----
 +
 +===== Sign docker images =====
 +
 +Prefer [[https://hub.docker.com/search/?certification_status=certified&type=image|Docker Certified]] images that come from trusted partners who have been vetted and curated by Docker Hub rather than images whose origin and authenticity you can’t validate.
 +
 +Docker allows signing images, and by this, provides another layer of protection.  To sign images, use [[https://docs.docker.com/notary/getting_started/|Docker Notary]].  Notary verifies the image signature for you, and blocks you from running an image if the signature of the image is invalid.
 +
 +When Docker Content Trust is enabled, as we exhibited above, a Docker image build signs the image. When the image is signed for the first time,  Docker generates and saves a private key in **~/docker/trust** for your user.  This private key is then used to sign any additional images as they are built.
 +
 +For detailed instructions on setting up signed images, refer to [[https://docs.docker.com/engine/security/trust/content_trust/|Docker’s official documentation]].
 +
 +How is signing docker images with Docker’s Content Trust and Notary different from using GPG?
 +
 +Diogo Mónica has a [[https://www.youtube.com/watch?v=JvjdfQC8jxM|great talk]] on this but essentially GPG helps you with verification, not with replay attacks.
 +
  
docker/security/sign_and_verify_images_to_mitigate_mitm_attacks.1587239593.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki