Appearance
Trace a request Since v0.2
Two tools show how an application's checks treat a request. The Request path panel lists the stages in the order the inspection service runs them. Trace a request runs a request you describe, or one from the traffic log, through the current policy and reports what each stage did. Nothing is sent to your servers and nothing is recorded.
Before you begin
- Role:
viewerreads the request path.operatorruns a trace, and every trace is audited (method and outcome only). - To trace a logged request, you need its traffic record ID. For details, see Traffic log.
Read the request path
Every application settings page (Overview, General, Access and rate limits, Bot mitigation, API protection, Signatures, and the others) shows the Request path panel on the right. It lists the stages from the client request down to the upstream server and back to the client. Each stage has a one-line description, a badge with what it holds (4 rules, 2 limits, 1 patch), a mark for detect mode, and a link to its settings page. The stage of the page you are on is highlighted. Stages that are off are grey and say Off.
Collapse the panel with its arrow; the choice is kept in your browser. Below 1280 px wide the panel is hidden and the Request path button opens it as a drawer. The panel header links to Trace a request.
text
1. Open Applications > All applications, and select the application.
2. Open any settings page. The Request path panel is on the right.sh
waap apps path -app shop
waap apps path -app shop -jsontext
GET /v1/apps/shop/pathThe order comes from one table in the code that the inspection builder's tests check against the modules it really builds, so the panel cannot drift from the pipeline. A module that works on both the request and the answer appears in both sections.
Trace a request
text
1. Open Applications > All applications, and select the application.
2. Open Trace a request (or follow the link in the Request path panel).
3. Enter the Method, URL (path and query), Host, Client address, Headers and Body.
Or open Load from a logged request and enter a Record ID.
4. Optionally choose a stored Configuration version to compare against.
5. Select Run trace.sh
waap apps trace -app shop -url '/search?q=x' -header 'User-Agent: Mozilla/5.0'
waap apps trace -app shop -record REQUEST-IDtext
POST /v1/apps/shop/traceA traffic record's page has Trace again, which opens this page with the record filled in.
The result is the same vertical path. Each stage is marked Passed, Matched (detect), Blocked, Skipped, Off, Not reached or Not run, with its time. Open a stage to see its matches: rule ID, variable and name, the matched value and the severity. The summary says what would happen in the application's modes (allowed, logged, would block in detect mode, blocked with the status, or challenged) and shows the attack and anomaly scores.
What a trace does and does not do
- It runs in the control plane with the real modules and signature engine. The data plane is not involved, and nothing is written: no security event, traffic record, ban, counter, learned data or inventory entry.
- Stateful checks start empty for each trace. Rate limits, bot scores, session bindings, flows, object ownership, replay caches, attestation tokens and LLM budgets show what one request on its own triggers. Reverse-DNS bot verification is not run, and no file is sent to an antivirus server.
- Answer stages (response signatures, cookies, header hardening, data leak masking) need the answer from your server, so they are listed as Not run.
- A logged request of an application that masks values is traced with the masked values, and the result says so. A body that the traffic log cut is traced in part.
Settings reference
CLI flags of waap apps trace
| Setting | What it does | Default | Allowed values | Applies in |
|---|---|---|---|---|
-method | Request method. | GET | an HTTP method | all |
-url | Path and query as sent. | / | starts with / | all |
-host | Host header. | the application's first host name | host name | all |
-scheme | Scheme of the request. | https | http, https | all |
-header | A request header, "Name: value"; repeat for more. | none | up to 200 headers, 128 KiB in all | all |
-body, -body-file | Request body; - reads standard input. | none | up to 1 MiB; a binary file is sent as base64 | all |
-client | Client address. | 203.0.113.10 | IP address | all |
-ja3, -ja4, -tls-version | TLS facts for bot and session checks. | none | text | all |
-record | Run a logged traffic record of this node again. | none | request ID | all |
-version | Use a stored configuration version. | the active version | version number | all |
-json | Print the full result. | off | flag | all |
Limits
| Limit | Value |
|---|---|
| Body | 1 MiB (the application's body limit then applies as in production) |
| Headers | 200, 128 KiB in all |
| Concurrent traces | one at a time per node |
Troubleshooting
A trace says "Not run" for a response stage
- Cause: a trace has no answer from your server, so answer stages cannot run.
- Fix: read those stages' events from real traffic instead.
The trace allows a request that was blocked in production
- Cause: stateful checks start empty in a trace. The production block may come from a rate limit, a ban, a bot score or a session state.
- Check: open the event in Events and read the module that decided.