Skip to content

Commit 4eec4d9

Browse files
committed
update waf operators
1 parent 85b295e commit 4eec4d9

2 files changed

Lines changed: 41 additions & 7 deletions

File tree

components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,34 @@ properties:
6161
- http-header-match
6262
- http-body-match
6363
operator:
64-
description: A string that indicates the range of values relative to the value property.
6564
type: string
65+
description: |
66+
Defines the comparison operator used to evaluate the rule condition
67+
against the provided `value`.
6668
enum:
6769
- "=="
6870
- "!="
71+
- "*="
72+
- "!*="
73+
- "^="
74+
- "!^="
6975
- ">"
7076
- "<"
7177
- ">="
7278
- "<="
73-
value:
74-
description: The value corresponding to the condition type.
75-
examples:
76-
- "0.0.0.0/0"
77-
type: string
79+
x-enum-descriptions:
80+
- "Equal to — the condition value must exactly match."
81+
- "Not equal to — the condition value must differ."
82+
- "Contains — the request value must contain the provided substring."
83+
- "Does not contain — the request value must not contain the substring."
84+
- "Starts with — the request value must begin with the provided prefix."
85+
- "Does not start with — the request value must not begin with the prefix."
86+
- "Greater than — numeric comparison."
87+
- "Less than — numeric comparison."
88+
- "Greater than or equal — numeric comparison."
89+
- "Less than or equal — numeric comparison."
90+
value:
91+
description: The value corresponding to the condition type.
92+
examples:
93+
- "0.0.0.0/0"
94+
type: string

stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,33 @@ properties:
7676
- http-body-match
7777
- $ref: ../../../../StackVariable.yml
7878
operator:
79-
description: A string that indicates the range of values relative to the value property.
79+
description: |
80+
Defines the comparison operator used to evaluate the rule condition
81+
against the provided `value`.
8082
oneOf:
8183
- type: string
8284
enum:
8385
- "=="
8486
- "!="
87+
- "*="
88+
- "!*="
89+
- "^="
90+
- "!^="
8591
- ">"
8692
- "<"
8793
- ">="
8894
- "<="
95+
x-enum-descriptions:
96+
- "Equal to — the condition value must exactly match."
97+
- "Not equal to — the condition value must differ."
98+
- "Contains — the request value must contain the provided substring."
99+
- "Does not contain — the request value must not contain the substring."
100+
- "Starts with — the request value must begin with the provided prefix."
101+
- "Does not start with — the request value must not begin with the prefix."
102+
- "Greater than — numeric comparison."
103+
- "Less than — numeric comparison."
104+
- "Greater than or equal — numeric comparison."
105+
- "Less than or equal — numeric comparison."
89106
- $ref: ../../../../StackVariable.yml
90107
value:
91108
description: The value corresponding to the condition type.

0 commit comments

Comments
 (0)