{ "id":"/axapi/v3/waf/template/{name}/cookie-security", "type":"object", "node-type":"scalar", "title":"cookie-security", "partition-visibility":"shared", "description":"Protections to secure cookies", "properties":{ "enable-disable-action":{ "type":"string", "format":"enum", "default":"enable", "partition-visibility":"shared", "description":"'enable': Enable cookie security (default); 'disable': Disable cookie security; ", "enum":[ "enable", "disable" ], "optional":true }, "allow-missing-cookie":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Allow requests with missing cookies", "optional":true }, "allow-unrecognized-cookie":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Allow requests with unrecognized cookies", "optional":true }, "cookie-policy":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "cookie-policy-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Name of cookie" }, "cookie-policy-allow":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Allow the cookie" }, "cookie-policy-disallow":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Block the cookie" }, "optional":true } } ] }, "set-cookie-policy":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "set-cookie-policy-name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Name of cookie" }, "set-cookie-policy-allow":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Allow the cookie" }, "set-cookie-policy-disallow":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Block the cookie" }, "set-cookie-policy-http-only":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Add HttpOnly flag to cookie" }, "set-cookie-policy-secure":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Add Secure flag to cookie" }, "set-cookie-policy-samesite":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'none': none; 'lax': lax; 'strict': strict; ", "enum":[ "none", "lax", "strict" ] }, "set-cookie-policy-sign":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "not":"set-cookie-policy-encrypt", "description":"Sign cookies" }, "set-cookie-policy-secret":{ "type":"string", "format":"password", "minLength":1, "maxLength":128, "partition-visibility":"shared", "description":"Cookie encryption secret" }, "set-cookie-policy-secret-encrypted":{ "type":"encrypted", "format":"encrypted", "minLength":1, "maxLength":255, "partition-visibility":"shared", "description":"Do NOT use this option manually. (This is an A10 reserved keyword.) (The ENCRYPTED secret string)" }, "optional":true } } ] }, "tamper-protection-http-only":{ "type":"number", "format":"flag", "default":1, "partition-visibility":"shared", "description":"Add HttpOnly flag to cookies not in set-cookie-policy list (default on)", "optional":true }, "tamper-protection-secure":{ "type":"number", "format":"flag", "default":1, "partition-visibility":"shared", "description":"Add Secure flag to cookies not in set-cookie-policy list (default on)", "optional":true }, "tamper-protection-samesite":{ "type":"string", "format":"enum", "default":"none", "partition-visibility":"shared", "description":"'none': none; 'lax': lax; 'strict': strict; ", "enum":[ "none", "lax", "strict" ], "optional":true }, "tamper-protection-secret":{ "type":"string", "format":"password", "minLength":1, "maxLength":128, "partition-visibility":"shared", "description":"Cookie encryption secret", "optional":true }, "tamper-protection-secret-encrypted":{ "type":"encrypted", "format":"encrypted", "minLength":1, "maxLength":255, "partition-visibility":"shared", "description":"Do NOT use this option manually. (This is an A10 reserved keyword.) (The ENCRYPTED secret string)", "optional":true }, "tamper-protection-grace-period":{ "type":"number", "format":"number", "minimum":0, "maximum":43200, "default":120, "partition-visibility":"shared", "description":"Allow unrecognized cookies for a period of time after cookie encryption being applied (default 120 minutes)", "optional":true }, "tamper-protection-session-cookie-only":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Only encrypt session cookies", "optional":true }, "tamper-protection-sign":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "not":"tamper-protection-encrypt", "description":"Sign cookies", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true } } }