Skip to content

Commit 0b1b5c4

Browse files
committed
Rules: Port relevant changelog entries to the new version
1 parent 259c218 commit 0b1b5c4

File tree

9 files changed

+146
-0
lines changed

9 files changed

+146
-0
lines changed
4.89 MB
Loading
929 KB
Loading
534 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "New Rules Templates for One-Click Rule Creation"
3+
description: Cloudflare introduces pre-built rule templates for quick and easy configuration.
4+
products:
5+
- rules
6+
date: 2024-09-05T11:00:00Z
7+
---
8+
9+
Cloudflare now offers **Rules templates**, allowing users to quickly create common [Cloudflare Rules](/rules/) configurations with a single click.
10+
11+
![Rules Templates](~/assets/images/rules/reference/rules-templates.gif)
12+
13+
New capabilities:
14+
15+
- **Pre-configured rules** – Select from a library of common goal-based templates.
16+
- **One-click setup** – Deploy best practices instantly.
17+
- **Customizable options** – Modify templates to fit specific needs.
18+
19+
Template cards are also now available directly in the rule builder for each product.
20+
21+
You can also refer to the [Examples gallery](/rules/examples/) in the developer docs.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Simplified UI for URL Rewrites"
3+
description: The new URL Rewrite interface makes wildcard-based rule creation straightforward.
4+
products:
5+
- rules
6+
date: 2024-10-23T11:00:00Z
7+
---
8+
9+
Cloudflare introduces a **simplified UI for [URL Rewrites](/rules/transform/url-rewrite/)**, making it easier to configure dynamic wildcard-based URL transformations.
10+
11+
![Rules Overview Interface](~/assets/images/rules/transform/create-url-rewrite-rule.png)
12+
13+
New capabilities:
14+
15+
- **Intuitive wildcard support** – Easily create rewrite patterns.
16+
- **Simplified rule creation** – No need for complex functions.
17+
- **Better visibility** – View and manage rewrites in a structured UI.
18+
19+
Find more information about the updated interface at [Create a Rewrite URL rule in the dashboard](/rules/transform/url-rewrite/create-dashboard/#wildcard-pattern-parameters).
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Cloud Connector Now Supports R2"
3+
description: Cloud Connector now integrates with Cloudflare R2 for object storage.
4+
products:
5+
- rules
6+
date: 2024-11-22T11:00:00Z
7+
---
8+
9+
[Cloud Connector](/rules/cloud-connector/) now supports routing matching incoming requests to [R2 object storage](/r2/), allowing seamless integration between [Cloudflare Rules](/rules/) and Cloudflare’s object storage solution. Now, you can route traffic to your R2 buckets based on URLs, headers, geolocation, and more.
10+
11+
Configure Cloud Connector for R2:
12+
13+
```bash
14+
curl --request PUT \
15+
"https://api.cloudflare.com/client/v4/zones/{zone_id}/cloud_connector/rules" \
16+
--header "Authorization: Bearer <API_TOKEN>" \
17+
--header "Content-Type: application/json" \
18+
--data '[
19+
{
20+
"expression": "http.request.uri.path wildcard \"/images/*\"",
21+
"provider": "cloudflare_r2",
22+
"description": "Connect to R2 bucket containing images",
23+
"parameters": {
24+
"host": "mybucketcustomdomain.example.com"
25+
}
26+
}
27+
]'
28+
```
29+
30+
For more details, visit [Cloud Connector documentation](/rules/cloud-connector/).
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: "Terraform Support for Snippets"
3+
description: Manage Cloudflare Snippets with Terraform for automated deployments.
4+
products:
5+
- rules
6+
date: 2024-12-11T11:00:00Z
7+
---
8+
9+
Cloudflare now supports managing [Snippets](/rules/snippets/) via [Terraform](/terraform/), allowing users to deploy and configure Snippet code and Snippet rules as part of infrastructure-as-code workflows.
10+
11+
Example Terraform configuration:
12+
13+
```tf
14+
resource "cloudflare_snippet" "my_snippet" {
15+
zone_id = "<ZONE_ID>"
16+
name = "my_test_snippet_1"
17+
main_module = "file1.js"
18+
files {
19+
name = "file1.js"
20+
content = file("file1.js")
21+
}
22+
}
23+
24+
resource "cloudflare_snippet_rules" "cookie_snippet_rule" {
25+
zone_id = "<ZONE_ID>"
26+
rules {
27+
enabled = true
28+
expression = "http.cookie eq \"a=b\""
29+
description = "Trigger snippet on specific cookie"
30+
snippet_name = "my_test_snippet_1"
31+
}
32+
depends_on = [cloudflare_snippet.my_snippet]
33+
}
34+
```
35+
36+
For more details, refer to [Configure Snippets using Terraform](/rules/snippets/create-terraform/).
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: New Rules Overview Interface
3+
description: The new Rules Overview consolidates all rule management into a single interface.
4+
products:
5+
- rules
6+
date: 2025-01-09T11:00:00Z
7+
---
8+
9+
Cloudflare introduces the **Rules Overview**, a centralized interface for managing [Cloudflare Rules](/rules/) products. This update simplifies navigation, making rule management more intuitive.
10+
11+
![Rules Overview Interface](~/assets/images/rules/reference/rules-overview.gif)
12+
13+
New capabilities:
14+
15+
- **Unified interface**: Manage all rules in one place — no more navigating through multiple menu tabs.
16+
- **Search across rules**: Quickly locate specific rules.
17+
- **Clear rule order**: View and manage rules by their execution sequence for streamlined configuration.
18+
- **Enhanced visibility**: Instantly view the filter (conditions) and action (outcome) for every rule.
19+
- **Faster debugging**: Use Trace directly from the zone-level interface for simple, quick troubleshooting.
20+
21+
Find the new interface in the Cloudflare dashboard under [Rules > Overview](https://dash.cloudflare.com/?to=/:account/:zone/rules/overview).
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: New Snippets Code Editor
3+
description: Cloudflare launches a new Snippets code editor, allowing rule editing on a single page.
4+
products:
5+
- rules
6+
date: 2025-01-29T11:00:00Z
7+
---
8+
9+
Cloudflare introduces the **new Snippets code editor**, enhancing the way users write and manage [Snippets](/rules/snippets/) within the Cloudflare dashboard. The editor unifies rule and Snippet management into a single interface, streamlining workflows. Now, you can update and deploy both your code and rules from a single screen, cutting out extra steps and saving time.
10+
11+
![New Snippets code editor](~/assets/images/rules/snippets/snippets-new-editor.png)
12+
13+
Key improvements:
14+
15+
- **Single-page editing** – Edit Snippets and related rules in one place.
16+
- **Code formatting & refactoring** – Improved structure and readability.
17+
- **Auto-complete & syntax highlighting** – Enhance efficiency and reduce errors.
18+
19+
To access the new editor, navigate to [Rules > Snippets](https://dash.cloudflare.com/?to=/:account/:zone/rules/snippets).

0 commit comments

Comments
 (0)