A Traefik plugin that filters requests based on JSON body content
This plugin filters incoming requests based on JSON body content and rejects requests that match specified conditions.
rules: Array of filtering rules (at least one rule is required)
path: Request path (exact match, required)method: HTTP method (exact match, required)bodyPath: Path to the target field in JSON body (XPath format, required)bodyValueCondition: Value matching condition (regular expression, required)rules arraypath, method, bodyPath, bodyValueCondition) must match for that rule to be considered matched (AND logic)bodyPath does not exist in the JSON bodyrules:- path: /api/testmethod: POSTbodyPath: keybodyValueCondition: ^value$
rules:- path: /api/testmethod: POSTbodyPath: //nestedObject/innerStringbodyValueCondition: ^inner$
rules:- path: /api/testmethod: POSTbodyPath: //arrayOfObjects/*/objString[text()='obj2']bodyValueCondition: ^obj2$