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

Improve error messages for invalid content #377

Merged
merged 1 commit into from
Jul 17, 2021

Commits on Jul 17, 2021

  1. Improve error messages for invalid content

    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: Bob Callaway <[email protected]>
    bobcallaway committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    c174bd8 View commit details
    Browse the repository at this point in the history