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
{{ message }}
Repository navigation
CRC64NVME + COMPOSITE is silently canonicalised to FULL_OBJECT instead of rejected #50
CreateMultipartUpload with x-amz-checksum-algorithm: CRC64NVME and x-amz-checksum-type: COMPOSITE should be rejected. AWS's algorithm/type matrix
lists CRC-64/NVME as supporting the full object type only, and the API reference states that CRC64NVME "is always a full object checksum".
Current Behavior
The combination is accepted and silently canonicalised to a full object checksum.
internal/hash/checksum.go
funcNewChecksumType(alg, objTypestring) ChecksumType {
full:=ChecksumFullObjectswitchobjType {
casexhttp.AmzChecksumTypeFullObject:
casexhttp.AmzChecksumTypeComposite, "":
full=0...case"CRC64NVME":
// AWS seems to ignore full value, and just assume it.returnChecksumCRC64NVME
}
so the requested COMPOSITE mode is discarded and the upload behaves as full object
everywhere downstream.
This became externally visible after the #31 fix: an upload declaring CRC64NVME + COMPOSITE and completing without part checksums in the body now returns 200 where it
previously returned 400 InvalidPart. The patch follows MinIO's own canonical internal
state consistently - the underlying inconsistency is that the invalid combination is
accepted at initiation in the first place.
Impact
No integrity impact: the resulting object gets a correct full object CRC64NVME checksum, and ListParts / HeadObject report FULL_OBJECT. The problem is that a client asking for a
combination AWS rejects gets a silent substitution instead of an error, so it cannot tell
that it did not get what it asked for.
Possible Solution
Reject CRC64NVME + COMPOSITE at CreateMultipartUpload (and on PutObject), matching
AWS. This is a behaviour change for requests clients can send today, so it needs a
deliberate decision rather than a silent tightening - hence a separate issue rather than
folding it into the #31 fix.
PR #93 rejects CRC64NVME plus COMPOSITE for multipart initiation and PutObject. It is stacked on the broader unsupported-checksum contract PR #92. Focused normal/race and handler/object non-creation tests pass locally.
Final adversarial assembly review found one remaining type-only CompleteMultipartUpload canonicalization introduced by the foundation checksum-type work. PR #96 removes it and asserts BadDigest plus object non-creation.
Legacy in-flight CRC64NVME uploads remain readable because their stored metadata is already FULL_OBJECT. With PRs #92, #93, and #96, initiation, PutObject, streaming trailers, and completion all reject the invalid COMPOSITE assertion.
Resolved by #93 and the completion-path coverage in #96. Final main is 1be684b; its Go CI, VulnCheck, full local race suite, and Test Release Pipeline (run 33254848256) all passed. CRC64NVME + COMPOSITE is now rejected consistently instead of being silently canonicalized.
Activity
Vonng commentedon Aug 29, 2026
PR submitted
PR #93 rejects CRC64NVME plus COMPOSITE for multipart initiation and PutObject. It is stacked on the broader unsupported-checksum contract PR #92. Focused normal/race and handler/object non-creation tests pass locally.
Vonng commentedon Aug 29, 2026
Completion-path follow-up
Final adversarial assembly review found one remaining type-only CompleteMultipartUpload canonicalization introduced by the foundation checksum-type work. PR #96 removes it and asserts BadDigest plus object non-creation.
Legacy in-flight CRC64NVME uploads remain readable because their stored metadata is already
FULL_OBJECT. With PRs #92, #93, and #96, initiation, PutObject, streaming trailers, and completion all reject the invalidCOMPOSITEassertion.Vonng commentedon Aug 29, 2026
Resolved by #93 and the completion-path coverage in #96. Final main is 1be684b; its Go CI, VulnCheck, full local race suite, and Test Release Pipeline (run 33254848256) all passed. CRC64NVME + COMPOSITE is now rejected consistently instead of being silently canonicalized.