Repository navigation
Description
Summary
An x-amz-grant-* header naming an emailAddress= grantee is silently skipped rather
than refused. Real S3 has ended support for email grantees and now returns an HTTP 405.
Found while implementing #470, which added s3ParseGrantees (emulator/s3_acl.go) — the
function reads the id= and uri= grantee forms and drops anything else, so an
email-grantee grant is neither stored nor reported.
What real S3 does
From the end-of-support notice at the head of every ACL-bearing operation's API
reference page (PutObject, PutBucketAcl, PutObjectAcl, CopyObject,
CreateBucket, CreateMultipartUpload):
End of support notice: As of October 1, 2025, Amazon S3 has discontinued support
for Email Grantee Access Control Lists (ACLs). If you attempt to use an Email Grantee
ACL in a request after October 1, 2025, the request will receive anHTTP 405(Method
Not Allowed) error.This change affects the following AWS Regions: US East (N. Virginia), US West (N.
California), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia
Pacific (Tokyo), Europe (Ireland), and South America (São Paulo).
Substrate's simulated clock is past that date, so the 405 is the current behaviour, not a
future one.
Why it was scoped out of #470
Two reasons, both of which need deciding rather than assuming:
- It is Region-conditional. The notice names eight Regions. Email grantees were only
ever supported in those eight, so outside them the failure mode is a different one
(InvalidArgumenton an unrecognised grantee type, uncaptured). Substrate carries a
Region on every request, so it could honour the list — but the behaviour outside the
list has no citation behind it. - The XML body form is affected too.
PutBucketAcl/PutObjectAclaccept a grantee
as<Grantee xsi:type="AmazonCustomerByEmail"><EmailAddress>…</EmailAddress></Grantee>
as well as through the header, so a fix that only reads headers leaves half the surface
open.
No error document is documented
The notice gives a status code and nothing else — no error Code, no message. A 405 with
an S3 error body needs a code, and inventing one is exactly what docs/fidelity.md's
provenance rule exists to prevent. A capture against a live Region would settle it.
Acceptance criteria
- Decide and record whether the refusal is Region-gated, and against what for the
Regions outside the notice's list. -
PutObject/CopyObject/CreateMultipartUpload/CreateBucketwith
x-amz-grant-read: emailAddress="[email protected]"→ HTTP 405, nothing written. - The same for
PutBucketAcl/PutObjectAcl, through both the header and the
AmazonCustomerByEmailXML grantee. - The error
Codeand message have a stated provenance — a capture, or labelled as
substrate's own perdocs/fidelity.md. -
emulator/s3_acl.go'ss3ParseGranteesdoc comment updated: it currently cites
this issue as the reason the 405 is not returned.
Activity
scttfrdmn commentedon Sep 20, 2026
Left unmilestoned deliberately in the roadmap pass that assigned the other 84 open issues to v0.121.0–v0.127.0.
Consistent with the
status: needs-designlabel already on it. It is grouped with the two S3 server-side-encryption issues — #475 and #493 — as one feature needing a single design pass.The undecided point is the one the title names: whether skipping an
emailAddressgrantee should become a refusal, and under which status. That has to be settled against what the S3 ACL documentation actually publishes about email-address grantees before it is code, which is the kind of decisionCLAUDE.mdwants made in an issue first — so it is not yet a release's worth of known work.scttfrdmn commentedon Nov 15, 2026
Milestoned v0.128.0 and removed
status: needs-design.The 2026-09-20 hold grouped this with the two server-side-encryption issues so they could be designed together. Both are now delivered (#492 in v0.87.0, #493 in v0.123.0; #475 is closed), so this one no longer waits on that design.
What's left is the question this issue already frames: what S3 publishes for an
emailAddressgrantee since the 2025-10-01 end-of-support notice on the ACL-bearing operations. Settle the exact code, status and message against those API pages when this is implemented. Until then the grantee is skipped silently, which is a member read and then discarded. That is the v0.128.0 theme.fix(#1489, #1477, #1474, #507): review — one copy-source parser, shar…
fix(#1245, #1244, #1477, #1489, #1474, #507): ELB paging, IAM single-…