mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
A Query request without a usable credential scope is routed by its Action and Version, and IAM enforcement authorizes it under the service that routing picks. The names each service routed were kept by hand in AwsQueryController and had drifted from what the services serve: 170 names Floci dispatches, across eight services, reached no service and fell through to SQS. They answered UnsupportedOperation in SQS's namespace and were authorized as SQS actions. Each Query service's API versions and operations now come from its botocore models: tools/aws/regen_query_services.py writes them, from the pinned botocore, to aws/query-services.json, and make aws-data-check fails when the file is stale. Every name a service defines reaches it, implemented here or not. Floci keeps the list of services and their order, Cognito's names, which no Query model holds, and ElastiCache's ValidateIamAuthToken, which no model defines. A name several services define goes to the first of them when the request names no Version. Ten such names get a pinned owner instead, the service that serves them here, where the order would pick an earlier one that does not. The routing parity test checks every dispatched action with and without a Version and no longer needs its list of known gaps.