From fdf070bb069f5fb06ebe77bc5b756b40107caf14 Mon Sep 17 00:00:00 2001 From: Max Phillips Date: Wed, 19 Feb 2025 09:24:40 -0600 Subject: [PATCH 1/3] Add file size selectors --- .../policies/gateway/http-policies/index.mdx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx b/src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx index 15054787bac49a9..cfb051bf2823741 100644 --- a/src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx +++ b/src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx @@ -464,6 +464,18 @@ Use this selector to match against a domain and all subdomains -- for example, i | ------- | -------------------------------------------- | | Domain | `any(http.conn.domains[*] == "example.com")` | +### Download and Upload File Size + +These selectors can be used to limit the file size of upload or download transactions. + +| UI name | API example | +| ------------------------ | ------------------------------- | +| Download File Size (MiB) | `http.download.file.size >= 10` | + +| UI name | API example | +| ---------------------- | ----------------------------- | +| Upload File Size (MiB) | `http.upload.file.size >= 10` | + ### Download and Upload File Types :::caution[Deprecated selectors] From 76ab28d9bb6d52cda526f1193034092d3c303800 Mon Sep 17 00:00:00 2001 From: Max Phillips Date: Wed, 19 Feb 2025 10:18:25 -0600 Subject: [PATCH 2/3] Improve wording --- .../policies/gateway/http-policies/index.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx b/src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx index cfb051bf2823741..300981c4b23c6f7 100644 --- a/src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx +++ b/src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx @@ -466,15 +466,15 @@ Use this selector to match against a domain and all subdomains -- for example, i ### Download and Upload File Size -These selectors can be used to limit the file size of upload or download transactions. +Use these selectors to limit the file size of upload or download transactions. File sizes are measured in mebibytes (MiB). | UI name | API example | | ------------------------ | ------------------------------- | | Download File Size (MiB) | `http.download.file.size >= 10` | -| UI name | API example | -| ---------------------- | ----------------------------- | -| Upload File Size (MiB) | `http.upload.file.size >= 10` | +| UI name | API example | +| ---------------------- | ---------------------------- | +| Upload File Size (MiB) | `http.upload.file.size < 10` | ### Download and Upload File Types From 0a5377196d524b1a2b9eafbabf69f8d3e4b5fc47 Mon Sep 17 00:00:00 2001 From: Max Phillips Date: Wed, 19 Feb 2025 10:41:07 -0600 Subject: [PATCH 3/3] Add changelog entry --- src/content/release-notes/gateway.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/release-notes/gateway.yaml b/src/content/release-notes/gateway.yaml index fc1f8c45e99de15..30b41c3723441d2 100644 --- a/src/content/release-notes/gateway.yaml +++ b/src/content/release-notes/gateway.yaml @@ -5,6 +5,10 @@ productLink: "/cloudflare-one/policies/gateway/" productArea: Cloudflare One productAreaLink: /cloudflare-one/changelog/ entries: + - publish_date: "2025-02-12" + title: The default global Cloudflare root certificate expired on 2025-02-02 at 16:05 UTC + description: |- + Gateway and DLP users can now create HTTP policies with the [Upload/Download File Size (MiB)](/cloudflare-one/policies/gateway/http-policies/#download-and-upload-file-size) traffic selectors. This update allows users to block uploads or downloads based on file size. - publish_date: "2025-02-02" title: The default global Cloudflare root certificate expired on 2025-02-02 at 16:05 UTC description: |-