Files
floci/docs/services
Priamo Germosen 9062572948 feat(iam): read a REST request's resources from its path and query (#7499)
The table of request resources read only a request's body or Query
form, so no REST namespace was read: a REST request names its
resources in its path and its query. An OpenSearch Service request
naming its domain, DescribeDomain on
/2021-01-01/opensearch/domain/{DomainName}, was left unchecked by the
routes the previous change reads, as Floci could not check it on the
domain AWS checks it on.

- The generator reads a rest-json request's members in its path and
  its query as members, under their botocore names, and records where
  each one a resource reads is (`located`): a path label, `{Label}`, or
  a query parameter, `?name`. RequestResources lays them over the body,
  a label's value from the route the request matched in the vendored
  routes (IamActionRegistry.pathLabels, IamRestRoutes now capturing
  each label), a query parameter's from the query, so every kind of
  resource reads them as it reads the body's. A located member is read
  from where it is alone, as its handler reads it: one the body also
  gives is dropped.
- A namespace read this way also takes the operations of each botocore
  model Floci reads routes for under it (regen_rest_routes.MODELS) that
  the reference lists for none of its clients, each the action of its
  own name with that action's resource types, when the reference has
  that action: the reference lists OpenSearch Service's `es` client
  alone, while the `opensearch` client's operations are named after
  `es` actions. --verify checks such an operation's action and types
  against the reference's Actions, and reports one whose action AWS no
  longer has.
- `es` moves from NOT_COVERED to NAMESPACES: 120 operations, both API
  versions', 1505 over 34 namespaces. Every domain route Floci serves
  reads its domain, from the path, the body or `?arn`, on
  `domain/<DomainName>`, the ARN Floci mints. Those whose resource the
  table does not find (outbound connections, applications, insights)
  are routes Floci does not serve.
- Reading rest-json would also have read the Payment Cryptography data
  plane's key from its path; Floci serves only the control plane, so
  `payment-cryptography-data` joins CLIENTS_NOT_READ with its reason
  and its operations stay as they were. No other entry changes.

With the domain operations in the table, the routes check them by the
resources-read half of the join rule. IamActionRegistryTest checks the
domain routes and the labels a request's path gives;
RequestResourcesTest reads a path label, a query parameter and a body
together; IamRestRouteEnforcementIntegrationTest checks DescribeDomain,
DescribeElasticsearchDomain and ListTags on the domain they name; the
generator tests cover the located members, a member two clients locate
apart, the REST models' operations and a round trip through --check and
--verify. iam.md says so.
2026-11-04 08:05:50 -06:00
..
2026-08-21 00:09:04 -04:00