The scenario is the following (requires interacting with Docker):
- docker pull
runcom/busybox:signed
- the docker CLI checks that a valid signature exists for
runcom/busybox:signed via containers/image
containers/image provides the trusted digest for runcom/busybox:signed
- the docker CLI now tries to
docker pull runcom/busybox@sha256:%HEX%
- since there's the
trust-plugin on the docker API side ...
trust-plugin check that a valid signature exists for runcom/busybox@sha256:%HEX%
trust-plugin fails because we don't have signature for runcom/busybox@sha256:%HEX% but for runcom/busybox:signed (which is one of the tag for that digest, which should be already trusted)
I'm proposing something to relax this since if you're pulling by digest at some time it's likely that you have already checked for signatures from a tag.
/cc @mtrmac @aweiteka @rhatdan
The scenario is the following (requires interacting with Docker):
runcom/busybox:signedruncom/busybox:signedviacontainers/imagecontainers/imageprovides the trusted digest forruncom/busybox:signeddocker pull runcom/busybox@sha256:%HEX%trust-pluginon the docker API side ...trust-plugincheck that a valid signature exists forruncom/busybox@sha256:%HEX%trust-pluginfails because we don't have signature forruncom/busybox@sha256:%HEX%but forruncom/busybox:signed(which is one of the tag for that digest, which should be already trusted)I'm proposing something to relax this since if you're pulling by digest at some time it's likely that you have already checked for signatures from a tag.
/cc @mtrmac @aweiteka @rhatdan