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

exit codes for command line tool #25

Open
hannob opened this issue May 14, 2024 · 0 comments
Open

exit codes for command line tool #25

hannob opened this issue May 14, 2024 · 0 comments

Comments

@hannob
Copy link
Contributor

hannob commented May 14, 2024

We should have some strategy for exit codes for the commandline tool, currently badkeys doesn't set any.

It is a bit nontrivial, as we can scan multiple keys, and there can both be non-cryptographic warnings and vulnerabiltiy findings.

I am thinking about the following:

  • Return 0 if only "good" keys without vulnerabilities have been scanned.
  • Return 1 if any vulnerability has been found
  • Return 2 if any other problem happened
  • Return 3 if 1 and 2 would apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant