Files
floci/tools
Priamo Germosen 77c5d74a7d fix(iam): check the EventBridge Scheduler and Pipes routes (#6044)
Under IAM enforcement no Scheduler or Pipes route was mapped to an IAM
action, so every call to either went unchecked, and the roles they take
with it.

- Every Scheduler and Pipes route is mapped, tagging at /tags as well as
  /tags/<arn>, and IamRestRouteCoverageTest now checks every operation
  of both models. Each request is checked against the resource the
  Service Reference gives: schedule/<group>/<name>, the group read where
  Scheduler reads it (the body's GroupName on a create or an update,
  groupName otherwise, else default), schedule-group/<name>,
  pipe/<name>, the ARN a tagging route names, and * where the request
  names none. Scheduler and Pipes ARNs are minted in the request's
  partition, as those services mint theirs.
- SchedulerController joins the Scheduler descriptor, so a schedule
  request is checked as Scheduler whatever scope signs it. Otherwise one
  signed for another service was checked by that service's rules.
- The shared tagging routes, /tags and /v1/tags, hand a request to the
  service its ARN names, so it is checked as that service, against the
  ARN the controller acts on: the body's resourceArn on POST /tags, the
  query's on the other bare routes. Otherwise a Pipes grant could tag a
  schedule group, a scope with no tagging rule went unchecked, and a
  query ARN could stand in for the body's.
- iam:PassRole: CreateSchedule and UpdateSchedule pass the target's
  RoleArn to scheduler.amazonaws.com, and CreatePipe and UpdatePipe
  their RoleArn to pipes.amazonaws.com, as the Scheduler user guide's
  example policies and the EventBridge user guide say.
2026-10-20 17:17:48 -05:00
..