Skip to content

Client identity ​

Symptoms of client identity: how the product names a client (by address, cookie, header, consumer or JWT claim) for rate limits, bans and events.

The identity page's test says "absent" for a header source that works in production ​

  • Cause: the test checks trusted_from against the address typed in "Client address". Without one, or with an address outside the listed networks, a header source is ignored, exactly as for a real request.
  • Check: type the gateway's address (the peer that sets the header) as the client address.
  • Fix: none is needed if the real traffic is identified. Otherwise see A header source is ignored.

Rotating the identity key is refused ​

  • Symptom: 403 "needs the admin role", 400 asking for confirmation, or 503 "keys are rotated by the control plane's active node".
  • Cause: only administrators rotate, the request must confirm (waap identity rotate-key -app A -yes), and the key store lives on the active node of a pair.
  • Fix: sign in as an administrator and confirm, or run the command on the active node (waap ha status shows which node that is).

Events filtered by an identity key find nothing after a change ​

  • Cause: the key is a keyed hash. A rotation, or a changed source list that names clients differently (a cookie instead of an address), gives clients new keys; older events keep the old ones.
  • Check: open a recent event of the client (waap events show ID) and copy its identity key.
  • Fix: filter by the key from a recent event; for older events, filter by the client address.
  • Cause: the node has no identity key yet (a fresh node before its first state sync), so the address stands in; or the configured source is not present in the requests.
  • Check: the node's log for "no identity key yet" (logged once per policy version and application); the event's capture for the cookie or header.
  • Fix: wait for the next state sync, which takes seconds. If the log line keeps coming after restarts, check the store sync between the control and inspection roles (see Replication for pairs). For a missing source, fix the cookie or header name; cookie names are exact and case-sensitive.

A header source is ignored ​

  • Cause: the client address the product sees is not in the source's trusted_from. If the gateway that sets the header is also listed in trusted_proxies, the client address is the end user's (from X-Forwarded-For), not the gateway's.
  • Check: the event's client_ip against trusted_from.
  • Fix: list the gateway's address in trusted_from and remove it from trusted_proxies, or use a consumer or jwt_claim source instead.

Configuration refused: "jwt_claim needs a JWT rule" ​

  • Cause: a jwt_claim source without any policy.api.auth.jwt rule. Claims are read only from tokens whose signature the product verified.
  • Fix: add a JWT rule for the paths (see Authentication and API keys), or use another source.

Configuration refused: "carries credentials" for a header source ​

  • Cause: Authorization, Cookie or Proxy-Authorization used as a header source. These carry credentials that must be verified, not trusted as names.
  • Fix: use consumer or jwt_claim (both verified), or a cookie source for a session cookie.

Requests refused with identity.required ​

  • Cause: identity.require.action: refuse in block mode, and the request was identified only by its address (no consumer, claim, user, cookie or header present), for example an unauthenticated health check or a client before login.
  • Check: the event's reason value (the kind found, ip or ip_ja4) and path.
  • Fix: narrow require.paths, set action: log, or add an exception with ignore_rules: [identity.required] for the path.

One user shows several identities, or many users one ​

  • Cause: a source that changes per request (a rotating cookie, a per-request token), or one that many clients share (a constant header value, or ip behind a NAT).
  • Check: the event labels (with masking off) for the kind that won.
  • Fix: order the sources so a stable per-user value comes first (consumer, jwt_claim: sub, the session cookie). For IPv6 clients, adjust ipv6_prefix.