Skip to content

Short-term kludges for recent AdditionalLayerStore changes#2428

Merged
rhatdan merged 3 commits intocontainers:mainfrom
mtrmac:als-toc-fixes
May 21, 2024
Merged

Short-term kludges for recent AdditionalLayerStore changes#2428
rhatdan merged 3 commits intocontainers:mainfrom
mtrmac:als-toc-fixes

Conversation

@mtrmac
Copy link
Copy Markdown
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č <mitr@redhat.com>
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č <mitr@redhat.com>
…layer

... but silently ignore the ALS layer.

Also add a FIXME.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac
Copy link
Copy Markdown
Collaborator Author

mtrmac commented May 20, 2024

Cc: @TomSweeneyRedHat @ktock

Copy link
Copy Markdown
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
Copy Markdown
Member

rhatdan commented May 21, 2024

LGTM

@rhatdan rhatdan merged commit 21ac79b into containers:main May 21, 2024
@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