Appearance
API protection policy Since v0.2
The policy.api section is the largest in the file. Paths are relative to one entry of applications. Most children are optional lists, and an unset section is off.
For the structure of the file, see Configuration file. Defaults of limits are also listed in Limits and defaults. A dash in Default means the code sets no default value (the setting is empty or off).
API protection
| Key | Type | Default | Allowed values / range | Meaning | Guide page |
|---|---|---|---|---|---|
applications[].policy.api | object | — | — | Group of settings: api. | API protection |
applications[].policy.api.enabled | boolean | — | — | default true when the section is present | API protection |
applications[].policy.api.mode | string | — | detect, block | empty: same as the application | API protection |
applications[].policy.api.limits | object | — | — | Group of settings: limits. | API protection |
applications[].policy.api.limits.json | object | — | — | Group of settings: json. | API protection |
applications[].policy.api.limits.json.depth | integer | — | — | Sets depth. | API protection |
applications[].policy.api.limits.json.keys | integer | — | — | Names of the keys. | API protection |
applications[].policy.api.limits.json.key_length | size | — | — | Sets key length. | API protection |
applications[].policy.api.limits.json.string_length | size | — | — | Sets string length. | API protection |
applications[].policy.api.limits.json.array_length | integer | — | — | Sets array length. | API protection |
applications[].policy.api.limits.xml | object | — | — | Group of settings: xml. | API protection |
applications[].policy.api.limits.xml.depth | integer | — | — | Sets depth. | API protection |
applications[].policy.api.limits.xml.elements | integer | — | — | Sets elements. | API protection |
applications[].policy.api.limits.xml.attributes | integer | — | — | Sets attributes. | API protection |
applications[].policy.api.limits.xml.name_length | size | — | — | Sets name length. | API protection |
applications[].policy.api.limits.xml.value_length | size | — | — | Sets value length. | API protection |
applications[].policy.api.specs[] | list of object | — | — | Group of settings: specs. | Schema enforcement |
applications[].policy.api.specs[].name | string | — | — | The name that identifies this entry. | Schema enforcement |
applications[].policy.api.specs[].file | string | — | — | stored with the version, like certificates | Schema enforcement |
applications[].policy.api.specs[].base_path | string | — | — | default: the description's first server URL path | Schema enforcement |
applications[].policy.api.specs[].unknown_paths | string | — | block, log, allow | What to do with each kind of violation: block (default), log, or allow (not checked). | Schema enforcement |
applications[].policy.api.specs[].unknown_methods | string | — | block, log, allow | Sets unknown methods. | Schema enforcement |
applications[].policy.api.specs[].parameters | string | — | block, log, allow | Sets parameters. | Schema enforcement |
applications[].policy.api.specs[].request_bodies | string | — | block, log, allow | Sets request bodies. | Schema enforcement |
applications[].policy.api.specs[].unsupported_patterns | string | — | — | unsupported_patterns: error (default) refuses a description with schema patterns Go's RE2 cannot run; ignore skips those patterns (listed by waap api check and in traces). | Schema enforcement |
applications[].policy.api.graphql | object | — | — | Group of settings: graphql. | Schema enforcement |
applications[].policy.api.graphql.paths | list of string | — | — | exact, or a prefix ending in *; empty: off | Schema enforcement |
applications[].policy.api.graphql.depth | integer | — | — | Sets depth. | Schema enforcement |
applications[].policy.api.graphql.aliases | integer | — | — | Sets aliases. | Schema enforcement |
applications[].policy.api.graphql.fields | integer | — | — | Sets fields. | Schema enforcement |
applications[].policy.api.graphql.cost | integer | — | — | Sets cost. | Schema enforcement |
applications[].policy.api.graphql.batch | integer | — | — | Sets batch. | Schema enforcement |
applications[].policy.api.graphql.tokens | integer | — | — | Sets tokens. | Schema enforcement |
applications[].policy.api.graphql.introspection | boolean | — | — | Sets introspection. | Schema enforcement |
applications[].policy.api.auth | object | — | — | Group of settings: auth. | Authentication |
applications[].policy.api.auth.jwt[] | list of object | — | — | Group of settings: jwt. | Authentication |
applications[].policy.api.auth.jwt[].name | string | — | — | The name that identifies this entry. | Authentication |
applications[].policy.api.auth.jwt[].paths | list of string | — | — | Request paths the setting applies to. | Authentication |
applications[].policy.api.auth.jwt[].location | string | — | — | header:NAME (Bearer), cookie:NAME, query:NAME | Authentication |
applications[].policy.api.auth.jwt[].issuers | list of string | — | — | Sets issuers. | Authentication |
applications[].policy.api.auth.jwt[].audiences | list of string | — | — | Sets audiences. | Authentication |
applications[].policy.api.auth.jwt[].algorithms | list of string | RS256 | — | default RS256, ES256 | Authentication |
applications[].policy.api.auth.jwt[].jwks_url | string | — | — | fetched by the active node | Authentication |
applications[].policy.api.auth.jwt[].jwks_file | string | — | — | stored with the version | Authentication |
applications[].policy.api.auth.jwt[].refresh | duration | 1h | — | URL refresh, default 1h | Authentication |
applications[].policy.api.auth.jwt[].required_claims | map of string | — | — | Group of settings: required claims. | Authentication |
applications[].policy.api.auth.jwt[].clock_skew | duration | 30s | — | default 30s | Authentication |
applications[].policy.api.auth.api_keys[] | list of object | — | — | Group of settings: api keys. | Authentication |
applications[].policy.api.auth.api_keys[].name | string | — | — | The name that identifies this entry. | Authentication |
applications[].policy.api.auth.api_keys[].paths | list of string | — | — | Request paths the setting applies to. | Authentication |
applications[].policy.api.auth.api_keys[].location | string | — | — | default header:X-API-Key | Authentication |
applications[].policy.api.consumers[] | list of object | — | — | Group of settings: consumers. | Authentication |
applications[].policy.api.consumers[].name | string | — | — | The name that identifies this entry. | Authentication |
applications[].policy.api.consumers[].paths | list of string | — | — | Request paths the setting applies to. | Authentication |
applications[].policy.api.consumers[].methods | list of string | — | — | HTTP methods the setting applies to. | Authentication |
applications[].policy.api.consumers[].source_networks | list of string | — | — | Sets source networks. | Authentication |
applications[].policy.api.consumers[].subjects | list of string | — | — | JWT sub (or client_id) values | Authentication |
applications[].policy.api.consumers[].rate | object | — | — | Group of settings: rate. | Authentication |
applications[].policy.api.consumers[].rate.limit | integer | — | — | Sets limit. | Authentication |
applications[].policy.api.consumers[].rate.per | duration | — | — | Sets per. | Authentication |
applications[].policy.api.discovery | object | — | — | Group of settings: discovery. | API protection |
applications[].policy.api.discovery.enabled | boolean | true with API protection on | — | default true with API protection on | API protection |
applications[].policy.api.discovery.mcp | boolean | true | — | recognise MCP traffic; default true | API protection |
applications[].policy.api.discovery.agents | boolean | true | — | recognise AI agent traffic; default true | API protection |
applications[].policy.api.discovery.flag_unknown | string | — | — | log (default) | off | API protection |
applications[].policy.api.discovery.flag_agents | string | — | — | log | off (default) | API protection |
applications[].policy.api.discovery.known_servers | list of string | — | — | acknowledged MCP server paths | API protection |
applications[].policy.api.grpc | object | — | — | Group of settings: grpc. | Protocols |
applications[].policy.api.grpc.descriptors | string | — | — | FileDescriptorSet file, stored with the version; empty: off | Protocols |
applications[].policy.api.grpc.methods | list of string | — | — | allowed (/pkg.Service/Method, or /pkg.Service/* ); empty: every described method | Protocols |
applications[].policy.api.grpc.message_size | size | 4MiB | — | per message, default 4MiB | Protocols |
applications[].policy.api.websocket | object | — | — | Group of settings: websocket. | Protocols |
applications[].policy.api.websocket.paths | list of string | — | — | where upgrades are allowed and messages inspected; empty: off | Protocols |
applications[].policy.api.websocket.origins | list of string | — | — | allowed Origin values; empty: any | Protocols |
applications[].policy.api.websocket.message_size | size | — | — | Sets message size. | Protocols |
applications[].policy.api.websocket.formats | list of string | — | — | text, binary; empty: text | Protocols |
applications[].policy.api.websocket.inspect_text | boolean | true | — | text messages through the signatures; default true | Protocols |
applications[].policy.api.mcp | object | — | — | Group of settings: mcp. | LLM endpoints |
applications[].policy.api.mcp.paths | list of string | — | — | empty: off | LLM endpoints |
applications[].policy.api.mcp.tools | list of string | — | — | allowed tools/call names; empty: any | LLM endpoints |
applications[].policy.api.mcp.message_size | size | — | — | Sets message size. | LLM endpoints |
applications[].policy.api.mcp.batch | integer | — | — | Sets batch. | LLM endpoints |
applications[].policy.api.mcp.servers[] | list of object | — | — | Tool lists per MCP server. | LLM endpoints |
applications[].policy.api.mcp.servers[].name | string | — | — | The name that identifies this entry. | LLM endpoints |
applications[].policy.api.mcp.servers[].paths | list of string | — | — | Request paths the setting applies to. | LLM endpoints |
applications[].policy.api.mcp.servers[].tools | list of string | — | — | allowed tools/call names; empty: any | LLM endpoints |
applications[].policy.api.mcp.servers[].message_size | size | — | — | 0: mcp.message_size | LLM endpoints |
applications[].policy.api.mcp.servers[].batch | integer | — | — | 0: mcp.batch | LLM endpoints |
applications[].policy.api.xml | object | — | — | XML and SOAP checks. Off when the section is absent or its list is empty. | XML and SOAP |
applications[].policy.api.xml.mode | string | — | detect, block | empty: same as api.mode (the application's detect wins) | XML and SOAP |
applications[].policy.api.xml.budget | duration | — | — | Sets budget. | XML and SOAP |
applications[].policy.api.xml.max_document | size | — | — | Sets max document. | XML and SOAP |
applications[].policy.api.xml.on_unavailable | string | — | — | inherit, open, closed | XML and SOAP |
applications[].policy.api.xml.contracts[] | list of object | — | — | Group of settings: contracts. | XML and SOAP |
applications[].policy.api.xml.contracts[].name | string | — | — | The name that identifies this entry. | XML and SOAP |
applications[].policy.api.xml.contracts[].paths | list of string | — | — | Request paths the setting applies to. | XML and SOAP |
applications[].policy.api.xml.contracts[].kind | string | — | — | wsdl, xsd, dtd | XML and SOAP |
applications[].policy.api.xml.contracts[].file | string | — | — | stored with the version | XML and SOAP |
applications[].policy.api.xml.contracts[].imports | list of string | — | — | more files, resolved by name only | XML and SOAP |
applications[].policy.api.xml.contracts[].root | string | — | — | xsd: {namespace}local of the root | XML and SOAP |
applications[].policy.api.xml.contracts[].soap_action | string | — | — | wsdl: check (default) or ignore | XML and SOAP |
applications[].policy.api.xml.contracts[].operations | list of string | — | — | wsdl: allowed; empty: all | XML and SOAP |
applications[].policy.api.xml.contracts[].on_violation | string | — | — | Sets on violation. | XML and SOAP |
applications[].policy.api.ws_security | object | — | — | WS-Security checks on SOAP messages. | WS-Security |
applications[].policy.api.ws_security.mode | string | — | detect, block | empty: same as api.mode (the application's detect wins) | WS-Security |
applications[].policy.api.ws_security.paths | list of string | — | — | Request paths the setting applies to. | WS-Security |
applications[].policy.api.ws_security.require | list of string | — | — | signature, timestamp. Not set: both. | WS-Security |
applications[].policy.api.ws_security.signed_parts | list of string | — | — | body, timestamp, header:Local[:namespace]. Not set: body and timestamp. | WS-Security |
applications[].policy.api.ws_security.trusted_certs | list of string | — | — | Sets trusted certs. | WS-Security |
applications[].policy.api.ws_security.algorithms | list of string | — | — | Not set: rsa-sha256, rsa-sha512, ecdsa-sha256, ecdsa-sha384. | WS-Security |
applications[].policy.api.ws_security.max_clock_skew | duration | — | — | Sets max clock skew. | WS-Security |
applications[].policy.api.ws_security.max_age | duration | — | — | Longest age accepted. | WS-Security |
applications[].policy.api.ws_security.replay_window | duration | — | — | Sets replay window. | WS-Security |
applications[].policy.api.ws_security.decrypt | boolean | — | — | Sets decrypt. | WS-Security |
applications[].policy.api.ws_security.decrypt_key | string | — | — | Sets decrypt key. | WS-Security |
applications[].policy.api.ws_security.sign_responses | boolean | — | — | Sets sign responses. | WS-Security |
applications[].policy.api.ws_security.sign_key | string | — | — | Sets sign key. | WS-Security |
applications[].policy.api.ws_security.sign_cert | string | — | — | Sets sign cert. | WS-Security |
applications[].policy.api.ws_security.encrypt_responses | boolean | — | — | Sets encrypt responses. | WS-Security |
applications[].policy.api.ws_security.wrapping | boolean | on | — | Checks against signature-wrapping attacks. On by default. | WS-Security |
applications[].policy.api.learned | object | — | — | Group of settings: learned. | API protection |
applications[].policy.api.learned.mode | string | — | detect, block | empty: same as api.mode (the application's detect wins) | API protection |
applications[].policy.api.learned.unknown_fields | string | — | — | log | refuse: fields a schema does not name | API protection |
applications[].policy.api.learned.responses | string | — | — | off | detect: answers checked against response schemas | API protection |
applications[].policy.api.learned_schemas | list of object | — | — | Sets learned schemas. | Learned schema |
applications[].policy.api.attestation | object | — | — | Group of settings: attestation. | App attestation |
applications[].policy.api.attestation.mode | string | — | detect, block | empty: same as api.mode (the application's detect wins) | App attestation |
applications[].policy.api.attestation.paths | list of string | — | — | Request paths the setting applies to. | App attestation |
applications[].policy.api.attestation.methods | list of string | — | — | HTTP methods the setting applies to. | App attestation |
applications[].policy.api.attestation.header | string | — | — | Name of the header. | App attestation |
applications[].policy.api.attestation.on_missing | string | — | — | refuse | log | App attestation |
applications[].policy.api.attestation.verifiers[] | list of object | — | — | Group of settings: verifiers. | App attestation |
applications[].policy.api.attestation.verifiers[].name | string | — | — | The name that identifies this entry. | App attestation |
applications[].policy.api.attestation.verifiers[].platform | string | — | — | play_integrity | app_attest | jwt | App attestation |
applications[].policy.api.attestation.verifiers[].package_names | list of string | — | — | Play Integrity. | App attestation |
applications[].policy.api.attestation.verifiers[].certificate_digests | list of string | — | — | Sets certificate digests. | App attestation |
applications[].policy.api.attestation.verifiers[].device_verdicts | list of string | — | — | Sets device verdicts. | App attestation |
applications[].policy.api.attestation.verifiers[].app_verdict | string | — | — | Sets app verdict. | App attestation |
applications[].policy.api.attestation.verifiers[].licensed | boolean | — | — | Play Integrity only: require the app's licensing verdict from Google Play to be licensed. | App attestation |
applications[].policy.api.attestation.verifiers[].team_id | string | — | — | App Attest. | App attestation |
applications[].policy.api.attestation.verifiers[].bundle_ids | list of string | — | — | Sets bundle ids. | App attestation |
applications[].policy.api.attestation.verifiers[].environment | string | — | — | production | development | App attestation |
applications[].policy.api.attestation.verifiers[].key_set | string | — | — | Signed JWT (custom SDKs). | App attestation |
applications[].policy.api.attestation.verifiers[].issuer | string | — | — | Sets issuer. | App attestation |
applications[].policy.api.attestation.verifiers[].audience | string | — | — | Sets audience. | App attestation |
applications[].policy.api.attestation.verifiers[].algorithms | list of string | — | — | Sets algorithms. | App attestation |
applications[].policy.api.attestation.verifiers[].claims | map of string | — | — | Group of settings: claims. | App attestation |
applications[].policy.api.attestation.verifiers[].binding | string | — | — | Every platform. | App attestation |
applications[].policy.api.attestation.verifiers[].max_age | duration | — | — | Longest age accepted. | App attestation |
applications[].policy.api.attestation.verifiers[].single_use | boolean | true | — | single_use refuses a Play Integrity or JWT token seen before on this node (default true). | App attestation |
applications[].policy.api.rewrites[] | list of object | — | — | Group of settings: rewrites. | Call rewriting |
applications[].policy.api.rewrites[].name | string | — | — | The name that identifies this entry. | Call rewriting |
applications[].policy.api.rewrites[].match | object | — | — | Group of settings: match. | Call rewriting |
applications[].policy.api.rewrites[].match.prefix | string | — | — | whole segments: /api/v1 matches /api/v1 and /api/v1/x, not /api/v10 | Call rewriting |
applications[].policy.api.rewrites[].match.path | string | — | — | exact | Call rewriting |
applications[].policy.api.rewrites[].match.regex | string | — | — | RE2, must match the whole path | Call rewriting |
applications[].policy.api.rewrites[].match.template | string | — | — | /users/{id}: whole-segment variables | Call rewriting |
applications[].policy.api.rewrites[].methods | list of string | — | — | HTTP methods the setting applies to. | Call rewriting |
applications[].policy.api.rewrites[].to | string | — | — | Sets to. | Call rewriting |
applications[].policy.api.rewrites[].host | string | — | — | Host name this entry applies to or connects to. | Call rewriting |
applications[].policy.api.rewrites[].request_headers | object | — | — | Group of settings: request headers. | Call rewriting |
applications[].policy.api.rewrites[].request_headers.set | map of string | — | — | Group of settings: set. | Call rewriting |
applications[].policy.api.rewrites[].request_headers.remove | list of string | — | — | Sets remove. | Call rewriting |
applications[].policy.api.rewrites[].response | object | — | — | Group of settings: response. | Call rewriting |
applications[].policy.api.rewrites[].response.location | boolean | true | — | default true | Call rewriting |
applications[].policy.api.rewrites[].response.links | list of string | — | — | JSON pointers; * is any member or index | Call rewriting |
applications[].policy.api.ownership | object | — | — | Group of settings: ownership. | Object ownership |
applications[].policy.api.ownership.enabled | boolean | — | — | Turns the feature on or off. | Object ownership |
applications[].policy.api.ownership.mode | string | — | detect, block | empty: same as api.mode (the application's detect wins) | Object ownership |
applications[].policy.api.ownership.learn_from | string | — | — | responses | requests | both | Object ownership |
applications[].policy.api.ownership.endpoints[] | list of object | — | — | Group of settings: endpoints. | Object ownership |
applications[].policy.api.ownership.endpoints[].endpoint | string | — | — | METHOD /template, as positive.rules | Object ownership |
applications[].policy.api.ownership.endpoints[].ids | list of string | — | — | path:NAME, query:NAME, json:/pointer, header:NAME | Object ownership |
applications[].policy.api.ownership.endpoints[].namespace | string | — | — | empty: derived from the names | Object ownership |
applications[].policy.api.ownership.endpoints[].hands_out | list of string | — | — | json:/pointer (* for any element or member) | Object ownership |
applications[].policy.api.ownership.id_names | list of string | — | — | Not set: id, *_id, *Id, uuid, *_uuid. | Object ownership |
applications[].policy.api.ownership.id_shapes | list of string | — | — | Not set: integer, uuid, hex, alphanumeric. | Object ownership |
applications[].policy.api.ownership.public_namespaces | list of string | — | — | never flagged, never stored | Object ownership |
applications[].policy.api.ownership.shared_after | integer | — | — | Sets shared after. | Object ownership |
applications[].policy.api.ownership.ignore_kinds | list of string | — | — | Not set: ip, ip_ja4. | Object ownership |
applications[].policy.api.ownership.foreign | string | — | — | log | refuse | Object ownership |
applications[].policy.api.ownership.enumeration | object | — | — | Group of settings: enumeration. | Object ownership |
applications[].policy.api.ownership.enumeration.distinct | integer | — | — | Sets distinct. | Object ownership |
applications[].policy.api.ownership.enumeration.window | duration | — | — | Time window the count covers. | Object ownership |
applications[].policy.api.ownership.enumeration.sequential | integer | — | — | Sets sequential. | Object ownership |
applications[].policy.api.ownership.enumeration.action | string | — | — | log | refuse | Object ownership |
applications[].policy.api.ownership.ttl | duration | — | — | How long the value is kept. | Object ownership |
applications[].policy.api.ownership.max_objects | integer | — | — | Sets max objects. | Object ownership |
applications[].policy.api.ownership.max_response | size | — | — | Sets max response. | Object ownership |
applications[].policy.api.ownership.learning | duration | — | — | warm-up: learn only, flag nothing | Object ownership |
applications[].policy.api.flows | object | — | — | Group of settings: flows. | Business flows |
applications[].policy.api.flows.mode | string | — | detect, block | empty: same as api.mode (the application's detect wins) | Business flows |
applications[].policy.api.flows.state_ttl | duration | — | — | how long an identity's progress is kept after its last step | Business flows |
applications[].policy.api.flows.max_identities | integer | — | — | identities followed at once on a node (least recent dropped) | Business flows |
applications[].policy.api.flows.definitions[] | list of object | — | — | Group of settings: definitions. | Business flows |
applications[].policy.api.flows.definitions[].name | string | — | — | The name that identifies this entry. | Business flows |
applications[].policy.api.flows.definitions[].steps[] | list of object | — | — | Group of settings: steps. | Business flows |
applications[].policy.api.flows.definitions[].steps[].name | string | — | — | The name that identifies this entry. | Business flows |
applications[].policy.api.flows.definitions[].steps[].endpoint | string | — | — | METHOD /template | Business flows |
applications[].policy.api.flows.definitions[].steps[].after | list of string | the previous step | — | default: the previous step | Business flows |
applications[].policy.api.flows.definitions[].steps[].min_gap | duration | — | — | Sets min gap. | Business flows |
applications[].policy.api.flows.definitions[].max_duration | duration | 30m | — | default 30m | Business flows |
applications[].policy.api.flows.definitions[].once[] | list of object | — | — | Group of settings: once. | Business flows |
applications[].policy.api.flows.definitions[].once[].step | string | — | — | Sets step. | Business flows |
applications[].policy.api.flows.definitions[].once[].value | string | — | — | json:/pointer, query:name, form:name, header:Name, path:var | Business flows |
applications[].policy.api.flows.definitions[].once[].scope | string | — | — | identity (default) | global | Business flows |
applications[].policy.api.flows.definitions[].once[].ttl | duration | 30 days | — | default 30 days | Business flows |
applications[].policy.api.flows.definitions[].on_violation | string | — | — | log (default) | refuse | Business flows |
applications[].policy.api.flows.learning | object | — | — | Group of settings: learning. | Business flows |
applications[].policy.api.flows.learning.enabled | boolean | — | — | Turns the feature on or off. | Business flows |
applications[].policy.api.flows.learning.min_identities | integer | — | — | Sets min identities. | Business flows |
applications[].policy.api.llm | object | — | — | Group of settings: llm. | LLM endpoints |
applications[].policy.api.llm.mode | string | — | detect, block | empty: same as api.mode (the application's detect wins) | LLM endpoints |
applications[].policy.api.llm.budget | duration | — | — | Sets budget. | LLM endpoints |
applications[].policy.api.llm.discovery | boolean | — | — | Sets discovery. | LLM endpoints |
applications[].policy.api.llm.heuristics | boolean | — | — | Sets heuristics. | LLM endpoints |
applications[].policy.api.llm.crs_exception | boolean | on | — | crs_exception ignores the CRS rules that flag ordinary chat text (LLMCRSRules) in the message content of the endpoints; default on. | LLM endpoints |
applications[].policy.api.llm.classifier | object | — | — | Group of settings: classifier. | LLM endpoints |
applications[].policy.api.llm.classifier.enabled | boolean | — | — | Turns the feature on or off. | LLM endpoints |
applications[].policy.api.llm.classifier.threshold | integer | — | — | percent | LLM endpoints |
applications[].policy.api.llm.classifier.budget | duration | — | — | Sets budget. | LLM endpoints |
applications[].policy.api.llm.classifier.on_unavailable | string | — | — | Sets on unavailable. | LLM endpoints |
applications[].policy.api.llm.output | object | — | — | Group of settings: output. | LLM endpoints |
applications[].policy.api.llm.output.dlp | boolean | — | — | Sets dlp. | LLM endpoints |
applications[].policy.api.llm.output.action | string | — | — | What happens on a match. | LLM endpoints |
applications[].policy.api.llm.output.hold_back | size | — | — | answer text held back in streams so split values are still found | LLM endpoints |
applications[].policy.api.llm.endpoints[] | list of object | — | — | Group of settings: endpoints. | LLM endpoints |
applications[].policy.api.llm.endpoints[].name | string | — | — | The name that identifies this entry. | LLM endpoints |
applications[].policy.api.llm.endpoints[].paths | list of string | — | — | Request paths the setting applies to. | LLM endpoints |
applications[].policy.api.llm.endpoints[].format | string | — | — | Sets format. | LLM endpoints |
applications[].policy.api.llm.endpoints[].prompt | string | — | — | generic: JSON pointer of the user text | LLM endpoints |
applications[].policy.api.llm.endpoints[].output | string | — | — | generic: JSON pointer of the answer text | LLM endpoints |
applications[].policy.api.llm.endpoints[].classify_roles | list of string | — | — | Sets classify roles. | LLM endpoints |
applications[].policy.api.llm.endpoints[].system_prompt_markers | list of string | — | — | Sets system prompt markers. | LLM endpoints |
applications[].policy.api.llm.endpoints[].max_request_tokens | integer | — | — | Sets max request tokens. | LLM endpoints |
applications[].policy.api.llm.endpoints[].tokens_per_minute | integer | — | — | Sets tokens per minute. | LLM endpoints |
applications[].policy.api.llm.endpoints[].tokens_per_day | integer | — | — | Sets tokens per day. | LLM endpoints |
applications[].policy.api.llm.endpoints[].cost_per_day | integer | — | — | micro-units of the operator's currency; 0: no limit | LLM endpoints |
applications[].policy.api.llm.endpoints[].models[] | list of object | — | — | Group of settings: models. | LLM endpoints |
applications[].policy.api.llm.endpoints[].models[].name | string | — | — | exact, or a prefix ending in * | LLM endpoints |
applications[].policy.api.llm.endpoints[].models[].input_price | integer | — | — | Sets input price. | LLM endpoints |
applications[].policy.api.llm.endpoints[].models[].output_price | integer | — | — | Sets output price. | LLM endpoints |
applications[].policy.api.llm.endpoints[].on_injection | string | — | — | log | refuse | LLM endpoints |
applications[].policy.api.posture | object | — | — | Thresholds for the authentication posture labels. | API protection |
applications[].policy.api.posture.min_calls | integer | — | — | calls before the unauthenticated and mixed labels apply | API protection |
applications[].policy.api.posture.unauthenticated_share | integer | — | — | percent of calls without credentials | API protection |
applications[].policy.api.posture.mixed_share | integer | — | — | percent of each kind for mixed_auth | API protection |
applications[].policy.api.posture.sensitive_share | integer | — | — | percent of answers with sensitive data | API protection |
applications[].policy.api.posture.stale_days | integer | — | — | not seen for this many days | API protection |
applications[].policy.api.endpoint_notes[] | list of object | — | — | Notes on endpoints, for example that one is public by design. | Inventory |
applications[].policy.api.endpoint_notes[].endpoint | string | — | — | METHOD /template | Inventory |
applications[].policy.api.endpoint_notes[].public | boolean | — | — | Sets public. | Inventory |
applications[].policy.api.endpoint_notes[].note | string | — | — | Free-text note for operators. | Inventory |
applications[].policy.api.volume_baseline | object | — | — | Settings for learning per-endpoint request volume. | Inventory |
applications[].policy.api.volume_baseline.enabled | boolean | — | — | Turns the feature on or off. | Inventory |
applications[].policy.api.volume_baseline.learning_period | duration | — | — | Sets learning period. | Inventory |
applications[].policy.api.volume_baseline.factor | integer | — | — | Sets factor. | Inventory |
applications[].policy.api.volume_baseline.floor | integer | — | — | Sets floor. | Inventory |
applications[].policy.api.volume_baseline.min_samples | integer | — | — | Sets min samples. | Inventory |
applications[].policy.api.volume_baseline.window | duration | — | — | Time window the count covers. | Inventory |
applications[].policy.api.volume_baseline.action | string | — | — | log (default) | block | Inventory |
applications[].policy.api.volume_baseline.auto_apply | boolean | — | — | Sets auto apply. | Inventory |
applications[].policy.api.volume_baselines | list of object | — | — | Approved per-endpoint volume limits. | API protection |
Example
yaml
version: 2
listeners:
- {name: web, address: "0.0.0.0:8080", protocol: http}
server_pools:
- name: shop
servers:
- {address: "127.0.0.1:9000", weight: 1, state: active}
applications:
- name: shop
hostnames: [shop.example.com]
listeners: [web]
server_pool: shop
policy:
api:
mode: detect
limits:
json: {depth: 16}