Skip to content

Client: Print Last Error After Rekor Retires Fail #2640

@adambkaplan

Description

@adambkaplan

Description

When the Rekor client retries requests (ex: adding a record to the transparency log), in many common situations it does not print a detailed explanation for the error. An example output from a Rekor instance that was experiencing degraded performance:

Error: signing quay.io/<image-repo>/<image-name>@sha256:<image-digest>: Post "https://<rekor-url>/api/v1/log/entries": POST https://<rekor-url>/api/v1/log/entries giving up after 4 attempt(s)
error during command execution: signing quay.io/<image-repo>/<image-name>@sha256:<image-digest>: Post "https://<rekor-url>/api/v1/log/entries": POST https://<rekor-url>/api/v1/log/entries giving up after 4 attempt(s)

Printing the "last error" would help end users understand what went wrong and take appropriate action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions