Skip to content

Commit 90a63d2

Browse files
authored
Merge branch 'production' into max/gw/list-rate-limit
2 parents 9076e3e + 9f2c958 commit 90a63d2

File tree

35 files changed

+270
-60
lines changed

35 files changed

+270
-60
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: 50-500ms Faster D1 REST API Requests
3+
description: D1 REST API request latency improvements.
4+
products:
5+
- d1
6+
- workers
7+
date: 2025-05-29T00:00:00Z
8+
---
9+
10+
Users using Cloudflare's [REST API](/api/resources/d1/) to query their D1 database can see lower end-to-end request latency now that D1 authentication is performed at the closest Cloudflare network data center that received the request. Previously, authentication required D1 REST API requests to proxy to Cloudflare's core, centralized data centers, which added network round trips and latency.
11+
12+
Latency improvements range from 50-500 ms depending on request location and [database location](/d1/configuration/data-location/) and only apply to the REST API. REST API requests and databases outside the United States see a bigger benefit since Cloudflare's primary core data centers reside in the United States.
13+
14+
D1 query endpoints like `/query` and `/raw` have the most noticeable improvements since they no longer access Cloudflare's core data centers. D1 control plane endpoints such as those to create and delete databases see smaller improvements, since they still require access to Cloudflare's core data centers for other control plane metadata.

src/content/changelog/fundamentals/2025-05-06-terraform-v5.4.0-provider.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Earlier this year, we announced the launch of the new [Terraform v5 Provider](/c
1010

1111
### Changes
1212

13-
- Removes the `worker_platforms_script_secret` resource from the provider
14-
- Removes duplicated fields in `cloudflare_cloud_connector_rules` resource
13+
- Removes the `worker_platforms_script_secret` resource from the provider (see [migration guide](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/guides/version-5-upgrade#cloudflare_worker_secret) for alternatives—applicable to both Workers and Workers for Platforms)
14+
- Removes duplicated fields in `cloudflare_cloud_connector_rules` resource
1515
- Fixes `cloudflare_workers_route` id issues [#5134](https://github.com/cloudflare/terraform-provider-cloudflare/issues/5134) [#5501](https://github.com/cloudflare/terraform-provider-cloudflare/issues/5501)
1616
- Fixes issue around refreshing resources that have unsupported response types
1717
<details>
@@ -68,6 +68,9 @@ Earlier this year, we announced the launch of the new [Terraform v5 Provider](/c
6868
<li>`cloudflare_zero_trust_access_group`</li>
6969
</ul>
7070
</details>
71+
- Fixed defaults that made `cloudflare_workers_script` fail when using Assets
72+
- Fixed Workers Logpush setting in `cloudflare_workers_script` mistakenly being readonly
73+
- Fixed `cloudflare_pages_project` broken when using "source"
7174

7275
The detailed [changelog](https://github.com/cloudflare/terraform-provider-cloudflare/releases/tag/v5.4.0) is available on GitHub.
7376

src/content/docs/cache/concepts/default-cache-behavior.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ Cloudflare’s CDN provides several cache customization options:
5959

6060
<FeatureTable id="network.max_upload_size" />
6161

62+
Customers can reduce the **Maximum Upload Size** from the zone's **Network** page.
63+
6264
If you require a larger upload, group requests smaller than the upload thresholds or upload the full resource through an [unproxied (grey-clouded) DNS record](/dns/proxy-status/).
6365

6466
### Cacheable size limits

src/content/docs/cache/get-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Configure your settings to cache static HTML or cache anonymous page views of dy
4343

4444
## Improve cache HIT rates
4545

46-
Include or exclude query strings, optimize cache keys, or enable tiered cache to improve HIT rates and reduce traffic to your origin.
46+
Include or exclude query strings, optimize cache keys, or enable [Tiered Cache](/cache/how-to/tiered-cache/) to improve HIT rates and reduce traffic to your origin.
4747

4848
* [Choose a cache level](/cache/how-to/set-caching-levels/)
4949
* [Enable Tiered Cache with Argo](/cache/how-to/tiered-cache/#enable-tiered-cache)

src/content/docs/cloudflare-one/connections/connect-networks/configure-tunnels/cloudflared-parameters/run-parameters.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ Specifies the [account certificate](/cloudflare-one/connections/connect-networks
123123

124124
Writes the application's process identifier (PID) to this file after the first successful connection. Mainly useful for scripting and service integration.
125125

126+
## `post-quantum`
127+
128+
| Syntax | Environment Variable |
129+
| -------------------------------------------------------- | -------------------- |
130+
| `cloudflared tunnel run --post-quantum <UUID or NAME>` | `TUNNEL_POST_QUANTUM`|
131+
132+
133+
By default, Cloudflare Tunnel connections over [`quic`](#protocol) are encrypted using [post-quantum cryptography (PQC)](/ssl/post-quantum-cryptography/) but will fall back to non-PQ if there are issues connecting. If the `--post-quantum` flag is provided, `quic` connections are only allowed to use PQ key agreements, with no fallback to non-PQ.
134+
135+
Post-quantum key agreements are not supported when using `http2` protocol.
136+
126137
## `protocol`
127138

128139
| Syntax | Default | Environment Variable |

src/content/docs/developer-spotlight/application-guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To apply to the program, submit an application through the [Developer Spotlight
3232

3333
## Account credits
3434

35-
Account credits can be used towards recurring monthly charges for Cloudflare plans or add-on services. Once a tutorial submission has been approved and published, we can then add 350 credits to your Cloudflare account. Credits are only valid for three years. Valid payment details must be stored on the recieving account before credits can be added.
35+
Account credits can be used towards recurring monthly charges for Cloudflare plans or add-on services. Once a tutorial submission has been approved and published, we can then add 350 credits to your Cloudflare account. Credits are only valid for three years. Valid payment details must be stored on the receiving account before credits can be added.
3636

3737
## FAQ
3838

src/content/docs/durable-objects/reference/data-location.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,7 @@ future.
9797
the Durable Object will spawn in a nearby location which does support Durable
9898
Objects. For example, Durable Objects hinted to South America spawn in Eastern
9999
North America instead.
100+
101+
## Additional resources
102+
103+
- You can find our more about where Durable Objects are located using the website: [Where Durable Objects Live](https://where.durableobjects.live/).

src/content/docs/learning-paths/warp-overview-course/series/warp-basics-1.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
pcx_content_type: navigation
3-
title: Understand the Cloudflare WARP basics
3+
title: Understand Cloudflare WARP basics
44
sidebar:
55
order: 2
66
tableOfContents: false
@@ -16,7 +16,7 @@ import { Render, Tabs, TabItem, Stream, Card } from "~/components";
1616
<Card>
1717
<Stream
1818
id="31178cc41d0ec56d42ef892160589635"
19-
title="Understand the Cloudflare WARP basics"
19+
title="Understand Cloudflare WARP basics"
2020
thumbnail="https://pub-d9bf66e086fb4b639107aa52105b49dd.r2.dev/Understand-Cloudflare-WARP-Basics%20thumbnail.png"
2121
showMoreVideos={false}
2222
chapters={{
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
pcx_content_type: navigation
3+
title: WARP diagnostic logs
4+
sidebar:
5+
order: 3
6+
tableOfContents: false
7+
---
8+
9+
import { Render, Tabs, TabItem, Stream, Card } from "~/components";
10+
11+
<Tabs>
12+
<TabItem label="Watch this episode">
13+
14+
In this more advanced episode, we explain how to use warp-diag files to identify and resolve connection issues with the WARP client. You will learn how to locate and interpret three key files: `warp-status`, `warp-settings`, and `daemon.log`. The video also provides troubleshooting tips including specific keyword searches and guidance on how to cross-reference logs to identify a bigger picture of the problem.
15+
16+
<Card>
17+
<Stream
18+
id="c29964ab3dcf7c3432ebb2b4e93c3aca"
19+
title="WARP diagnostic logs"
20+
thumbnail="https://pub-d9bf66e086fb4b639107aa52105b49dd.r2.dev/Warp-diagnostics%20thumbnail.png"
21+
showMoreVideos={false}
22+
chapters={{
23+
"Introduction": "0s",
24+
"What are warp-diag files?": "44s",
25+
"How to download and navigate warp-diag files": "1m16s",
26+
"warp-status.txt": "2m06s",
27+
"warp-settings.txt": "2m29s",
28+
"daemon.log": "3m37s",
29+
"Addition tips": "8m07s",
30+
"Conclusion": "8m43s",
31+
}}
32+
/>
33+
34+
**Related content**
35+
36+
Explore the following resources on WARP, device profiles, operating modes, and split tunneling:
37+
38+
- [Introduction to Cloudflare WARP](/cloudflare-one/connections/connect-devices/warp/)
39+
- [Troubleshooting WARP](/cloudflare-one/connections/connect-devices/warp/troubleshooting/)
40+
</Card>
41+
</TabItem>
42+
43+
<TabItem label="Series overview">
44+
<Render file="warp-series-navigation" />
45+
</TabItem>
46+
</Tabs>

src/content/docs/logs/reference/custom-fields.mdx

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,50 @@ Perform the following steps to create the rule:
189189
}
190190
```
191191

192+
#### Record duplicate response header values
193+
194+
Some headers sent from the origin — such as `set-cookie` — may have multiple values that you want to capture. You can use the Rulesets API to specify which headers should have all their values logged.
195+
196+
```bash
197+
curl --request PUT \
198+
--url https://api.cloudflare.com/client/v4/zones/{{ZONE_TAG}}/rulesets/{{RULE_ID}} \
199+
--header 'content-type: application/json' \
200+
--header 'x-auth-email: {{EMAIL}}' \
201+
--header 'x-auth-key: {{API_KEY}}' \
202+
--data '{
203+
"rules": [
204+
{
205+
"action": "log_custom_field",
206+
"expression": "true",
207+
"description": "Set Logpush custom fields for HTTP requests",
208+
"action_parameters": {
209+
"response_fields": [
210+
{"name": "set-cookie", "preserve_duplicates": true}
211+
]
212+
}
213+
}
214+
]
215+
}'
216+
```
217+
218+
Note that `preserve_duplicates` applies to both `response_fields` and `raw_response_fields`. If there are no transform rules that affect a header, including `preserve_duplicates` in either `response_fields` or `raw_response_fields` should achieve the same result.
219+
220+
In this example, all values of the `set-cookie` headers will be logged. They will appear as an array of string values under `ResponseFields`, for example:
221+
222+
```json
223+
{
224+
225+
“ResponseFields”: {
226+
“set-cookie”: [“name1=val1”, “name2=val2”...]
227+
}
228+
}
229+
```
230+
231+
You can use a worker or custom logic at your logpush destination to extract these values.
232+
192233
### 2. Include the custom fields in your Logpush job
193234

194-
Next, include `Cookies`, `RequestHeaders`, and/or `ResponseHeaders`, depending on your custom field configuration, in the list of fields of the `output_options` job parameter when creating or updating a job. The logs will contain the configured custom fields and their values in the request/response.
235+
Next, include `Cookies`, `RequestHeaders`, `ResponseHeaders`, and/or `ResponseFields`, depending on your custom field configuration, in the list of fields of the `output_options` job parameter when creating or updating a job. The logs will contain the configured custom fields and their values in the request/response.
195236

196237
For example, consider the following request that creates a job that includes custom fields:
197238

@@ -230,6 +271,5 @@ If you are a Cloudflare Access user, as of March 2022 you have to manually add t
230271
## Limitations
231272

232273
- Custom fields allow 100 headers per field type — this applies separately to `request_fields`, `transformed_request_fields`, `response_fields`, `raw_response_fields`, and `cookie_fields`.
233-
- For headers which may be included multiple times (for example, the `set-cookie` response header), a custom field will only log the first instance of the header. Subsequent headers of the same type will be ignored.
234274
- The request header `Range` is currently not supported by Custom Fields.
235275
- Transformed and raw values for request and response headers are available only via the API and cannot be set through the UI.

0 commit comments

Comments
 (0)