Skip to content

Request path and request trace ​

Problems with the request path panel of an application, and with tracing a single request through the modules.

The Request path panel is missing on an application page ​

  • Symptom: there is no panel on the right of an application's settings page.
  • Cause: the window is narrower than 1280 px, so the panel becomes a Request path button that opens a drawer. Or the panel was collapsed (this is kept per browser). Or the page could not read GET /v1/apps/NAME/path, in which case the panel shows an error line.
  • Check: widen the window, or look for the button in the page header. Run waap apps path -app NAME.
  • Fix: open the drawer, or expand the panel with its arrow. An error is usually a removed application or an expired session. In that case, sign in again.

A stage shows Off although it is configured ​

  • Symptom: the path, or a trace, lists a stage as off, while its section exists in the policy.
  • Cause: the module is present but switched off (enabled: false). Or it has nothing to check: file uploads and data leaks without rules, sessions without session cookies, the learned model neither learning nor enforcing, or virtual patches with signatures off.
  • Check: waap apps path -app NAME -json (the stage's enabled), and the section's own get command.
  • Fix: switch it on, and add at least one rule on its page.

waap apps trace returns 403, 404, 429 or 503 ​

  • Symptom: the trace is refused.
  • Cause:
    • 403: the account is a viewer. A trace runs the engine on supplied input, so it needs the operator role.
    • 404: the application is outside the account's scope, or -record names a record of another application, or a record this node does not hold (the traffic log is per node).
    • 429: another trace is running on this node. Only one runs at a time.
    • 503: this process runs no control plane tracer.
  • Check: waap admin for the role. waap traffic show ID on the node that served the request.
  • Fix: use an operator account in scope. Run the trace on the node that holds the record. Retry after a few seconds.

A trace says "allowed" but live traffic of the same request is blocked (or the reverse) ​

  • Symptom: the trace outcome differs from the event or traffic record of a real request.
  • Cause: stateful checks start empty in a trace. These are rate limits, bot scores built over many requests, session bindings, flows, ownership, replay and attestation. Answer stages are not run. Reverse-DNS bot verification and antivirus scans do not run. A masked record (policy.logging.mask: pci), or a body cut by the traffic log, differs from the original. The configuration version may have changed since. A fetched address list may still be loading on a control-only node, which has only the inline entries.
  • Check: the trace's notes, waap explain EVENT-ID for the live decision, and the version in both.
  • Fix: trace with the full request (-body-file, every header) and the same -version. For rate limits and bot scores, read the live event instead, because a single trace cannot reproduce a count.