Files
floci/tools/aws
Priamo Germosen 29384867cf fix(iam): check the Lambda MicroVM and network connector routes (#6122)
Under IAM enforcement no Lambda MicroVM or network connector route was
mapped to an IAM action, so every call went unchecked, and the roles
they take with it.

- Every MicroVM route (2025-09-09) and network connector route
  (2026-04-04) is mapped, and IamRestRouteCoverageTest now checks every
  operation of both models. An image or connector request is checked
  against microvm-image:<name> or network-connector:<id> in the
  request's account and Region, an identifier given as an ARN taken for
  its name, as the service looks it up. RunMicrovm is checked against
  the image its imageIdentifier names, an action on a running MicroVM
  against the image it runs, and a managed image's versions against
  that image, which aws owns. Creating an image or a connector and the
  list operations name no resource, so they are checked against *.
- Lambda's own tag routes, /2017-03-31/tags/<arn>, which MicroVM images
  share with functions, are mapped and checked against the resource
  they tag: the caller's own function, image or connector of the ARN's
  Region and name, whatever account the ARN names, as Lambda looks it
  up, a target without the arn: prefix read as the MicroVM tag handler
  reads it, and an event source mapping's ARN as written.
- iam:PassRole, to lambda.amazonaws.com as the Service Reference gives:
  CreateMicrovmImage and UpdateMicrovmImage (buildRoleArn), RunMicrovm
  (executionRoleArn), and CreateNetworkConnector and
  UpdateNetworkConnector (OperatorRole). This finishes the Lambda half
  of the follow-up on #5938.
2026-10-21 18:37:24 -05:00
..