Question
Hello.
What is the recommended combination of arguments to sign an image not using the new bundle format and not pushing an entry to a transactional log (it's a private repo)?
This combination of flags works for me:
cosign sign --key cosign.key --new-bundle-format=false --use-signing-config=false --tlog-upload=false <...image...>
but produces a warning:
Flag --tlog-upload has been deprecated, prefer using a --signing-config file with no transparency log services
If I create an empty config file with:
$ cosign signing-config create | tee cosign.config
{"mediaType":"application/vnd.dev.sigstore.signingconfig.v0.2+json", "rekorTlogConfig":{}, "tsaConfig":{}}
and pass it to cosign, it fails with:
$ cosign sign --key cosign.key --new-bundle-format=false --signing-config=cosign.config --use-signing-config=false <...image...>
Error: if any flags in the group [use-signing-config signing-config] are set none of the others can be; [signing-config use-signing-config] were all set
error during command execution: if any flags in the group [use-signing-config signing-config] are set none of the others can be; [signing-config use-signing-config] were all set
Indeed passing both --signing-config and --use-signing-config=false looks rather strange, but I really struggle how to achieve that without seeing any warnings from cosign.
It's cosign v3.0.5
Thanks.
Question
Hello.
What is the recommended combination of arguments to sign an image not using the new bundle format and not pushing an entry to a transactional log (it's a private repo)?
This combination of flags works for me:
but produces a warning:
If I create an empty config file with:
and pass it to cosign, it fails with:
Indeed passing both --signing-config and --use-signing-config=false looks rather strange, but I really struggle how to achieve that without seeing any warnings from cosign.
It's cosign v3.0.5
Thanks.