Skip to content

Add dmverity support to the erofs snapshotter using veritysetup-go#14

Merged
aadhar-agarwal merged 1 commit into
mainfrom
aadagarwal/integrate-with-goverity
Apr 6, 2026
Merged

Add dmverity support to the erofs snapshotter using veritysetup-go#14
aadhar-agarwal merged 1 commit into
mainfrom
aadagarwal/integrate-with-goverity

Conversation

@aadhar-agarwal

@aadhar-agarwal aadhar-agarwal commented Nov 6, 2025

Copy link
Copy Markdown
Owner

Add dm-verity support for EROFS layers in containerd

This PR introduces block-level data integrity verification for EROFS container layers using device-mapper verity (dm-verity):

  • Integrates veritysetup-go to natively create Merkle hash trees and dm-verity devices for EROFS blobs.
  • Adds new configuration: enable_dmverity = true for both snapshotter and differ plugins.
  • EROFS layers are formatted with a dm-verity hash tree; metadata is stored in layer.erofs.dmverity alongside the blob.
  • At runtime, each layer is mounted via a dm-verity device (read-only) and verified.
  • Mount options for dm-verity are passed via the mount manager and applied per layer.
  • Extensive tests cover formatting, mounting, idempotency, error cases, and end-to-end workflow.
  • Non-Linux environments gracefully handle unsupported dm-verity operations.

Note: When enabled, it requires a Linux kernel with dm-verity support and the dm_verity module loaded. If using the veritysetup cli is preffered, please refer to

@aadhar-agarwal aadhar-agarwal changed the title Aadagarwal/integrate with goverity Integrate with goverity Nov 6, 2025
@aadhar-agarwal
aadhar-agarwal changed the base branch from main to aadagarwal/erofs-snapshotter-with-dmverity November 6, 2025 20:02
@aadhar-agarwal
aadhar-agarwal changed the base branch from aadagarwal/erofs-snapshotter-with-dmverity to main November 7, 2025 19:48
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch 3 times, most recently from 8e2fe31 to 589fb71 Compare November 9, 2025 07:32
@aadhar-agarwal aadhar-agarwal changed the title Integrate with goverity Add dm verity support to the erofs snapshotter using veritysetup-go Nov 9, 2025
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch from e5e5a33 to ec43167 Compare November 11, 2025 01:59
@aadhar-agarwal aadhar-agarwal changed the title Add dm verity support to the erofs snapshotter using veritysetup-go Add dmverity support to the erofs snapshotter using veritysetup-go Nov 11, 2025
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch 19 times, most recently from 15ad777 to aabd751 Compare November 18, 2025 01:40
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch 2 times, most recently from 19dc570 to cc76209 Compare November 18, 2025 23:26
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch from 2727074 to a200f4d Compare November 22, 2025 09:03
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch 8 times, most recently from cb166d3 to c98e8c0 Compare December 4, 2025 15:26
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch 2 times, most recently from b5d5935 to f0c88fb Compare December 9, 2025 21:55
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch from f0c88fb to c635aec Compare December 18, 2025 23:41
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch 3 times, most recently from e92963c to 8f3632d Compare January 5, 2026 18:11
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch 6 times, most recently from 53db6d5 to b85c87b Compare January 12, 2026 17:14
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch from b85c87b to fee0ecb Compare January 14, 2026 20:56
@aadhar-agarwal
aadhar-agarwal force-pushed the aadagarwal/integrate-with-goverity branch 7 times, most recently from dab3689 to 064bba7 Compare January 26, 2026 20:58
Signed-off-by: Aadhar Agarwal <aadagarwal@microsoft.com>
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