From 4eec4d9f5c7ddcf131d5263db3dba802c560ab0e Mon Sep 17 00:00:00 2001 From: Bryce Date: Fri, 6 Mar 2026 06:18:57 -0800 Subject: [PATCH 1/2] update waf operators --- .../config/types/v1/WafConfig.yml | 29 +++++++++++++++---- .../types/v1/StackSpecWafConfig.yml | 19 +++++++++++- 2 files changed, 41 insertions(+), 7 deletions(-) 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 c285fe49..35b7c5e9 100644 --- a/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml +++ b/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml @@ -61,17 +61,34 @@ properties: - http-header-match - http-body-match operator: - description: A string that indicates the range of values relative to the value property. type: string + description: | + Defines the comparison operator used to evaluate the rule condition + against the provided `value`. enum: - "==" - "!=" + - "*=" + - "!*=" + - "^=" + - "!^=" - ">" - "<" - ">=" - "<=" - value: - description: The value corresponding to the condition type. - examples: - - "0.0.0.0/0" - type: string + x-enum-descriptions: + - "Equal to — the condition value must exactly match." + - "Not equal to — the condition value must differ." + - "Contains — the request value must contain the provided substring." + - "Does not contain — the request value must not contain the substring." + - "Starts with — the request value must begin with the provided prefix." + - "Does not start with — the request value must not begin with the prefix." + - "Greater than — numeric comparison." + - "Less than — numeric comparison." + - "Greater than or equal — numeric comparison." + - "Less than or equal — numeric comparison." + value: + description: The value corresponding to the condition type. + examples: + - "0.0.0.0/0" + type: string diff --git a/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml b/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml index fe1a364c..e4e425b7 100644 --- a/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml +++ b/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml @@ -76,16 +76,33 @@ properties: - http-body-match - $ref: ../../../../StackVariable.yml operator: - description: A string that indicates the range of values relative to the value property. + description: | + Defines the comparison operator used to evaluate the rule condition + against the provided `value`. oneOf: - type: string enum: - "==" - "!=" + - "*=" + - "!*=" + - "^=" + - "!^=" - ">" - "<" - ">=" - "<=" + x-enum-descriptions: + - "Equal to — the condition value must exactly match." + - "Not equal to — the condition value must differ." + - "Contains — the request value must contain the provided substring." + - "Does not contain — the request value must not contain the substring." + - "Starts with — the request value must begin with the provided prefix." + - "Does not start with — the request value must not begin with the prefix." + - "Greater than — numeric comparison." + - "Less than — numeric comparison." + - "Greater than or equal — numeric comparison." + - "Less than or equal — numeric comparison." - $ref: ../../../../StackVariable.yml value: description: The value corresponding to the condition type. From 22741d6ebe5f614a3545a217e159c63975bcc1bb Mon Sep 17 00:00:00 2001 From: Bryce Date: Fri, 6 Mar 2026 06:21:26 -0800 Subject: [PATCH 2/2] lint --- .../loadbalancer/config/types/v1/WafConfig.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 35b7c5e9..97e6acfe 100644 --- a/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml +++ b/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml @@ -87,8 +87,8 @@ properties: - "Less than — numeric comparison." - "Greater than or equal — numeric comparison." - "Less than or equal — numeric comparison." - value: - description: The value corresponding to the condition type. - examples: - - "0.0.0.0/0" - type: string + value: + description: The value corresponding to the condition type. + examples: + - "0.0.0.0/0" + type: string