Skip to content

Add strict layout loading under a chosen name and a create overload for external rootfs - #1024

Open
realrajaryan wants to merge 1 commit into
apple:mainfrom
realrajaryan:strict-layout-load
Open

realrajaryan wants to merge 1 commit into
apple:mainfrom
realrajaryan:strict-layout-load

Conversation

@realrajaryan

Copy link
Copy Markdown
Member

Add ImageStore.load(from:as:platform:) so callers can load an untrusted OCI layout under a name they pick. It ignores the layout's names and takes every blob from the layout, so a layout can't replace another image or use another image's layers from the store.

Make imports fetch a blob from the source when a garbage collection removes it from the content store mid-import, instead of failing.

Add ContainerManager.create(_:image:rootfs:writableLayerSizeInBytes:) so callers with a rootfs outside the container's directory, like an NBD export, get a writable layer without building it themselves.

This branch has not been deployed

No deployments
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.

1 participant