Transformations
Transformations
The transformations are defined right after the Seeders, and before the detection and alerting.
You can write powerful trigger
-then-mutate
blocks to trigger the mutation on a specific request or response.
These leverage the detectors and mutators, that will be covered in next sections.
Block structure
transform:
trigger:
- if: response.status_code
is: 200
- if: request.headers
key:
is: "X-Forwarded-For"
value:
is: "http://company.com"
mutate:
- key: request.headers
name: "X-Forwarded-For"
value: "http://localhost"