Make the the invalid CA error message actionable #356
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Thomas Stromberg t+github@chainguard.dev
Summary
This PR improves the error message when an invalid
--ca
is provided by making it directly actionable. This lowers the friction for folks like me who are blindly pasting lines from the sigstore-the-hard-way doc.When I first saw the error message, it did not occur to me that it referenced the
--ca
value versus an expected value within the key pair. Here is the example command-line to trigger the condition:fulcio serve --config-path=fulcio-config.json --ca=fulcioca --hsm-caroot-id=1 --ct-log-url=http://localhost:6105/sigstore --host=0.0.0.0 --port=5000
Old output
FATAL app/serve.go:119 unknown CA: fulcioca
New output
FATAL app/serve.go:119 --ca=fulcioca is not a valid selection. Try: pkcs11ca, googleca, fileca, or ephemeralca
Release Note