Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cosign/system_config/custom_components incorrectly says 'cosign verify --trusted-root` is available #349

Open
dmitris opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dmitris
Copy link
Contributor

dmitris commented Nov 15, 2024

Description
https://docs.sigstore.dev/cosign/system_config/custom_components/ bullet 3. states:

You can then supply that trusted root file to cosign verify commands with --trusted-root.

However, cosign verify currently doesn't (yet) support the --trusted-root parameter - building cosign from the trunk (commit 795289124edd46d4e2ab588b426a8314bc13cf1f), you get the error:

$ ./cosign verify --trusted-root=trustedroot.json --onlineTlog=false --requireTlog=false --ignore-sct=true image-name:tag
Error: unknown flag: --trusted-root
main.go:74: error during command execution: unknown flag: --trusted-root

The docs line is added in pr327

Suggested solution: modify the doc to say something like:

You can then supply that trusted root file to the `cosign verify-bundle` command with --trusted-root; in the future, this option will also be supported by `cosign verify`.

Version

$ cosign version
GitVersion:    v2.4.1-16-g79528912
GitCommit:     795289124edd46d4e2ab588b426a8314bc13cf1f
GitTreeState:  clean
BuildDate:     2024-11-13T01:47:43Z
GoVersion:     go1.23.3
Compiler:      gc
Platform:      darwin/arm64

/cc @steiza

@dmitris dmitris added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant