You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
copy: detect zstd:chunked sentinel layer and skip full-digest mitigation during pull
When pulling an image, the storage destination's FilterLayers method
detects the zstd:chunked sentinel layer, marks it as empty, and
internally records that SkipMitigation() should be called to bypass
unnecessary full-digest verification.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
// PutBlobWithOptions writes contents of stream and returns data representing the result.
225
237
// inputInfo.Digest can be optionally provided if known; if provided, and stream is read to the end without error, the digest MUST match the stream contents.
226
238
// inputInfo.Size is the expected length of stream, if known.
@@ -424,6 +436,10 @@ func (s *storageImageDestination) PutBlobPartial(ctx context.Context, chunkAcces
424
436
return private.UploadedBlob{}, err
425
437
}
426
438
deferdiffer.Close()
439
+
ifs.zstdChunkedSentinelDetected {
440
+
logrus.Debugf("Sentinel detected for layer %s: skipping full-digest mitigation", srcInfo.Digest)
0 commit comments