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

Implement standardized Outputs (exit codes) #2742

Closed
xopham opened this issue Feb 24, 2023 · 2 comments
Closed

Implement standardized Outputs (exit codes) #2742

xopham opened this issue Feb 24, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@xopham
Copy link

xopham commented Feb 24, 2023

Description
Imho, cosign tends to produce confusing output to stdout and stderr. There seems occur a mixture of both in some cases. When failing, the output often appears "unhandled" such as the following:

Error: no matching signatures:
  signature not found in transparency log
  main.go:62: error during command execution: no matching signatures:
  signature not found in transparency log

This is not only hard to interpret as a human, it moreover complicates integration with other tools because the output needs to be parsed and interpreted and as it has not been strictly defined in the past it change throughout the versions.

How to resolve?
Besides returning proper error messages for readability, defining exit codes would simplify integration with other tools. At Connaisseur, we have been struggling to parse the "unhandled" errors.

@xopham xopham added the enhancement New feature or request label Feb 24, 2023
@xopham xopham mentioned this issue Feb 24, 2023
3 tasks
@sigstore sigstore deleted a comment Feb 26, 2023
@znewman01 znewman01 added the duplicate This issue or pull request already exists label Feb 27, 2023
@znewman01
Copy link
Contributor

Duplicate of #948 and #2510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@znewman01 @xopham and others