Skip to content

Commit a9b9ed0

Browse files
authored
[Rules] Add R2 to Cloud Connector (#18451)
* Add R2 provider * Add changelog entry
1 parent c782dcd commit a9b9ed0

File tree

5 files changed

+19
-16
lines changed

5 files changed

+19
-16
lines changed

src/content/changelogs/rules.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ productLink: "/rules/"
55
productArea: Application performance
66
productAreaLink: /fundamentals/reference/changelog/performance/
77
entries:
8+
- publish_date: "2024-11-22"
9+
title: Support for Cloudflare R2 object storage in Cloud Connector
10+
description: |-
11+
You can now connect to R2 buckets in [Cloud Connector](/rules/cloud-connector/).
812
- publish_date: "2024-10-23"
913
title: Simplified user interface for URL Rewrites with wildcard support
1014
description: |-
1115
The new simplified user interface for [URL Rewrites](/rules/transform/url-rewrite/) is now live, making it easier for users to configure URL rewrites with wildcard support. This update streamlines the process by eliminating the need for complex functions in rule creation.
1216
The updated user interface is available at **Rules** > **Transform Rules** > **Rewrite URL**. For more information, refer to the [wildcard support documentation](/rules/transform/url-rewrite/reference/parameters/#wildcard-matching-and-replacement).
13-
1417
- publish_date: "2024-09-20"
1518
title: Automatic DNS Validation for Cloudflare Rules
1619
description: |-

src/content/docs/rules/cloud-connector/create-api.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following table summarizes the available operations.
3434

3535
| Operation | Verb + Endpoint |
3636
| ------------------------------------------ | -------------------------------------------- |
37-
| List Cloud Connector rules | `GET /zones/{zone_id}/cloud_connector/rules` |
37+
| List Cloud Connector rules | `GET /zones/{zone_id}/cloud_connector/rules` |
3838
| Create/update/delete Cloud Connector rules | `PUT /zones/{zone_id}/cloud_connector/rules` |
3939

4040
## Example API calls
@@ -84,15 +84,15 @@ curl --request PUT \
8484
--data '[
8585
{
8686
"expression": "http.request.uri.path wildcard \"/images/*\"",
87-
"provider": "aws_s3",
88-
"description": "Connect to S3 bucket containing images",
87+
"provider": "cloudflare_r2",
88+
"description": "Connect to R2 bucket containing images",
8989
"parameters": {
90-
"host": "examplebucketwithimages.s3.north-eu.amazonaws.com"
90+
"host": "mybucketcustomdomain.example.com"
9191
}
9292
}
9393
]'
9494
```
9595

9696
The required body parameters for each rule are: `expression`, `provider`, and `parameters.host`.
9797

98-
The `provider` value must be one of the following: `aws_s3`, `azure_storage`, and `gcp_storage`.
98+
The `provider` value must be one of the following: `cloudflare_r2`, `aws_s3`, `azure_storage`, and `gcp_storage`.

src/content/docs/rules/cloud-connector/create-dashboard.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ To configure a Cloud Connector rule in the dashboard:
1414

1515
2. Go to **Rules** > **Cloud Connector**.
1616

17-
3. Select your [cloud provider](/rules/cloud-connector/providers/).
17+
3. Select your [cloud provider](/rules/cloud-connector/providers/) (Cloudflare R2 or an external provider).
1818

19-
4. Enter the bucket URL and select **Next**.
19+
4. If you selected Cloudflare R2 in the previous step, select your bucket and your custom domain, and select **Next**.<br/>
20+
If you selected a different storage provider, enter the bucket URL and select **Next**.
2021

2122
:::caution
2223
The bucket URL must follow a [specific format](/rules/cloud-connector/providers/) according to your provider.

src/content/docs/rules/cloud-connector/index.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ head:
1313

1414
import { FeatureTable } from "~/components";
1515

16-
Cloud Connector (beta) allows you to route matching incoming traffic from your website to a public cloud provider that you define such as AWS, Google Cloud, and Azure. With Cloud Connector you can make Cloudflare the control center for your web traffic, including traffic served from public cloud providers, without having to configure additional rules.
17-
18-
:::note
19-
Support for Cloudflare R2 will be added soon.
20-
:::
16+
Cloud Connector (beta) allows you to route matching incoming traffic from your website to a public cloud provider that you define: [Cloudflare R2](/r2/) object storage or an external provider such as AWS, Google Cloud, and Azure. With Cloud Connector you can make Cloudflare the control center for your web traffic, including traffic served from public cloud providers, without having to configure additional rules.
2117

2218
## How it works
2319

src/content/docs/rules/cloud-connector/providers.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ import { Render } from "~/components";
99

1010
Cloud Connector currently supports the following cloud providers and services:
1111

12+
- Cloudflare R2
1213
- Amazon Web Services - S3
1314
- Google Cloud Platform - Cloud Storage
1415
- Microsoft Azure - Blob Storage
1516

16-
:::note
17-
Support for Cloudflare R2 will be added soon.
18-
:::
17+
## Cloudflare R2
18+
19+
The Cloudflare R2 bucket must be public and [exposed using a custom domain](/r2/buckets/public-buckets/). Buckets exposed using an `r2.dev` subdomain are not supported.
20+
21+
Additionally, the custom domain must be defined in the same zone where you are configuring the Cloud Connector rule.
1922

2023
## Amazon Web Services - S3
2124

0 commit comments

Comments
 (0)