Start using Docker Content Trust
nhoughto opened this issue ยท 5 comments
So we would like to use minideb as a base for our images, but we have a requirement that we need to either pin or verify the upstream image we depend on. We like the philosophy of minideb that it is regularly rebuilt and kept up-to-date, but we can't use it as we don't want to pin to a specific sha256 hash (lose rebuild benefits) and we can't use Docker Content Trust as you guys don't support it. Would be great if you could start supporting it =)
https://docs.docker.com/engine/security/trust/content_trust/
@nhoughto thanks, I'm not sure we were aware of content trust, will definitely look into that!
@prydonius yes, after fixing a couple of issues more, the deploy task finally worked:
$ DOCKER_CONTENT_TRUST=1 docker pull bitnami/minideb
Using default tag: latest
Pull (1 of 1): bitnami/minideb:latest@sha256:986e3bde074c25f697b67654ee4ac2f3759c3ff80793100215b2057db954dd06
sha256:986e3bde074c25f697b67654ee4ac2f3759c3ff80793100215b2057db954dd06: Pulling from bitnami/minideb
38c77e4048a1: Pull complete
Digest: sha256:986e3bde074c25f697b67654ee4ac2f3759c3ff80793100215b2057db954dd06
Status: Downloaded newer image for bitnami/minideb@sha256:986e3bde074c25f697b67654ee4ac2f3759c3ff80793100215b2057db954dd06
Tagging bitnami/minideb@sha256:986e3bde074c25f697b67654ee4ac2f3759c3ff80793100215b2057db954dd06 as bitnami/minideb:latest```
Nice! @nhoughto, it's been a while, but it'd be great if you had some time to look into this and provide any feedback!
works a treat, thanks for getting it done. We will be moving all our base images to minideb now ๐ ๐