Skip to content

Federated CopyObject silently ignores a requested checksum algorithm #99

Description

@Vonng

Summary

In a legacy etcd bucket-federation deployment, a whole-object CopyObject that crosses deployments returns 200 with no checksum, even when the client explicitly requests one. The request is neither honored nor rejected.

This is the whole-object counterpart of #72, which fixed the same class of problem for federated UploadPartCopy.

Evidence

Driven through the real federation branch (a second HTTP endpoint serving the remote deployment, forwarding through getRemoteInstanceClient and minio-go), on both object-layer backends:

PUT /remoteBucket/dst
  x-amz-copy-source: /srcBucket/src
  x-amz-checksum-algorithm: CRC32
->
  200
  <CopyObjectResult><LastModified>…</LastModified><ETag>"…"</ETag></CopyObjectResult>

response ChecksumCRC32 = ""      want "3aNLCg=="
response ChecksumType  = ""

The local (non-federated) path returns the checksum correctly, so the two paths now disagree.

Cause

cmd/object-handlers.go, federated branch of CopyObjectHandler:

remoteObjInfo, rerr := core.PutObject(ctx, dstBucket, dstObject, srcInfo.Reader,
    srcInfo.Size, "", "", opts)
...
objInfo.UserDefined = cloneMSS(opts.UserMetadata)
objInfo.ETag = remoteObjInfo.ETag
objInfo.ModTime = remoteObjInfo.LastModified

Two gaps:

  1. remoteObjInfo.ChecksumCRC32/CRC32C/SHA1/SHA256/CRC64NVME are discarded, so the later objInfo.decryptChecksums(...) finds nothing to return.
  2. The miniogo.PutObjectOptions passed to the remote write carries no checksum algorithm, so the remote deployment is never asked to compute one either — the object is persisted without a checksum too.

Provenance and scope

The federated branch is byte-identical to RELEASE.2026-08-06T00-00-00Z, so this is not a regression. It became visible because f2520f334 added checksums to the CopyObject response for the local path, and the federated path was not covered.

Affects only legacy etcd bucket federation (globalDNSConfig set and MINIO_BUCKET_FEDERATION enabled), which upstream has deprecated. Not release-gating.

Expected

Either return and persist the requested checksum on the federated path, matching the local path and #72, or reject a checksum request that the federated path cannot satisfy. Silently discarding it is the one behavior that should not remain.

Activity

  1. Vonng commented on Sep 2, 2026

    @Vonng
    MemberAuthor

    20260903 release-boundary update: reproduced and documented, not fixed in this release.

    The defect is confined to legacy etcd bucket federation; the local CopyObject path and federated UploadPartCopy checksum repair are unaffected. Until this issue is fixed, a cross-deployment CopyObject request that asks for a checksum must not assume a successful response means the requested algorithm was persisted or returned.

    This remains an open compatibility bug and a deployment-specific limitation, not a blocker for servers that do not enable the legacy federation backend.

  2. added
    bug
    on Sep 2, 2026
  3. moved this from Backlog to In progress in Siloon Sep 8, 2026
  4. moved this from In progress to Done in Siloon Sep 8, 2026
  5. moved this from Done to In progress in Siloon Sep 8, 2026
  6. self-assigned this
    on Sep 15, 2026
  7. added theissue type on Sep 15, 2026
  8. added this to the 20260916 milestone on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

  • Status
    In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions