Improve error message when an invalid OIDC issuer is provided #357
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 output when the OIDC Issuer URL is not valid. For example, with this command-line:
fulcio serve --ca=pkcs11ca --hsm-caroot-id=1 --ct-log-url=http://localhost:6105/sigstore --host=0.0.0.0 --port=5000
Old output
FATAL app/serve.go:130 error loading config: 404 Not Found: 404 page not found
New output
FATAL app/serve.go:131 error loading --config-path=/etc/fulcio-config/config.json: provider http://localhost:5556/auth: 404 Not Found: 404 page not found
Release Note