Parameters
See plugin common configurations for configuration options available to all plugins.
mode
vaild vaule:
off,monitor, orblockMode to determine how the plugin behaves for matched requests.
In
offmode, WAF checks are skipped. Inmonitormode, requests with potential threats are logged but not blocked. Inblockmode, requests with threats are blocked as determined by the WAF service.match
An array of matching rules. The plugin uses these rules to decide whether to perform a WAF check on a request. If the list is empty, all requests are processed.
vars
An array of one or more matching conditions in the form of APISIX expressions to conditionally execute the plugin.
append_waf_resp_header
If true, add response headers
X-APISIX-CHAITIN-WAF,X-APISIX-CHAITIN-WAF-TIME,X-APISIX-CHAITIN-WAF-ACTION, andX-APISIX-CHAITIN-WAF-STATUS.append_waf_debug_header
If true, add debugging headers
X-APISIX-CHAITIN-WAF-ERRORandX-APISIX-CHAITIN-WAF-SERVERto the response. Effective only whenappend_waf_resp_headeristrue.config
Chaitin WAF service configurations. These settings override the corresponding metadata defaults when specified.
connect_timeout
The connection timeout to the WAF service, in milliseconds.
send_timeout
The sending timeout for transmitting data to the WAF service, in milliseconds.
read_timeout
The reading timeout for receiving data from the WAF service, in milliseconds.
req_body_size
The maximum allowed request body size, in KB.
keepalive_size
The maximum number of idle connections to the WAF detection service that can be maintained concurrently.
keepalive_timeout
The idle connection timeout for the WAF service, in milliseconds.
real_client_ip
If true, the client IP is obtained from the
X-Forwarded-Forheader. If false, the plugin uses the client IP from the connection.
Plugin Metadata
nodes
An array of addresses for the Chaitin WAF service.
host
Address of Chaitin WAF service. Supports IPv4, IPv6, Unix Socket, etc.
port
Port of Chaitin WAF service.
mode
Mode to determine how the plugin behaves for matched requests.
In
offmode, WAF checks are skipped. Inmonitormode, requests with potential threats are logged but not blocked. Inblockmode, requests with threats are blocked as determined by the WAF service.config
Chaitin WAF service configurations.
connect_timeout
The connection timeout to the WAF service, in milliseconds.
send_timeout
The sending timeout for transmitting data to the WAF service, in milliseconds.
read_timeout
The reading timeout for receiving data from the WAF service, in milliseconds.
req_body_size
The maximum allowed request body size, in KB.
keepalive_size
The maximum number of idle connections to the WAF detection service that can be maintained concurrently.
keepalive_timeout
The idle connection timeout for the WAF service, in milliseconds.
real_client_ip
If true, the client IP is obtained from the
X-Forwarded-Forheader. If false, the plugin uses the client IP from the connection.