Skip to content

Commit e6cede3

Browse files
committed
feat(es): more waf
1 parent 654f5cf commit e6cede3

File tree

3 files changed

+89
-15
lines changed

3 files changed

+89
-15
lines changed
40.6 KB
Loading

pages/edge-services/reference-content/understanding-pricing.mdx

Lines changed: 79 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,39 +30,34 @@ When you subscribe to a plan, you are billed its flat monthly fee, which allows
3030
- Filter a fixed maximum amount of requests through [WAF](/edge-services/concepts/#waf)
3131

3232
<Message type="note">
33-
WAF is currently in Public Beta and therefore **free of charge**. For now it is only available via the [Edge Services API](https://www.scaleway.com/en/developers/api/edge-services/). It will be coming soon to the Scaleway console. When WAF enters General Availability, the free pricing model will end.
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)).
3434
</Message>
3535

3636
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.
3737

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**.
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**.
3939

4040
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).
4141

4242
## Keeping track of your Edge Services consumption
4343

4444
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.
4545

46-
## WAF
46+
## WAF add-on
4747

48-
<Message type="note">
49-
WAF is in Public Beta, and currently available free of charge and only via the [Edge Services API](https://www.scaleway.com/en/developers/api/edge-services/). It will be coming soon to the Scaleway console.
50-
</Message>
51-
52-
WAF is only compatible with Load Balancer origin pipelines, not with Object Storage bucket pipelines.
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)).
5349

54-
Although it is currently available free of charge, read on to find out more about how it will be charged once in General Availability
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.
5551

56-
Each plan (except Starter plan) will include a fixed amount of WAF requests to use across all your pipelines. If you exceed the amount of WAF requests in a month that is allowed on your plan (or by the Starter add-on), you will be charged a fee per million additional requests.
57-
58-
The **Starter** plan will be the only plan that does not include a set amount of WAF requests. To use WAF on this plan, you must pay an additional monthly add-on charge. This add-on will then let you enable WAF on all your pipelines, and use a fixed amount of WAF requests for that month across all pipelines.A ny WAF requests that exceed this amount will be charged additionally.
52+
WAF is only compatible with Load Balancer origin pipelines, not with Object Storage bucket pipelines.
5953

6054
## Included usage vs additional charges
6155

6256
Additional charges apply when you either:
6357

6458
- Have more pipelines in existence (at any given time) than the limit of your monthly plan
6559
- 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.
6661

6762
Read on to understand more about how additional charges are applied.
6863

@@ -111,6 +106,30 @@ You consumed 200 GB of cache data that was not included within your monthly plan
111106
`{Fee per GB of additional cache} * 200 GB` <br/>
112107
e.g. `0.0135 * 200 = €2.70`
113108

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+
<Message type="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+
<Message type="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+
114133
## Changing your subscription plan
115134

116135
You can upgrade or downgrade your subscription plan at any time. Read on to understand how changing plan mid-month affects your billing.
@@ -179,4 +198,51 @@ The example prices and limits used below are subject to change. You should alway
179198
You consumed 200 GB of cache data that was not included within your monthly Starter plan, between November 1-10. For the rest of the month, you were within the limits of your new Professional plan. Your November Edge Services billing, in terms of the additional cache charges, is therefore calculated as follows:
180199

181200
`{Fee per GB of additional cache} * 200 GB` <br/>
182-
e.g. `0.0135 * 200 = €2.70`
201+
e.g. `0.0135 * 200 = €2.70`
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+
<Message type="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+
<Message type="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+
<Message type="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:
245+
246+
`({Monthly price for WAF add-on} / 30 days) * 10 days` <br/>
247+
e.g. `(4 / 30) * 10 = 1.33`
248+

pages/edge-services/reference-content/understanding-waf.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,21 @@ When enabled, WAF protects your Load Balancer origin or Object Storage bucket fr
2121

2222
It does so by evaluating each request to your 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.
2323

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.
2525

2626
You can set **exclusions**, so that certain requests are not evaluated by WAF and are allowed to pass directly to your origin. Exclusion filters are based on the request path and/or HTTP request type.
2727

28-
TODO WAF diagram?
28+
<Lightbox src="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." />
2929

3030
## WAF in an Edge Services pipeline
3131

3232
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.
3333

34+
<<<<<<< HEAD
3435
<Lightbox src="scaleway-edge-services-pipeline-diag.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." />
36+
=======
37+
<Lightbox src="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." />
38+
>>>>>>> 11133a9e9 (feat(es): more waf)
3539
3640
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.
3741

@@ -52,7 +56,11 @@ The higher the paranoia level, the more likely you are to have **false positives
5256

5357
- 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.
5458

59+
<<<<<<< HEAD
5560
- 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 classed as malicious.
61+
=======
62+
- 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.
63+
>>>>>>> 11133a9e9 (feat(es): more waf)
5664

5765
| | Level 1 | Level 2 | Level 3 | Level 4 |
5866
|---|---|---|---|---|

0 commit comments

Comments
 (0)