Skip to content

tlog-upload and new bundle format #4778

@kholmanskikh

Description

@kholmanskikh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions