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

provide digest error for OCI artifacts #341

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

mandelsoft
Copy link
Contributor

What this PR does / why we need it:

Signing a resource of access type ociArtifact the digest must be determined. This fails if there is a permission problem.
The actually used Digest method (as part of the BlobAccess interface) does not provide an error return value,
therefore the signing error does not tell the reason for the failed signing.

The BlobAccess interface is very basic and used all over the code, therefore it is hard to change.
But the actual problem arises from accessing the access method. Here a better method with error return
is added to provide the fail reason, if the digest determination fails.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release Notes:

@mandelsoft mandelsoft requested a review from morri-son April 17, 2023 15:16
Copy link
Contributor

@morri-son morri-son left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast as lightning :-)

@mandelsoft mandelsoft merged commit 60b2249 into open-component-model:main Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants