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
GetObjectAttributes does not authenticate the SSE-C key #84
GetObjectAttributes calls GetObjectInfo, checks that SSE-C headers are present through DecryptObjectInfo, but never unseals the supplied key. A syntactically valid wrong key therefore returns HTTP 200 for both zero-byte and non-empty SSE-C objects. HeadObject and the normal GET data path already authenticate the key.
Impact
The response can expose plaintext object size and completed multipart layout to a caller that has S3 read permission but not the customer key. ETag/checksum decryption remains fail-closed, but the behavior diverges from S3 and from the other object-read APIs. This is inherited, not introduced by the current release delta.
Reproduction
Create an SSE-C object, then issue GET /bucket/key?attributes with x-amz-object-attributes: ObjectSize,ETag,ObjectParts,Checksum and a different 32-byte key whose MD5 header is internally valid. Current result: 200. Expected: 403 AccessDenied.
Selected repair
After request preconditions, use crypto.SSEC.UnsealObjectKey exactly as HeadObjectHandler does. Keep this separate from #82: #82 fixes the zero-byte GetObjectNInfo early return, while this API uses GetObjectInfo and is affected at every object size.
Acceptance criteria
correct SSE-C key: 200 for zero-byte and non-empty objects;
wrong key: 403 for both;
missing key: existing 400 behavior unchanged;
precondition ordering unchanged;
focused normal/race, full cmd, and remote CI pass.
A local candidate and dual-backend regression test exist but are not yet pushed.
PR #95 contains the focused GetObjectAttributes SSE-C key-authentication fix and zero/nonzero dual-backend regression tests. Focused normal/race and vet pass locally; hosted CI is now running.
Resolved by #95. GetObjectAttributes now authenticates SSE-C keys for all object sizes after preconditions while preserving the replication carve-out. Final main 1be684b passed Go CI, VulnCheck, the full local race suite, and Test Release run 33254848256.
Activity
Vonng commentedon Aug 29, 2026
PR submitted
PR #95 contains the focused GetObjectAttributes SSE-C key-authentication fix and zero/nonzero dual-backend regression tests. Focused normal/race and vet pass locally; hosted CI is now running.
Vonng commentedon Aug 29, 2026
Resolved by #95. GetObjectAttributes now authenticates SSE-C keys for all object sizes after preconditions while preserving the replication carve-out. Final main 1be684b passed Go CI, VulnCheck, the full local race suite, and Test Release run 33254848256.
fix: authenticate SSE-C for object attributes