Skip to content

timestamp-server-url flag & the signing config #4686

@hostalp

Description

@hostalp

Question
I see that after #4458 deprecated the --tlog-upload flag, a detailed description is printed when this flag is used with the signing config (which is the default now):
cosign sign --key cosign.key --tlog-upload=false ...

Flag --tlog-upload has been deprecated, prefer using a --signing-config file with no transparency log services
Error: --tlog-upload=false is not supported with --signing-config or --use-signing-config. Provide a signing config with --signing-config without a transparency log service, which can be created with cosign signing-config create or curl https://raw.githubusercontent.com/sigstore/root-signing/refs/heads/main/targets/signing_config.v0.2.json | jq 'del(.rekorTlogUrls)' for the public instance
error during command execution: --tlog-upload=false is not supported with --signing-config or --use-signing-config. Provide a signing config with --signing-config without a transparency log service, which can be created with cosign signing-config create or curl https://raw.githubusercontent.com/sigstore/root-signing/refs/heads/main/targets/signing_config.v0.2.json | jq 'del(.rekorTlogUrls)' for the public instance

However when the --timestamp-server-url flag is used similarly. not very useful explanation is given in the error message:
cosign sign --key cosign.key --timestamp-server-url https://freetsa.org/tsr ...

Error: cannot specify service URLs and use signing config
error during command execution: cannot specify service URLs and use signing config

Which also means that what's described here is now broken:
https://docs.sigstore.dev/cosign/verifying/timestamps/#using-signed-timestamps-in-cosign

If it's intended to disallow the timestamp-server-url flag when a signing config is used, shouldn't the description be more detailed as well? And docs updated to reflect the current state of things?

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