Skip to content

Limits and defaults Since v0.2 ​

This page lists the defaults and bounds that configuration validation and the inspection pipeline enforce. It is for operators who plan capacity or wonder why a request was refused. A value outside an allowed range is rejected when you validate or apply the configuration.

See the effective values ​

  • waap apps get -app NAME shows each application setting with its value, default, whether you set it, and its range. waap apps fields lists every key with its default and range.
  • waap settings get SECTION does the same for the settings shared by every application (events, traffic, analytics, and others).
  • waap config show prints the active configuration document.

For details, see CLI reference.

In the tables, a setting written as fixed is a constant in the product with no key to change it. Sizes use binary units (1MiB is 1048576 bytes). Durations use Go syntax (720h, not days).

Mode and failure policy ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
applications[].policy.modedetect (a new application always starts here)detect, blockWhether the application only logs or also stops attacks.Modes and limits
applications[].policy.on_inspection_failurefail_openfail_open, fail_closedWhat happens when inspection errors, a module stops at its budget, or Envoy cannot reach the inspection service.Modes and limits
applications[].policy.allowed_methodsGET, HEAD, POST, OPTIONS, PUT, PATCH, DELETEuppercase HTTP methodsMethods the application accepts.Modes and limits
applications[].policy.block_response.status403400 to 599Status sent with the block page.Modes and limits
Virtual patch enforce: blockfollows the application modeper patchA proven patch blocks even when the application is in detect.Virtual patches

Request limits ​

Refused over-limit requests get 413 (body) or 431 (headers), with an event that explains why.

SettingDefaultAllowed range / hard capWhat it limitsGuide page
applications[].policy.limits.request_body1MiB1 byte to 64 MiBRequest body bytes accepted and inspected.Modes and limits
applications[].policy.limits.header_count1001 to 1000Request headers per request.Modes and limits
applications[].policy.limits.header_bytes32KiB1 KiB to 1 MiBBytes of all request headers together.Modes and limits
applications[].policy.limits.arguments10001 to 10000Query and body parameters per request.Modes and limits
applications[].policy.limits.module_budget50ms1ms to 5sInspection time one module may take per request.Modes and limits
applications[].policy.allowed_methods listthe seven methods aboveno duplicatesMethods accepted.Modes and limits
fixed: block page size64KiB64 KiBSize of an uploaded replacement block page.Modes and limits
fixed: exceptions per applicationnoneat most 1000Entries in policy.exceptions.Rule exclusions
fixed: virtual patches per applicationnoneat most 1000 patches, 20 paths eachEntries in policy.virtual_patches.Virtual patches

Signatures ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
applications[].policy.signatures.paranoia_level11 to 4How many rule groups run.Paranoia and thresholds
applications[].policy.signatures.anomaly_threshold.inbound51 to 1000Score at which a request is acted on.Paranoia and thresholds
applications[].policy.signatures.anomaly_threshold.outbound41 to 1000Score at which a response is acted on.Paranoia and thresholds
applications[].policy.signatures.allowed_redirect_hostsnoneat most 256 entriesHosts a redirect may name without a finding.Answer confirmation

API body limits ​

Set per application under policy.api.limits. Defaults apply when the key is empty.

SettingDefaultAllowed range / hard capWhat it limitsGuide page
policy.api.limits.json.depth32up to 512JSON objects and arrays inside each other.Schema enforcement
policy.api.limits.json.keys1000up to 1000000Members in one JSON object.Schema enforcement
policy.api.limits.json.key_length256 bytesup to the name capBytes in one member name.Schema enforcement
policy.api.limits.json.string_length64KiBup to 64 MiBBytes in one string value.Schema enforcement
policy.api.limits.json.array_length10000up to 1000000Elements in one array.Schema enforcement
policy.api.limits.xml.depth32up to 512Elements inside each other.XML and SOAP
policy.api.limits.xml.elements10000up to 1000000Elements in one document.XML and SOAP
policy.api.limits.xml.attributes64up to 1000Attributes on one element.XML and SOAP
policy.api.limits.xml.name_length256 bytesup to the name capBytes in an element or attribute name.XML and SOAP
policy.api.limits.xml.value_length64KiBup to 64 MiBBytes in an attribute value or one element's text.XML and SOAP
policy.api.grpc.message_size4MiBup to 64 MiBBytes in one gRPC request message after decompression.Protocols
fixed: API description filesnone32 MiB togetherTotal size of the API description files (specifications, descriptor sets) in one configuration.Schema enforcement

Access control, rate limits and bans ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
policy.access.rulesnoneat most 1000 rulesAccess rules per application.Access rules
policy.access.rules[].ban_fornone (required with action ban)1s to 168hHow long an access rule bans a client.Access rules
fixed: access rule expressionnone2048 bytes; 1024 bytes for path_regexLength of expr and when.path_regex.Access rules
ip_lists[].cidrsnoneat most 100000 inline entriesEntries in one address list. Larger lists use url.Address lists
ip_lists[].refresh1h5m to 168hHow often a list fetched from a URL is reloaded (https only).Address lists
policy.rate_limits.rulesnoneat most 200 rulesRate-limit rules per application.Rate limits
policy.rate_limits.rules[].limitnone (required)1 to 1000000Requests allowed per window.Rate limits
policy.rate_limits.rules[].pernone (required)1s to 24hLength of the window.Rate limits
policy.rate_limits.rules[].actionblockblock, log, banWhat happens over the limit.Rate limits
policy.rate_limits.rules[].byclientclient, consumer, allWhat is counted. ban needs client.Rate limits
policy.rate_limits.rules[].ban_fornone (required with ban)1s to 168hLength of the ban.Rate limits
policy.rate_limits.per_client_concurrency0 (no cap)0 to 10000Requests one client may have open.Rate limits
policy.bansnot set (no automatic bans)all three keys below are required when setRepeat-offender banning is off until you set it.Bans
policy.bans.after_blocksnone (required when bans is set)1 to 1000Blocks within the window that trigger a ban.Bans
policy.bans.withinnone (required)1s to 24hWindow in which blocks are counted.Bans
policy.bans.fornone (required)1s to 168hLength of an automatic ban.Bans
management.trusted_networksempty (loopback only)at most 1000 entriesNetworks allowed to reach the management listener.Accounts and roles

Bots ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
policy.bots.responsesat score 30 challenge, at score 80 blockscores up to 100, at most 10 stepsThe ladder from bot score to response.Challenges
policy.bots.tarpit.delaynoneat most 60sHow long a tarpit step holds a refusal.Challenges
bot_listsnoneat most 200 lists, 100000 inline entries eachShared bot lists.Bot catalog
fixed: challenge path/.waap/fixed prefixPath the challenge uses on the application's host.Challenges
fixed: bot catalog entriesnoneat most 500Your own catalog entries.Bot catalog

Sessions and cookies ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
policy.sessions.cookiesnoneat most 8 namesSession cookies the module protects.Session protection
policy.sessions.bind.ipv4_prefix16 bits8 to 32IPv4 network size a session is bound to.Session protection
policy.sessions.bind.ipv6_prefix48 bits16 to 128IPv6 network size a session is bound to.Session protection
policy.sessions.grace_until7 days after the module is enabled from the forms or CLIa timeEnd of the period in which unbound sessions only log.Session protection
policy.cookies.keys.keep4up to 12Signing keys kept for cookie protection.Cookie protection

File uploads and antivirus ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
policy.files.rules[].max_size10MiB1 byte to 64 MiB, and the path's request body limit must allow itLargest file a rule accepts.File uploads
policy.files.rulesnoneat most 64 rules, 64 paths eachFile rules per application.File uploads
fixed: files per requestnone32Files taken from one multipart request.File uploads
fixed: archive nestingnone3 levelsArchives inside archives that are opened.File uploads
fixed: archive membersnone1000Members opened from one archive.File uploads
fixed: unpacked archive bytesnone64 MiBTotal unpacked size, also capped at 10 times the archive.File uploads
file_listsnoneat most 200 lists, 10000 inline hashes eachShared file hash lists.File uploads
policy.files.icap.max_size32MiB1 byte to the file rule capLargest file sent to the antivirus server. Larger files follow oversize.File uploads
icap_servers[].timeout10s1s to 61sHow long a scan may take.File uploads
icap_servers[].max_concurrent32 per inspection node1 to 256Scans in progress at once.File uploads
icap_serversnoneat most 16 serversAntivirus servers.File uploads

Event and traffic-log storage ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
events.retention720h (30 days)1h to 26280h (3 years)How long events are kept.Modes and limits
events.max_events10000001000 to 100000000Event count; the oldest go first.Modes and limits
events.max_bytes2GiB1 MiB to 16 TiBEvent storage size; the oldest go first.Modes and limits
events.capture_bodyeach application's request_body limit0 to 64 KiBRequest body bytes saved with an event. 0 keeps none.Logging and masking
traffic.modeallall, sample, offWhich requests the traffic log records. An application may override it with policy.logging.traffic.Traffic log
traffic.sample_rate10 (percent)1 to 100Share of requests recorded in sample mode.Traffic log
traffic.retention168h (7 days)1h to 26280hHow long traffic records are kept.Traffic log
traffic.max_records500000001000 to 1000000000Record count per node; the oldest go first.Traffic log
traffic.max_bytes5GiB1 MiB to 16 TiBTraffic store size per node; the oldest go first.Traffic log
traffic.bodyeach application's request_body limit0 to 64 MiBRequest body bytes kept per traffic record.Traffic log
traffic.response_bodyfalsetrue or falseRecords response bodies. Adds latency.Traffic log
applications[].policy.logging.maskoff (full values kept)off, pciWhether logged values are masked.Logging and masking
fixed: logged value size64KiB64 MiBA value longer than its bound is cut and marked …[truncated: N bytes]. The bound is normally the application's body and header limit; 64 KiB is the fallback, 64 MiB the hard cap.Logging and masking
fixed: rollup value size256 bytes256Bytes of a value kept in the hourly rollups behind analytics top lists.Analytics settings and limits

Analytics limits ​

Analytics queries read stored events and traffic records. The keys live under analytics.

SettingDefaultAllowed range / hard capWhat it limitsGuide page
analytics.max_scan_rows2500001000 to 5000000Rows one query reads before it samples.Analytics settings and limits
analytics.max_batch_rows1000000max_scan_rows to 20000000Rows one page or dashboard batch reads together.Analytics settings and limits
analytics.query_timeout5s1s to 60sTime one query may run (504).Analytics settings and limits
analytics.batch_timeout15squery_timeout to 120sTime one batch may run.Analytics settings and limits
analytics.max_range_traffic744h (31 days)1h to 744h, at most traffic.retentionLongest range of a traffic query.Analytics settings and limits
analytics.max_range_events2160h (90 days)1h to 8784hLongest range of an events query.Analytics settings and limits
analytics.max_buckets36060 to 1440Points in one time series.Analytics settings and limits
analytics.max_top_n10010 to 500Values in one top list.Analytics settings and limits
analytics.max_concurrent2 per node1 to 16Queries running at once.Analytics settings and limits
analytics.max_queued8 per node1 to 64Queries waiting for a slot; more answer 429.Analytics settings and limits
analytics.per_user_per_minute60 per node1 to 1000Analytics requests per user per minute.Analytics settings and limits
analytics.cache_ttl30s1s to 10mHow long a repeated query is answered from memory.Analytics settings and limits

For the remaining analytics keys (sample_above_rows, rollup_min_range), see Analytics settings and limits.

Delivery and upstreams ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
applications[].upstream.connect_timeout5s1ms to 60sTime to connect to an upstream server.Server pools
applications[].upstream.health_check.interval5s1s to 5mTime between health probes.Server health
applications[].upstream.health_check.timeout2sabove 0, shorter than the intervalTime one probe may take.Server health
applications[].upstream.health_check.healthy_after21 to 10Passing probes before a server is used again.Server health
applications[].upstream.health_check.unhealthy_after31 to 10Failing probes before a server is removed.Server health
listeners[].tls.min_version1.2TLS versionsLowest TLS version a HTTPS listener accepts.Virtual servers
server_poolsnoneat most 1024 pools, 256 servers eachShared pools.Server pools
vipsnoneat most 1024Virtual IP addresses.VIPs

High availability ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
ha.heartbeat_interval200ms50ms to 5sTime between heartbeats to the peer.Failover
ha.peer_timeout1sat least 3 heartbeats, at most 30sSilence after which the peer is considered down.Failover
ha.lease3smore than peer_timeout plus one heartbeat, at most 1mHow long the active role is held without renewal.Failover
ha.announce.count30 to 20Address announcements after a takeover.Failover
ha.announce.interval200ms10ms to 2sTime between those announcements.Failover
ha.virtual_addressesnoneat most 8Addresses the active node holds.Form a pair
ha.reachabilitynoneat most 4 host:port targetsTCP targets a node checks (for example the gateway) to judge its own network health.Failover
ha.probe_portthe first listener's port0 to 65535Port on the virtual addresses checked before a takeover.Failover

Management API and accounts ​

SettingDefaultAllowed range / hard capWhat it limitsGuide page
-mgmt-addr (node option)127.0.0.1:9443host:port, empty to disableWhere the management listener binds.Accounts and roles
fixed: session idle limit15mnoneA session ends after this long without a request.Accounts and roles
fixed: session length12hnoneA session ends after this long in any case.Accounts and roles
fixed: failed sign-ins5 within 15mnoneFailures per account or per source before further attempts are refused until the window ends.Accounts and roles
fixed: password length12 minimum12 to 256Characters in an account password.Accounts and roles
fixed: sign-in request body16KiB16 KiBSize of a sign-in or account request.Accounts and roles
fixed: header read time10s10sTime a client has to send the headers to the management listener.Accounts and roles
fixed: configuration sizenone4 MiBSize of a configuration file or document.Configuration
fixed: change comment and authornone1000 and 128 bytesLength of the -m comment and the author stored with a version.Configuration
fixed: confirmation window10m10mHow long a plan's confirmation token stays valid.Configuration