You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/edge-services/reference-content/understanding-pricing.mdx
+86-2Lines changed: 86 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,23 +27,37 @@ When you subscribe to a plan, you are billed its flat monthly fee, which allows
27
27
28
28
- Run a fixed maximum number of Edge Services [pipelines](/edge-services/concepts/#pipeline) for the month. They can be for Object Storage or Load Balancer origins, or a mixture of both.
29
29
- Egress a fixed maximum amount of data from all your pipelines' [caches](/edge-services/concepts/#cache).
30
+
- Filter a fixed maximum amount of requests through [WAF](/edge-services/concepts/#waf)
30
31
31
-
If you subscribe to a plan, and exceed its monthly limits for pipelines or cache data, you will incur additional charges that month.
32
+
<Messagetype="note">
33
+
The Starter plan does not include WAF. To use WAF on this plan, you must may an additional monthly add-on charge (see [below](#waf-add-on)).
34
+
</Message>
32
35
33
-
Essentially, your Edge Services monthly bill is made up of your **monthly subscription plan price** + **any additional pipeline charges incurred** + **any additional cache charges incurred**.
36
+
If you subscribe to a plan, and exceed its monthly limits for pipelines, cache data, or WAF requests you will incur additional charges that month.
37
+
38
+
Essentially, your Edge Services monthly bill is made up of your **monthly subscription plan price** + **any additional pipeline charges incurred** + **any additional cache charges incurred** + **optional WAF add-on** (Started plan only) + **any additional WAF charges incurred**.
34
39
35
40
For full details of the price and limits of each plan, refer to the [pricing page](https://www.scaleway.com/en/pricing/network/#edge-services). Subscription plans are scoped to a single Scaleway [Project](/organizations-and-projects/concepts/#project).
36
41
37
42
## Keeping track of your Edge Services consumption
38
43
39
44
You can check the number of pipelines you have at any one time in the **Pipelines** tab of the Edge Services dashboard in the Scaleway console. [Scaleway Cockpit](/edge-services/how-to/monitor-cockpit/) can be used to monitor the data egressing from your Edge Services caches.
40
45
46
+
## WAF add-on
47
+
48
+
The Starter plan is the only plan that does not include WAF. To use WAF on this plan, you must may an additional monthly add-on charge (see [pricing page]([pricing page](https://www.scaleway.com/en/pricing/network/#edge-services)).
49
+
50
+
This add-on then lets you enable WAF on all your pipelines, and use a fixed amount of WAF requests for that month across all pipelines. Any WAF requests that exceed this amount will be charged additionally, as described below.
51
+
52
+
WAF is only compatible with Load Balancer origin pipelines, not with Object Storage bucket pipelines.
53
+
41
54
## Included usage vs additional charges
42
55
43
56
Additional charges apply when you either:
44
57
45
58
- Have more pipelines in existence (at any given time) than the limit of your monthly plan
46
59
- Egress more data from all your pipelines' caches combined, than the limit of your monthly plan
60
+
- Filter more requests through WAF, for all of your pipelines combined, than the limit of your monthly plan or add-on.
47
61
48
62
Read on to understand more about how additional charges are applied.
49
63
@@ -92,6 +106,30 @@ You consumed 200 GB of cache data that was not included within your monthly plan
92
106
`{Fee per GB of additional cache} * 200 GB` <br/>
93
107
e.g. `0.0135 * 200 = €2.70`
94
108
109
+
### Additional WAF charges
110
+
111
+
WAF consumption is based on the number of requests processed by all your Edge Services pipelines' Web Application Firewalls combined, in a given month. Requests that are served by the cache are **not** processed by WAF, as WAF protects only your origin.
112
+
113
+
For every million requests processed by Edge Services WAF in a month, **beyond** the limit of your monthly plan (or add-on, in the case of the Starter plan), an additional charge applies.
114
+
115
+
For example:
116
+
117
+
<Messagetype="important">
118
+
The example prices and limits used below are subject to change. You should always refer to the [pricing page](https://www.scaleway.com/en/pricing/network/#edge-services) for the most up to date information.
119
+
</Message>
120
+
121
+
- For the entire month of November, you are subscribed to the **Professional** plan, which has a limit of 5M WAF requests.
122
+
- Over the course of the month, a total of 8M requests were processed by WAF across all your Edge Services pipelines.
123
+
124
+
You used 3M extra WAF requests that were not included within your monthly plan. Your November Edge Services billing, in terms of additional WAF charges, is therefore calculated as follows:
125
+
126
+
`{Fee per additional 1M WAF requests} * 3` <br/>
127
+
e.g. `0.5 * 3 = €1.50`
128
+
129
+
<Messagetype="note">
130
+
You are charged proportionally for additional WAF requests, even though the price is set per million. If, for example, you only make 500,000 additional WAF requests in a month, you will be charged `{Fee per additional 1M WAF requests} / 2`.
131
+
</Message>
132
+
95
133
## Changing your subscription plan
96
134
97
135
You can upgrade or downgrade your subscription plan at any time. Read on to understand how changing plan mid-month affects your billing.
@@ -162,3 +200,49 @@ You consumed 200 GB of cache data that was not included within your monthly Star
162
200
`{Fee per GB of additional cache} * 200 GB` <br/>
163
201
e.g. `0.0135 * 200 = €2.70`
164
202
203
+
### WAF charges
204
+
205
+
Any additional WAF request charges accumulated when you exceeded your previous plan's limit will remain on your monthly bill. From the moment you change your plan, your WAF request consumption resets to 0. During the rest of the month, you can consume WAF requests up to the new plan's limit without being charged.
206
+
207
+
<Messagetype="note">
208
+
- If you **downgrade** your plan, all the WAF requests made within the hour of changing plans will count towards the WAF request consumption of the new plan.
209
+
- If you **upgrade** your plan, all the WAF requests made within the hour of changing plans will count towards the cache consumption of the old plan.
210
+
</Message>
211
+
212
+
For example:
213
+
214
+
<Messagetype="important">
215
+
The example prices and limits used below are subject to change. You should always refer to the [pricing page](https://www.scaleway.com/en/pricing/network/#edge-services) for the most up to date information.
216
+
</Message>
217
+
218
+
- From November 1-10 you are subscribed to the **Professional** plan, which has a limit of 5M WAF requests.
219
+
- From November 1-10 you make 10M WAF requests.
220
+
- On November 11, you upgrade to the **Advanced** plan, which has a limit of 50M WAF requests. Your WAF request usage resets to 0.
221
+
- Between November 11 and the end of the month, you make 50M WAF requests.
222
+
223
+
You made 5M WAF requests that were not included within your monthly Professional plan, between November 1-10. For the rest of the month, you were within the limits of your new Advanced plan. Your November Edge Services billing, in terms of the additional cache charges, is therefore calculated as follows:
224
+
225
+
`{Fee per additional 1M WAF requests} * 5` <br/>
226
+
e.g. `0.5* 5 = €2.50`
227
+
228
+
### WAF add-on
229
+
230
+
This scenario applies to a user who is subscribed to the Starter plan and pays the WAF add-on price, then upgrades to a higher level plan.
231
+
232
+
You will be billed pro-rata for the add-on charge, based on how long you were subscribed Starter with an add-on before upgrading, during the billing month.
233
+
234
+
For example:
235
+
236
+
<Messagetype="important">
237
+
The example prices and limits used below are subject to change. You should always refer to the [pricing page](https://www.scaleway.com/en/pricing/network/#edge-services) for the most up to date information.
238
+
</Message>
239
+
240
+
- From November 1-10 you are subscribed to the **Starter** plan and **WAF add-on**
241
+
- On November 11, you switch to the **Professional** plan.
242
+
- You remain subscribed to the **Professional** plan for the rest of the month (ending November 30)
243
+
244
+
There are 30 days in the month of November, and you spent 10 of them subscribed to the Starter plan with the WAF add-on. When you upgrade to the Professional plan, the WAF add-on was no longer applicable because WAF was automatically included in your subscription plan. Your November Edge Services billing, in terms of the WAF add-on, is therefore calculated as follows:
Copy file name to clipboardExpand all lines: pages/edge-services/reference-content/understanding-waf.mdx
+56-6Lines changed: 56 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,25 +21,75 @@ When enabled, WAF protects your Load Balancer backend from potential threats.
21
21
22
22
It does so by evaluating each request to your Load Balancer origin, to determine whether it is potentially malicious. Four different rulesets can be used to evaluate requests, each more aggressive than the last. The ruleset to use is determined by the **paranoia level** set by the user.
23
23
24
-
For requests judged to be malicious, WAF can either block them from passing to your origin, or simply log them but allow them to pass, depending on the settings you choose.
24
+
For requests judged to be malicious, WAF can either block them from passing to your origin (as shown in the diagram below), or simply log them but allow them to pass, depending on the settings you choose.
25
25
26
26
You can set **exclusions**, so that certain requests are not evaluated by WAF and are allowed to pass directly to your Load Balancer origin. Exclusion filters are based on the request path and/or HTTP request type.
27
27
28
-
TODO WAF diagram?
28
+
<Lightboxsrc="scaleway-edge-services-waf-diag.webp"alt="A diagram shows how Edge Services WAF deals with three different types of HTTP request. A request meeting the criteria for WAF exclusion is passed directly to the Load Balancer origin. A benign request is first checked by the WAF rules, then allowed to pass to the Load Balancer origin. A malicious request is checked by the rules, and blocked from passing to the Load Balancer origin." />
29
29
30
30
## WAF in an Edge Services pipeline
31
31
32
32
In an Edge Services pipeline, WAF sits before the origin stage. This means that WAF only protects your origin, it does not protect or filter requests towards the cache.
33
33
34
-
TODO DIAGRAM
34
+
<Lightboxsrc="scaleway-edge-services-pipeline.webp"alt="A diagram shows the elements and workflow of an Edge Services pipeline. The user connects to the customizable Edge Services endpoint (with its SSL/TLS certificate), which fetches content from the Edge Services cache, which itself fetches content to cache from an origin which is either an Object Storage bucket or Load Balancer. A Web Application Firewall sits between the cache and origin, protecting the origin from threats." />
35
35
36
-
## WAF ruleset and paranoia level
36
+
If you have both WAF and cache enabled, requests that can be served by the cache will not go through WAF. Only requests that cannot be served by the cache will be filtered by WAF, and allowed to pass to the origin or not depending on your WAF configuration.
37
37
38
-
When evaluating requests
38
+
## WAF ruleset and paranoia levels
39
+
40
+
Scaleway Edge Services WAF uses the [OWASP **C**ore **R**ule **S**et (CRS)](https://coreruleset.org/). This is an industry standard, open source ruleset for WAF, which protects against multiple categories of attack such as SQL injection and cross-site scripting. Full details are available in the [OWASP CRS documentation](https://coreruleset.org/docs/).
41
+
42
+
**Paranoia level settings** are an integral part of the core ruleset. They dictate how aggressive the ruleset should be when judging whether a given request is malicious or not. The paranoia level is rated from 1 to 4, which each being more aggressive and more sensitive to potential threats than the last.
43
+
44
+
The four levels are:
45
+
46
+
-**1 - Minimal protection**: Basic security, suitable for environments with low sensitivity, prioritizing minimal false alerts.
47
+
-**2 - Moderate protection**: Solid protection for environments dealing with real-world customer data.
48
+
-**3 - Strong protection**: Banking-standard security, prioritizing safety but prone to frequent false alerts.
49
+
-**4 - Maximum protection**: Hyper-paranoid rules, fit for protecting the most critical and sensitive assets.
50
+
51
+
The higher the paranoia level, the more likely you are to have **false positives**. This is when WAF classes a request as malicious, when in fact it is not.
52
+
53
+
- At level 1, the ruleset is unlikely to trigger false positives, however it is also more likely to miss threats and aggressions and classify them as benign.
54
+
55
+
- At level 4, the ruleset is so aggressive that it detects almost every possible attack, however it is also highly likely to trigger a significant number of false positives whereby a lot of legitimate traffic will be classes as malicious.
56
+
57
+
|| Level 1 | Level 2 | Level 3 | Level 4 |
58
+
|---|---|---|---|---|
59
+
| Number of threats detected | Lowest | Moderately Low | Moderately High | Highest |
60
+
| Number of false positives | Lowest | Moderately Low | Moderately High | Highest |
61
+
62
+
Choosing a paranoia level therefore means trading off **how hard it is for an attacker to go undetected** against **how much legitimate traffic is incorrectly classified as malicious**. This depends on your use case, and the sensitivity of the application and assets being protected by WAF.
63
+
64
+
- Anyone running an HTTP server on the internet could benefit from level 1 protection.
65
+
- If real user data is involved, consider level 2.
66
+
- For online banking, consider level 3
67
+
- For crown-jewel level assets, consider level 4.
68
+
69
+
Find out more about paranoia levels in the [official OWASP CRS documentation](https://coreruleset.org/docs/2-how-crs-works/2-2-paranoia_levels/).
70
+
71
+
Read on to find out how you can use **exclusions** to mitigate the effect of some false positives.
72
+
73
+
## WAF exclusions
74
+
75
+
WAF **exclusions** are filters that allow matching requests (based on **path** and/or **HTTP request type**) to bypass WAF entirely.
76
+
77
+
You can set up to 100 exclusions after enabling WAF on a given pipeline.
78
+
79
+
-**Path filter**: Define a regular expression to filter for in request paths, e.g. `/api/v1/.*`
80
+
-**HTTP request filter**: Define one or more HTTP request types to filter requests for, e.g. `GET`, `DELETE`, `POST` etc.
81
+
82
+
Each exclusion can consist of:
83
+
84
+
- A path filter only, OR
85
+
- An HTTP request filter only (which itself can filter for multiple request types on an `ANY` basis), OR
86
+
- One path filter and one HTTP request filter. In this case, only requests matching **both** filters will be considered to meet the criteria for exclusion.
87
+
88
+
TODO screenshot?
39
89
40
90
## WAF limitations
41
91
42
92
- WAF is only compatible with Load Balancer origins. It cannot be enabled for Object Storage bucket origins.
43
93
- WAF protects your origin only, and not your cache.
44
94
- You can add a maximum of 100 WAF exclusions
45
-
-
95
+
-You cannot currently specify exclusions at the individual rule level. Requests matching exclusion filters bypass WAF entirely.
0 commit comments