Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ruleset Engine] Use Type component in fields reference #18070

Conversation

pedrosousa
Copy link
Contributor

No description provided.

Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

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

7 files reviewed, 2 total issue(s) found.

Copy link

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6fb2e66
Status: ✅  Deploy successful!
Preview URL: https://84b800eb.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://pedro-2024-11-08-ruleset-eng.cloudflare-docs-7ou.pages.dev

View logs

Copy link

github-actions bot commented Nov 8, 2024

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/ruleset-engine/rules-language/fields/dynamic-fields/ https://pedro-2024-11-08-ruleset-eng.cloudflare-docs-7ou.pages.dev/ruleset-engine/rules-language/fields/dynamic-fields/
https://developers.cloudflare.com/ruleset-engine/rules-language/fields/standard-fields/ https://pedro-2024-11-08-ruleset-eng.cloudflare-docs-7ou.pages.dev/ruleset-engine/rules-language/fields/standard-fields/
https://developers.cloudflare.com/ruleset-engine/rules-language/fields/magic-firewall/ https://pedro-2024-11-08-ruleset-eng.cloudflare-docs-7ou.pages.dev/ruleset-engine/rules-language/fields/magic-firewall/
https://developers.cloudflare.com/ruleset-engine/rules-language/fields/http-request-response/ https://pedro-2024-11-08-ruleset-eng.cloudflare-docs-7ou.pages.dev/ruleset-engine/rules-language/fields/http-request-response/
https://developers.cloudflare.com/ruleset-engine/rules-language/fields/http-request-body/ https://pedro-2024-11-08-ruleset-eng.cloudflare-docs-7ou.pages.dev/ruleset-engine/rules-language/fields/http-request-body/
https://developers.cloudflare.com/ruleset-engine/rules-language/fields/http-request-header/ https://pedro-2024-11-08-ruleset-eng.cloudflare-docs-7ou.pages.dev/ruleset-engine/rules-language/fields/http-request-header/
https://developers.cloudflare.com/ruleset-engine/rules-language/fields/uri/ https://pedro-2024-11-08-ruleset-eng.cloudflare-docs-7ou.pages.dev/ruleset-engine/rules-language/fields/uri/

| `text/html+extra` | `"text/html+extra"` |
| `text/html+extra; charset=utf-8` | `"text/html+extra"` |
| `text/HTML` | `"text/html"` |
| `text/html; charset=utf-8; other=value` | `"text/html"` |

</Details>

## `cf.response.1xxx_code`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## `cf.response.1xxx_code`
## `cf.response.1xxx_code`

Do these need to be capitalised as well (in light of the below changes)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, not here, since the field name is in lowercase.


The raw IP packet as a list of bytes. It should be used in conjunction with the bit_slice function when other structured fields are lacking.

---

## `ip.dst`

`ip.dst` `IP Address`
`ip.dst` <Type text='IP address' />
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`ip.dst` <Type text='IP address' />
`ip.dst` <Type text='IP address' />

More out of curiosity - is IP address a valid type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the Rules language yes.

@pedrosousa pedrosousa merged commit 0ebe370 into production Nov 8, 2024
13 checks passed
@pedrosousa pedrosousa deleted the pedro/2024-11-08-ruleset-engine-use-type-component-in-fields-reference branch November 8, 2024 16:07
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.

2 participants