JSON Policy
Configure JSON Security Policy for Restful web service
Last updated
Was this helpful?
Configure JSON Security Policy for Restful web service
Last updated
Was this helpful?
JSON Policy is a feature of Haltdos WAF. It allows application owners to block unwanted requests that include malware JSON or data size bigger than the allowed size. The owner can set their limit up to which he wants to accept the data or how many keys in JSON object he wants to allow. Minimum and Maximum limits are:
1. Go to WAF > Listeners > Security Profiles > Policy > JSON Policy.
2. Configure your settings.
3. Click Save Changes.
SETTINGS
ACCEPTED VALUES
DEFAULT
Maximum Children
Integer
100
Maximum Key Name length
Integer
1000
Maximum Property Value Length
Integer
1000
Maximum Depth
Integer
100
This field specifies the maximum number of keys that a JSON object can have.
In the above example, the maximum children's length is 3, i.e. (key employees have 3 children).
A JSON object can have a minimum of 1 key and a maximum of 10000 keys.
This field specifies the maximum key name length that a JSON object can have.
In the above example, the maximum key name length is 9, i.e. (the key employee's length is 9).
A JSON object can have 1 as minimum key name length and 1000 as maximum key name length.
This field specifies the maximum property value size in a JSON object.
A JSON object can have a minimum property value size of 1 and a maximum property value size of 10000.
This field specifies the maximum depth that a JSON object can have.
In the above example, maximum depth is 2, i.e. (key employee is at depth 1 & children First Name is at depth 2). A JSON object can have a minimum depth of 1 and a maximum depth of keys up to 1000000.