Configuration

configobject
Hide Child Parameters
allow_duplicate_object_entry_nameboolean

Allow or disallow duplicate object entry name.

Default:true

enforcement_modestring

Enforcement mode of the security policy.

Allowed values:blocklog_only

Default:block

error_messagestring

The response message when validation fails

Default:Bad Request

error_status_codeinteger

The response status code when validation fails.

Default:400

>= 400<= 499

max_array_element_countinteger

Max number of elements in an array. -1 means unlimited.

Default:-1

>= -1<= 2147483648

max_body_sizeinteger

Max size of the request body. -1 means unlimited.

Default:8192

>= -1<= 2147483648

max_container_depthinteger

Max nested depth of objects and arrays. -1 means unlimited.

Default:-1

>= -1<= 2147483648

max_object_entry_countinteger

Max number of entries in an object. -1 means unlimited.

Default:-1

>= -1<= 2147483648

max_object_entry_name_lengthinteger

Max string length of object name. -1 means unlimited.

Default:-1

>= -1<= 2147483648

max_string_value_lengthinteger

Max string value length. -1 means unlimited.

Default:-1

>= -1<= 2147483648

protocolsarray[string]

A set of strings representing HTTP protocols.

Allowed values:grpcgrpcshttphttps

Default:grpc, grpcs, http, https

routeobject

If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.

* Additional properties are NOT allowed.
Hide Child Parameters
idstring
serviceobject

If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.

* Additional properties are NOT allowed.
Hide Child Parameters
idstring

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!