mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 00:21:51 -05:00
The REST routes generator kept ARN_SPANNING_ROUTES, a list of the operations whose controller takes an ARN label with the slashes it was sent with unencoded (API Gateway v2's tag routes, OAM's and EKS's access entry routes), and vendored their labels greedy. IAM now matches such a request on the values the router gave the path parameters of the method it dispatched to, which covers every controller that takes a label so without a list, so the list goes and the routes keep the model's labels. A route agrees with the router when its labels, given the router's values in some order, rebuild the request's path, so a value holding one of the route's own segments (an EKS principal whose IAM path holds access-entries) is still matched, where taking the one split the spanning pattern finds would match no route. OAM's tag requests reach the shared tags controller, which serves no OAM tagging, so an OAM ARN sent unencoded is no longer checked as OAM's before that controller refuses it. The tests give the router's values where a request is unencoded, and an API Gateway v2 tag request with an unencoded ARN is checked through the router.