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

Short-term kludges for recent AdditionalLayerStore changes #2428

Merged
merged 3 commits into from
May 21, 2024

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented May 20, 2024

This is on top of #2416, partially addresses some of the concerns, and adds FIXMEs for other aspects.

Hopefully we can have better fixes over time.

See individual commit messages for details.

mtrmac added 3 commits May 20, 2024 20:29
Well, we trust it _anyway_ to actually validate the TOC digest and enforce
layer consistency, but it's simpler to use the known-trusted value
than to worry about the backend's trust.

Also add a FIXME about the case when the value is "".

Signed-off-by: Miloslav Trmač <[email protected]>
This shouldn't matter in practice because the returned struct
happens to be a copy, but that's not promised by the API.

Should not change behavior.

Signed-off-by: Miloslav Trmač <[email protected]>
…layer

... but silently ignore the ALS layer.

Also add a FIXME.

Signed-off-by: Miloslav Trmač <[email protected]>
@mtrmac
Copy link
Collaborator Author

mtrmac commented May 20, 2024

Cc: @TomSweeneyRedHat @ktock

Copy link
Contributor

@ktock ktock left a comment

Choose a reason for hiding this comment

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

Thanks!

@rhatdan
Copy link
Member

rhatdan commented May 21, 2024

LGTM

@rhatdan rhatdan merged commit 21ac79b into containers:main May 21, 2024
10 checks passed
@mtrmac mtrmac deleted the als-toc-fixes branch May 21, 2024 16:10
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.

3 participants