Skip to main content

Header

Evaluate messages based on header inspection. Supports header existence checks and regex pattern matching. Header name matching is case-sensitive.

Uses OR logic -- the rule matches if any configured header exists or matches.

Type: message

Variants:

ActionID
allowcom.synadia.protect.builtins.v1.allow.header.message
denycom.synadia.protect.builtins.v1.deny.header.message
suspendcom.synadia.protect.builtins.v1.suspend.header.message

Configuration​

A map of header names to regex patterns. An empty string checks for header existence only:

activations:
com.synadia.protect.builtins.v1.allow.header.message: true

configurations:
com.synadia.protect.builtins.v1.allow.header.message:
X-API-Key: '' # header must exist
X-App-Version: "^2\\." # value must match regex
X-Tenant: '^(prod|staging)$' # multiple patterns supported

Schema​

{
"type": "object",
"additionalProperties": {
"type": "string",
"format": "regex",
"description": "Regex pattern (empty = existence check)"
},
"propertyNames": {
"minLength": 1
},
"minProperties": 1
}