Skip to content

Add asset_name to RulesetRuleActionParameters#4312

Merged
vaishakdinesh merged 1 commit into
cloudflare:v0from
jafowler:jfowler/rulesets-asset-name
May 20, 2026
Merged

Add asset_name to RulesetRuleActionParameters#4312
vaishakdinesh merged 1 commit into
cloudflare:v0from
jafowler:jfowler/rulesets-asset-name

Conversation

@jafowler
Copy link
Copy Markdown

@jafowler jafowler commented May 20, 2026

Adds the asset_name field to RulesetRuleActionParameters so that http_custom_errors phase rules using the serve_error action correctly round-trip the asset_name attribute returned by the Cloudflare API.

Without this field, the typed struct silently drops asset_name during JSON decode, causing downstream tools (e.g. cf-terraforming) to emit configurations that diverge from the live ruleset and produce drift on subsequent applies.

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

Adds the asset_name field to RulesetRuleActionParameters so that
http_custom_errors phase rules using the serve_error action correctly
round-trip the asset_name attribute returned by the Cloudflare API.

Without this field, the typed struct silently drops asset_name during
JSON decode, causing downstream tools (e.g. cf-terraforming) to emit
configurations that diverge from the live ruleset and produce drift on
subsequent applies.
@vaishakdinesh vaishakdinesh requested a review from a team May 20, 2026 19:25
@vaishakdinesh vaishakdinesh merged commit b5ec8d2 into cloudflare:v0 May 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants