Skip to content

Conversation

@pedrosousa
Copy link
Contributor

Summary

Follows a similar strategy to the one in ProductCatalog.tsx.

Adds support for linking to one or more field categories (filtered on page load).

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2025

Preview URL: https://2ee55dd4.preview.developers.cloudflare.com
Preview Branch URL: https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/ruleset-engine/about/rules/ https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com/ruleset-engine/about/rules/
https://developers.cloudflare.com/waf/rate-limiting-rules/parameters/ https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com/waf/rate-limiting-rules/parameters/
https://developers.cloudflare.com/learning-paths/mtls/mtls-app-security/related-features/ https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com/learning-paths/mtls/mtls-app-security/related-features/
https://developers.cloudflare.com/learning-paths/mtls/mtls-app-security/ https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com/learning-paths/mtls/mtls-app-security/
https://developers.cloudflare.com/rules/reference/troubleshooting/ https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com/rules/reference/troubleshooting/
https://developers.cloudflare.com/waf/account/rate-limiting-rulesets/create-dashboard/ https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com/waf/account/rate-limiting-rulesets/create-dashboard/
https://developers.cloudflare.com/waf/custom-rules/use-cases/require-specific-headers/ https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com/waf/custom-rules/use-cases/require-specific-headers/
https://developers.cloudflare.com/waf/managed-rules/ https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com/waf/managed-rules/
https://developers.cloudflare.com/waf/rate-limiting-rules/create-zone-dashboard/ https://pedro-2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference.preview.developers.cloudflare.com/waf/rate-limiting-rules/create-zone-dashboard/

- name: cf.tls_client_extensions_sha1
data_type: String
categories: [Request]
categories: [Request, SSL/TLS]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a new category so we can filter by mTLS fields + other SSL/TLS fields.
This "double category" is usually expressed in the docs as "the available cf.tls_* fields".

---

Many organizations qualify traffic based on the presence of specific HTTP request headers. Use the Rules language [HTTP request header fields](/ruleset-engine/rules-language/fields/reference/) to target requests with specific headers.
Many organizations qualify traffic based on the presence of specific HTTP request headers. Use the Rules language [HTTP request header fields](/ruleset-engine/rules-language/fields/reference/?field-category=Headers&search-term=http.request) to target requests with specific headers.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have a category just for request headers, so here we filter by the Headers category and the http.request search term.

useEffect(() => {
// On component load, check for deep-links to categories in the query param
const params = new URLSearchParams(window.location.search);
const categories = params.getAll("field-category");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supports filtering by more than one category (and some links in this PR use this possibility).

mTLS is verified and checked in the [Cloudflare WAF phase](/waf/reference/phases/). This is done by creating WAF [Custom Rules](/waf/custom-rules/) using the dynamic fields.

All Client Certificate details can be found in the [`cf.tls_*`](/ruleset-engine/rules-language/fields/reference/) fields in the [Cloudflare Ruleset Engine](/ruleset-engine/).
All Client Certificate details can be found in the [`cf.tls_*`](/ruleset-engine/rules-language/fields/reference/?field-category=mTLS&field-category=SSL/TLS) fields in the [Cloudflare Ruleset Engine](/ruleset-engine/).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filters by two categories.

Copy link
Member

@KianNH KianNH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@pedrosousa pedrosousa marked this pull request as ready for review February 11, 2025 21:11
@pedrosousa pedrosousa merged commit 446e588 into production Feb 12, 2025
4 of 10 checks passed
@pedrosousa pedrosousa deleted the pedro/2025-02-11-ruleset-engine-add-group-filtering-to-fields-reference branch February 12, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants