Skip to content
Snippets Groups Projects
Unverified Commit 5e005eb1 authored by Bob Callaway's avatar Bob Callaway Committed by GitHub
Browse files

Improve error messages for invalid content (#377)


Previously we returned an HTTP 500 "error canonicalizing entry" error if
Rekor was unable to parse or verify the proposed content of a new log
entry. This adds a new error type ValidationError that allows
implementers of the Canonicalize method to delineate between internal,
transient errors and errors that clients can rectify.

With this patch, errors parsing or validating (provided or referenced)
artifacts will return an HTTP 400 message to the client with a message
about the issue.

Fixes: #362

Signed-off-by: default avatarBob Callaway <bob.callaway@gmail.com>
parent 5687a248
No related branches found
No related tags found
No related merge requests found
Showing
with 98 additions and 56 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment