Skip to content

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: viewer reads the request path. operator runs 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 -json
text
GET /v1/apps/shop/path

The 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-ID
text
POST /v1/apps/shop/trace

A 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 ​

SettingWhat it doesDefaultAllowed valuesApplies in
-methodRequest method.GETan HTTP methodall
-urlPath and query as sent./starts with /all
-hostHost header.the application's first host namehost nameall
-schemeScheme of the request.httpshttp, httpsall
-headerA request header, "Name: value"; repeat for more.noneup to 200 headers, 128 KiB in allall
-body, -body-fileRequest body; - reads standard input.noneup to 1 MiB; a binary file is sent as base64all
-clientClient address.203.0.113.10IP addressall
-ja3, -ja4, -tls-versionTLS facts for bot and session checks.nonetextall
-recordRun a logged traffic record of this node again.nonerequest IDall
-versionUse a stored configuration version.the active versionversion numberall
-jsonPrint the full result.offflagall

Limits ​

LimitValue
Body1 MiB (the application's body limit then applies as in production)
Headers200, 128 KiB in all
Concurrent tracesone 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.