Files
floci/tools
Priamo Germosen 2e00917c69 feat(iam): tell apart the operations of a REST route by what botocore requires (#9143)
Thirteen of botocore's S3 routes name more than one operation (PUT /{Bucket}/{Key+} is PutObject,
CopyObject, UploadPart or UploadPartCopy), which is why S3 is hand-routed. The route generator now gives
each operation of a shared route the query parameters and headers of the members its input requires, and
marks a deprecated one. An operation botocore's endpoint rules sign for another service on every request
is left out of the scope's routes and listed under signedElsewhere: S3's ListDirectoryBuckets
(s3express) and WriteGetObjectResponse (s3-object-lambda). The check that a route's operations leave
every request one operation now covers the hand-routed scopes too: no two current ones may require the
same, and what any two require together must be what one of them requires. It passes for S3.

IamRestRoutes matches a route only for a request carrying all its operation requires, headers in any
case, ranks a route requiring all another requires and more above it and a current operation above a
deprecated one, and gives a match its model. IamActionRegistry passes the request's headers wherever it
matches a route. S3 stays hand-routed and no route outside it is shared, so no request is authorized
differently.
2026-11-21 11:45:16 -04:00
..