From 0e94b72bf3d5726f0ff5d71d7c96acf9655ca965 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 24 Mar 2026 13:09:44 -0700 Subject: [PATCH] waf response --- .../loadbalancer/config/types/v1/WafConfig.yml | 9 +++++++++ .../loadbalancer/types/v1/StackSpecWafConfig.yml | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml b/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml index 57b8893c..86742656 100644 --- a/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml +++ b/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml @@ -52,6 +52,15 @@ properties: type: - integer - "null" + response: + description: Response configuration for when the rule is triggered. + oneOf: + - type: object + properties: + http_code: + description: The HTTP code that will be sent back to the requester on rule match. + type: integer + - type: "null" conditions: description: An array of the specific conditions for the rule. type: array diff --git a/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml b/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml index d992e8d8..8a53d22a 100644 --- a/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml +++ b/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml @@ -64,6 +64,16 @@ properties: - type: integer - type: "null" - $ref: ../../../../StackVariable.yml + response: + description: Response configuration for when the rule is triggered. + oneOf: + - type: object + properties: + http_code: + description: The HTTP code that will be sent back to the requester on rule match. + type: integer + - type: "null" + - $ref: ../../../../StackVariable.yml conditions: description: An array of the specific conditions for the rule. oneOf: