Files
floci/docs/configuration
Priamo Germosenanddchakrav-github aeba963c8a feat(fis): fail the calls a running inject-api action impairs (#8793)
FIS's aws:fis:inject-api-internal-error, -throttle-error and
-unavailable-error actions were recorded as running and never did
anything. A running one now fails the calls it impairs: calls signed
with a session of one of its target roles, to one of the operations it
names in its service namespace, at its percentage.

- FisApiFaultFilter runs after IAM enforcement and reads the operation
  from the route that serves the call, through RequestOperationResolver,
  for every protocol. Only the accounts and Regions where such an
  experiment runs are looked into, so any other request costs a set
  lookup and leaves nothing cached, whatever account ID it names.
- EC2 answers with InternalError, RequestLimitExceeded or Unavailable,
  from its error code list. Kinesis answers with the common errors
  InternalFailure, ThrottlingException or ServiceUnavailable, in JSON or
  CBOR to match the request.
- Templates must give service as ec2 or kinesis, a percentage from 1 to
  100, comma-separated operations and a duration from one minute to 12
  hours. A template stored before these checks is checked again when an
  experiment starts from it.
- An inject-api action completes once its duration runs out, worked out
  on each read rather than on a timer, and an action that starts after
  it then starts. The experiment completes when every action has
  completed or been skipped.
- floci.services.fis.inject-api-any-service, off by default, lets the
  actions target any namespace, named by its IAM namespace or by the
  name it signs under. Those services answer with the common errors in
  their protocol's envelope, a Query or REST-XML ErrorResponse in the
  service's own XML namespace; Route 53's catalog entry now carries its
  namespace, as its own errors do.

The error bodies a filter answers with move into ProtocolErrorResponses,
which IamEnforcementFilter, AwsQueryController and ServiceEnabledFilter
now share instead of each building its own Query ErrorResponse.

The fault injection carries over the design of dchakrav-github's #4591.

Refs #4623

Co-authored-by: dchakrav-github <42748809+dchakrav-github@users.noreply.github.com>
2026-11-17 20:20:48 -04:00
..