mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
IamActionRegistry kept 70 hand route rules for EKS. The generated REST routes, read from botocore, map every EKS route to the same action, except the access entry routes Floci's controller serves with the principal ARN unencoded: it takes the principal as {principalArn: .+} and a cluster access policy ARN after it with its slash sent as it is or encoded, where the model gives each one segment. Those six operations join ARN_SPANNING_ROUTES, as API Gateway v2's and OAM's tag routes are, so their labels span the slashes.
A DELETE on a principal whose IAM path holds an access-policies segment matches both DeleteAccessEntry's route and DisassociateAccessPolicy's, which outranks it, while EKS's router takes it as a disassociate only when a cluster access policy ARN follows. A request is now matched, of the routes it matches, to the one whose labels the path gives the values the router gave the path parameters of the method it dispatched to, when there is one: the route of the operation that runs. With that, the rules go, and none of EKS's is left.