Skip to content

S3: an emailAddress grantee is skipped rather than refused with HTTP 405 #507

Closed

Description

@scttfrdmn

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 an HTTP 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:

  1. 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
    (InvalidArgument on 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.
  2. The XML body form is affected too. PutBucketAcl/PutObjectAcl accept 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/CreateBucket with
    x-amz-grant-read: emailAddress="[email protected]" → HTTP 405, nothing written.
  • The same for PutBucketAcl/PutObjectAcl, through both the header and the
    AmazonCustomerByEmail XML grantee.
  • The error Code and message have a stated provenance — a capture, or labelled as
    substrate's own per docs/fidelity.md.
  • emulator/s3_acl.go's s3ParseGrantees doc comment updated: it currently cites
    this issue as the reason the 405 is not returned.

Activity

  1. added
    type: bug
    area: s3
    status: needs-design
    on Aug 2, 2026
  2. scttfrdmn commented on Sep 20, 2026

    @scttfrdmn
    OwnerAuthor

    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-design label 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 emailAddress grantee 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 decision CLAUDE.md wants made in an issue first — so it is not yet a release's worth of known work.

  3. added
    priority: low
    and removed
    status: needs-design
    on Nov 15, 2026
  4. added this to the v0.128.0 milestone on Nov 15, 2026
  5. scttfrdmn commented on Nov 15, 2026

    @scttfrdmn
    OwnerAuthor

    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 emailAddress grantee 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.

  6. added 2 commits that reference this issue on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: s3fidelitypriority: lowtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions