Skip to content

release: 5.8.3 #5847

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

Open
wants to merge 342 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
342 commits
Select commit Hold shift + click to select a range
b2e06b4
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 8, 2025
5ddb392
AUTH-7468 fix terraform organization import
ajholland Aug 8, 2025
ecd274e
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 8, 2025
e97038a
codegen metadata
stainless-app[bot] Aug 6, 2025
811fcff
codegen metadata
stainless-app[bot] Aug 6, 2025
8606229
codegen metadata
stainless-app[bot] Aug 6, 2025
32b51f1
codegen metadata
stainless-app[bot] Aug 6, 2025
0786d50
codegen metadata
stainless-app[bot] Aug 6, 2025
da7f354
codegen metadata
stainless-app[bot] Aug 6, 2025
c8094d1
codegen metadata
stainless-app[bot] Aug 6, 2025
f5d9e8e
codegen metadata
stainless-app[bot] Aug 6, 2025
db3b244
codegen metadata
stainless-app[bot] Aug 6, 2025
fec5c7f
codegen metadata
stainless-app[bot] Aug 6, 2025
d384ab9
codegen metadata
stainless-app[bot] Aug 6, 2025
7bd3be0
codegen metadata
stainless-app[bot] Aug 6, 2025
26c37c4
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 6, 2025
ef987a8
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 6, 2025
63c30b5
codegen metadata
stainless-app[bot] Aug 6, 2025
04e9228
codegen metadata
stainless-app[bot] Aug 6, 2025
571886a
codegen metadata
stainless-app[bot] Aug 6, 2025
dda8106
feat(api): api update
stainless-app[bot] Aug 6, 2025
e701518
codegen metadata
stainless-app[bot] Aug 6, 2025
2016bf8
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 6, 2025
8e86fdc
codegen metadata
stainless-app[bot] Aug 6, 2025
2a43f7f
codegen metadata
stainless-app[bot] Aug 6, 2025
25ad7e5
codegen metadata
stainless-app[bot] Aug 6, 2025
5790fb1
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 6, 2025
b21ea4a
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 6, 2025
535c250
feat(api): api update
stainless-app[bot] Aug 6, 2025
f5468da
codegen metadata
stainless-app[bot] Aug 6, 2025
02db22d
codegen metadata
stainless-app[bot] Aug 6, 2025
9ece5c5
codegen metadata
stainless-app[bot] Aug 6, 2025
ab373a6
codegen metadata
stainless-app[bot] Aug 7, 2025
07cccd2
codegen metadata
stainless-app[bot] Aug 7, 2025
61eef2d
codegen metadata
stainless-app[bot] Aug 7, 2025
0e1f55c
feat(api): api update
stainless-app[bot] Aug 7, 2025
268f515
codegen metadata
stainless-app[bot] Aug 7, 2025
bdec800
codegen metadata
stainless-app[bot] Aug 7, 2025
71012f0
codegen metadata
stainless-app[bot] Aug 7, 2025
f0ee404
codegen metadata
stainless-app[bot] Aug 7, 2025
fce2e69
codegen metadata
stainless-app[bot] Aug 7, 2025
3984fcf
codegen metadata
stainless-app[bot] Aug 7, 2025
872f8ba
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 8, 2025
7c04505
codegen metadata
stainless-app[bot] Aug 7, 2025
bd54c63
codegen metadata
stainless-app[bot] Aug 7, 2025
e72c9c3
codegen metadata
stainless-app[bot] Aug 7, 2025
6b4242a
codegen metadata
stainless-app[bot] Aug 7, 2025
f1b07f6
feat(api): api update
stainless-app[bot] Aug 7, 2025
9babc23
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 8, 2025
f270ae0
codegen metadata
stainless-app[bot] Aug 7, 2025
2df21d4
chore(internal): upgrade cloudflare/circl
stainless-app[bot] Aug 8, 2025
5770f83
codegen metadata
stainless-app[bot] Aug 7, 2025
9c03a0e
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 7, 2025
7b2fe37
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 8, 2025
7cd55d3
feat(api): api update
stainless-app[bot] Aug 7, 2025
6d1c5aa
codegen metadata
stainless-app[bot] Aug 7, 2025
8dbc5ad
codegen metadata
stainless-app[bot] Aug 7, 2025
aaf960b
codegen metadata
stainless-app[bot] Aug 7, 2025
14b7bbf
codegen metadata
stainless-app[bot] Aug 7, 2025
a23d663
codegen metadata
stainless-app[bot] Aug 7, 2025
0e3e399
Make `cloudflare_ruleset` tests match order of attributes in schema
zakcutner Aug 8, 2025
bf113c7
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 8, 2025
5afa7cb
feat(api): api update
stainless-app[bot] Aug 7, 2025
c2e9269
codegen metadata
stainless-app[bot] Aug 7, 2025
84b9d37
codegen metadata
stainless-app[bot] Aug 7, 2025
cd4d5b7
codegen metadata
stainless-app[bot] Aug 7, 2025
4a84389
codegen metadata
stainless-app[bot] Aug 7, 2025
d8bb3c3
codegen metadata
stainless-app[bot] Aug 7, 2025
54d033d
codegen metadata
stainless-app[bot] Aug 7, 2025
a64e64d
codegen metadata
stainless-app[bot] Aug 7, 2025
193f36f
codegen metadata
stainless-app[bot] Aug 8, 2025
bab0f74
codegen metadata
stainless-app[bot] Aug 8, 2025
3b902b5
codegen metadata
stainless-app[bot] Aug 8, 2025
bb433db
codegen metadata
stainless-app[bot] Aug 8, 2025
5bdfae3
codegen metadata
stainless-app[bot] Aug 8, 2025
49dac27
codegen metadata
stainless-app[bot] Aug 8, 2025
424d269
codegen metadata
stainless-app[bot] Aug 8, 2025
85b2d40
codegen metadata
stainless-app[bot] Aug 8, 2025
2568efa
feat(api): api update
stainless-app[bot] Aug 8, 2025
0ae4c8d
codegen metadata
stainless-app[bot] Aug 8, 2025
5f0cb39
codegen metadata
stainless-app[bot] Aug 8, 2025
f3532d0
codegen metadata
stainless-app[bot] Aug 8, 2025
4d6086a
codegen metadata
stainless-app[bot] Aug 8, 2025
c41d563
codegen metadata
stainless-app[bot] Aug 8, 2025
8a4939e
codegen metadata
stainless-app[bot] Aug 8, 2025
7534488
chore: update @stainless-api/prism-cli to v5.15.0
stainless-app[bot] Aug 8, 2025
d3b39eb
codegen metadata
stainless-app[bot] Aug 8, 2025
aee0019
codegen metadata
stainless-app[bot] Aug 8, 2025
1aab4e4
Merge pull request #5897 from zakcutner/ruleset/tests
musa-cf Aug 8, 2025
b0ed69e
codegen metadata
stainless-app[bot] Aug 8, 2025
81e5b5a
codegen metadata
stainless-app[bot] Aug 8, 2025
e12c7b4
codegen metadata
stainless-app[bot] Aug 8, 2025
b3bb126
codegen metadata
stainless-app[bot] Aug 8, 2025
a362b28
codegen metadata
stainless-app[bot] Aug 8, 2025
b649d53
Merge pull request #5844 from steve-thousand/sconrad/ACCT-10424_polic…
vaishakdinesh Aug 8, 2025
ad82abe
chore: update managed_transform tests
vaishakdinesh Aug 7, 2025
1c0eb79
chore: new line
vaishakdinesh Aug 8, 2025
21d06f1
Merge pull request #5887 from cloudflare/vaishak/managed-transform
vaishakdinesh Aug 8, 2025
33e7b03
chore(api): upload stainless config from cloudflare-config
stainless-app[bot] Aug 8, 2025
3261d1c
Merge pull request #5881 from jeffa5/ajeffery/list-items-acceptance-t…
vaishakdinesh Aug 8, 2025
1cc94d4
fix: test data
vaishakdinesh Aug 8, 2025
55dc96d
Merge pull request #5888 from cfjubacf/spectrum-drift-and-new-tests
vaishakdinesh Aug 8, 2025
1776ca4
test(argo_smart_routing): add test cases
cferic Aug 1, 2025
757b98f
fix(workers_script): Revert treating cloudflare_workers_script.bindin…
1000hz Aug 8, 2025
e9d000c
chore(workers_script): use resourcevalidator.ExactlyOneOf() to ensure…
1000hz Aug 8, 2025
a3b6816
fix(workers_script): ignore unmanaged secret_text bindings
1000hz Aug 8, 2025
dcf7198
codegen metadata
stainless-app[bot] Aug 8, 2025
2602dba
fix(workers_script): Obtain migrations directly from config instead o…
1000hz Aug 8, 2025
3e5591e
chore: extra checks
vaishakdinesh Aug 8, 2025
dc52145
chore: sort imports
vaishakdinesh Aug 8, 2025
10d0408
codegen metadata
stainless-app[bot] Aug 8, 2025
e7c572c
Merge pull request #5845 from cferic/argo_smart_routing-tests
vaishakdinesh Aug 8, 2025
13e5c5e
chore: update ci list
vaishakdinesh Aug 8, 2025
9bd4f74
Merge pull request #5900 from cloudflare/vaishak/update-ci-list
vaishakdinesh Aug 8, 2025
71538e5
feat(apijson): add `decode_null_to_zero` tag option
zakcutner Aug 8, 2025
56ccdeb
Merge pull request #5899 from 1000hz/cina/workers-script-updates
vaishakdinesh Aug 9, 2025
450f176
codegen metadata
stainless-app[bot] Aug 9, 2025
41034e1
codegen metadata
stainless-app[bot] Aug 9, 2025
77b89d9
codegen metadata
stainless-app[bot] Aug 10, 2025
140ab99
codegen metadata
stainless-app[bot] Aug 11, 2025
8f90ad2
codegen metadata
stainless-app[bot] Aug 11, 2025
338d444
codegen metadata
stainless-app[bot] Aug 11, 2025
b12e7f2
codegen metadata
stainless-app[bot] Aug 11, 2025
6876b76
codegen metadata
stainless-app[bot] Aug 11, 2025
388b34c
codegen metadata
stainless-app[bot] Aug 11, 2025
9e75f73
codegen metadata
stainless-app[bot] Aug 11, 2025
2c8c5d1
codegen metadata
stainless-app[bot] Aug 11, 2025
f5ee559
feat(api): api update
stainless-app[bot] Aug 11, 2025
0a0556b
chore: modernize zero_trust_access_mtls_hostname_settings tests
tamas-jozsa Aug 5, 2025
a20c3d2
codegen metadata
stainless-app[bot] Aug 11, 2025
a35bc41
Merge pull request #5864 from cloudflare/tamas/zero_trust_access_mtls…
tamas-jozsa Aug 11, 2025
6ef5b22
codegen metadata
stainless-app[bot] Aug 11, 2025
1da39c2
codegen metadata
stainless-app[bot] Aug 11, 2025
2e28c79
codegen metadata
stainless-app[bot] Aug 11, 2025
c8be3a1
codegen metadata
stainless-app[bot] Aug 11, 2025
0bab7a9
codegen metadata
stainless-app[bot] Aug 11, 2025
d68884d
codegen metadata
stainless-app[bot] Aug 11, 2025
abfdfef
codegen metadata
stainless-app[bot] Aug 11, 2025
67df8b8
codegen metadata
stainless-app[bot] Aug 11, 2025
d8b57b9
codegen metadata
stainless-app[bot] Aug 11, 2025
0eb74a1
codegen metadata
stainless-app[bot] Aug 11, 2025
f244095
codegen metadata
stainless-app[bot] Aug 11, 2025
c9f96d3
feat(api): api update
stainless-app[bot] Aug 11, 2025
10237f3
Created new grit patterns for notification policies and rulesets
Aug 8, 2025
e6094c2
codegen metadata
stainless-app[bot] Aug 11, 2025
8f692ad
fix(list_item): Use proper pagination from client
Aug 11, 2025
f38a7c7
fix(list_item) data source
broswen Aug 5, 2025
a4edfb0
Merge pull request #5894 from lzilhao/add-grit-patterns-rulesets-noti…
vaishakdinesh Aug 11, 2025
b8002e0
codegen metadata
stainless-app[bot] Aug 11, 2025
f3caf01
codegen metadata
stainless-app[bot] Aug 11, 2025
698d90c
feat(api): api update
stainless-app[bot] Aug 11, 2025
5bf6360
feat(api): api update
stainless-app[bot] Aug 11, 2025
01bea92
feat(api): api update
stainless-app[bot] Aug 11, 2025
9769b5d
codegen metadata
stainless-app[bot] Aug 11, 2025
30abcde
codegen metadata
stainless-app[bot] Aug 11, 2025
dc21aba
codegen metadata
stainless-app[bot] Aug 11, 2025
66e985b
Get cloudflare_snippet resource working
Aug 11, 2025
9af4e3f
Merge pull request #5884 from WowVeryLogin/denis/FLPROD-1586
musa-cf Aug 11, 2025
21a1c79
codegen metadata
stainless-app[bot] Aug 11, 2025
f74f486
codegen metadata
stainless-app[bot] Aug 11, 2025
7e1ccf0
codegen metadata
stainless-app[bot] Aug 11, 2025
f9acd78
codegen metadata
stainless-app[bot] Aug 11, 2025
0007628
codegen metadata
stainless-app[bot] Aug 11, 2025
f5b955b
feat(apijson): move changes to new `apijsoncustom` package
zakcutner Aug 11, 2025
331240a
Merge pull request #5901 from zakcutner/apijson
musa-cf Aug 11, 2025
7f15668
fix(cloudflare_ruleset): handle omitted `rules` in API responses
zakcutner Aug 9, 2025
eb6e653
test(cloudflare_ruleset): add coverage for `rules` attributes
zakcutner Aug 9, 2025
f15aefd
test(cloudflare_ruleset): add coverage for `action_parameters` attrib…
zakcutner Aug 9, 2025
cbff39b
codegen metadata
stainless-app[bot] Aug 11, 2025
071afc6
test: add tests to repro issue #5795
nlsandler Aug 12, 2025
ba79c61
codegen metadata
stainless-app[bot] Aug 12, 2025
aa5ac4d
feat(api): api update
stainless-app[bot] Aug 12, 2025
fd145c4
codegen metadata
stainless-app[bot] Aug 12, 2025
840ee94
feat: ensure `internal/apiform` encoder can handle "force_encode" ser…
stainless-app[bot] Aug 12, 2025
2b469f8
Merge pull request #5902 from zakcutner/ruleset/rules
vaishakdinesh Aug 12, 2025
87bda5d
Merge branch 'next' into ruleset/rules-attributes
vaishakdinesh Aug 12, 2025
a7b748f
Merge pull request #5905 from zakcutner/ruleset/rules-attributes
vaishakdinesh Aug 12, 2025
2ada740
Merge branch 'next' into ruleset/rules-actions
vaishakdinesh Aug 12, 2025
5cd110d
Merge pull request #5906 from zakcutner/ruleset/rules-actions
vaishakdinesh Aug 12, 2025
dbf58a2
Merge pull request #5903 from jeffa5/ajeffery/list-item-resource-pagi…
vaishakdinesh Aug 12, 2025
15912b0
test(cloudflare_ruleset): add coverage for more actions
zakcutner Aug 12, 2025
d7b51a6
Merge pull request #5909 from zakcutner/ruleset/actions
musa-cf Aug 12, 2025
8b799c1
fix zero_trust_access_application policy import
ajholland Aug 8, 2025
d20d039
Merge branch 'next' into ajeffery/list-item-data-source
vaishakdinesh Aug 12, 2025
81246a2
Merge pull request #5874 from jeffa5/ajeffery/list-item-data-source
vaishakdinesh Aug 12, 2025
3e73514
fix idp and service token secrets
ajholland Aug 12, 2025
425e6e8
ACCT-10424 adding tests for account owned tokens and fixing bugs
steve-thousand Aug 12, 2025
254f09d
test(cloudflare_ruleset): add coverage for `redirect` action
zakcutner Aug 12, 2025
49b1243
chore: tidy up
vaishakdinesh Aug 12, 2025
597fe55
Merge pull request #5915 from cloudflare/vaishak/fix-list-item-schema
musa-cf Aug 12, 2025
5f6debe
Merge pull request #5913 from zakcutner/ruleset/redirect
musa-cf Aug 12, 2025
81f1c03
Merge pull request #5912 from steve-thousand/ACCT-10424/account-owned…
musa-cf Aug 12, 2025
64512eb
Merge pull request #5896 from ajholland/aholland/fix_org_import
tamas-jozsa Aug 13, 2025
ddf4acd
Merge pull request #5911 from ajholland/aholland/import_service_token
tamas-jozsa Aug 13, 2025
5bc9db5
Merge pull request #5889 from ajholland/aholland/import_policy
tamas-jozsa Aug 13, 2025
0d8e9ee
feat: ensure `internal/apiform` encoder can handle "force_encode" ser…
stainless-app[bot] Aug 13, 2025
c369534
codegen metadata
stainless-app[bot] Aug 12, 2025
c49eb2e
codegen metadata
stainless-app[bot] Aug 12, 2025
0d08ffc
codegen metadata
stainless-app[bot] Aug 12, 2025
600acdd
codegen metadata
stainless-app[bot] Aug 12, 2025
2c2e744
codegen metadata
stainless-app[bot] Aug 12, 2025
f94ff6c
codegen metadata
stainless-app[bot] Aug 12, 2025
46cfe72
codegen metadata
stainless-app[bot] Aug 12, 2025
5b8775d
codegen metadata
stainless-app[bot] Aug 12, 2025
9f49d8a
codegen metadata
stainless-app[bot] Aug 12, 2025
b303841
codegen metadata
stainless-app[bot] Aug 12, 2025
bfcb40e
codegen metadata
stainless-app[bot] Aug 12, 2025
cf5c846
codegen metadata
stainless-app[bot] Aug 12, 2025
7194396
codegen metadata
stainless-app[bot] Aug 12, 2025
ee6b6f7
codegen metadata
stainless-app[bot] Aug 12, 2025
673cd9d
codegen metadata
stainless-app[bot] Aug 12, 2025
b1afd55
feat(api): api update
stainless-app[bot] Aug 12, 2025
c6836a1
codegen metadata
stainless-app[bot] Aug 12, 2025
351c26c
codegen metadata
stainless-app[bot] Aug 12, 2025
3351a79
feat(api): api update
stainless-app[bot] Aug 12, 2025
f60afc3
codegen metadata
stainless-app[bot] Aug 12, 2025
520f3b0
codegen metadata
stainless-app[bot] Aug 12, 2025
57928dc
feat(api): api update
stainless-app[bot] Aug 12, 2025
9bb1202
codegen metadata
stainless-app[bot] Aug 12, 2025
7e482fa
codegen metadata
stainless-app[bot] Aug 12, 2025
4636c8f
codegen metadata
stainless-app[bot] Aug 12, 2025
3e822c6
codegen metadata
stainless-app[bot] Aug 12, 2025
fd037f9
codegen metadata
stainless-app[bot] Aug 12, 2025
cddac8a
codegen metadata
stainless-app[bot] Aug 12, 2025
9d3937a
codegen metadata
stainless-app[bot] Aug 12, 2025
e45888e
codegen metadata
stainless-app[bot] Aug 12, 2025
0036d85
codegen metadata
stainless-app[bot] Aug 12, 2025
d4d7c73
codegen metadata
stainless-app[bot] Aug 12, 2025
4662288
codegen metadata
stainless-app[bot] Aug 13, 2025
153740f
codegen metadata
stainless-app[bot] Aug 13, 2025
cb75c15
codegen metadata
stainless-app[bot] Aug 13, 2025
23eb89c
feat(api): api update
stainless-app[bot] Aug 13, 2025
b68c83c
codegen metadata
stainless-app[bot] Aug 13, 2025
a09386a
codegen metadata
stainless-app[bot] Aug 13, 2025
b068f1d
codegen metadata
stainless-app[bot] Aug 13, 2025
4f0caaa
codegen metadata
stainless-app[bot] Aug 13, 2025
b12a0a3
codegen metadata
stainless-app[bot] Aug 13, 2025
fae932a
codegen metadata
stainless-app[bot] Aug 13, 2025
618f3f2
codegen metadata
stainless-app[bot] Aug 13, 2025
74822c2
codegen metadata
stainless-app[bot] Aug 13, 2025
b4d119c
test(cloudflare_ruleset): add coverage for `rewrite` action
zakcutner Aug 13, 2025
ec6f811
Merge pull request #5916 from zakcutner/ruleset/rewrite
musa-cf Aug 13, 2025
e1f9952
test(cloudflare_ruleset): add coverage for `route` action
zakcutner Aug 13, 2025
9760cc7
test(cloudflare_ruleset): add coverage for `serve_error` action
zakcutner Aug 13, 2025
1944109
Merge pull request #5917 from zakcutner/ruleset/route
musa-cf Aug 13, 2025
916a309
Merge pull request #5918 from zakcutner/ruleset/serve-error
musa-cf Aug 13, 2025
83b0cc7
Update urlnormalizationsettingsconfig_empty.tf
nickysemenza Aug 13, 2025
15c9c66
Merge branch 'next' into nicky/url_noramalization_tweaks
nickysemenza Aug 13, 2025
14dec9f
Merge pull request #5885 from cloudflare/nicky/url_noramalization_tweaks
vaishakdinesh Aug 13, 2025
660c198
release: 5.8.3
stainless-app[bot] Aug 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
dist/
terraform-provider-cloudflare
go.work*
.DS_Store
.DS_Store
.idea/
bin/
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,45 @@ pattern cloudflare_terraform_v5_attribute_renames_configuration() {
}
},

//cloudflare_notification_policy
`resource "cloudflare_notification_policy" $_ { $body }` where {

$body <: contains any {
`webhooks_integration = $webhooks` => ``,
`pagerduty_integration = $pagerduty` => ``,
`email_integration = $email` => ``,
},
$integrations = "",
//Check if the variable is null before adding to the integrations
if (!$webhooks <: .) {
$integrations += `webhooks = $webhooks
`,
},
if (!$pagerduty <: .) {
$integrations += `pagerduty = $pagerduty
`,
},
if (!$email <: .) {
$integrations += `email = $email
`,
},

$body => `$body mechanisms = {
$integrations
}`,
},

// cloudflare_ruleset
`resource "cloudflare_ruleset" $_ { $body }` where {
$body <: any {
contains bubble `rules = $rules` where {
$rules <: contains bubble `action_parameters = $action_parameters` where {
$action_parameters <: contains bubble `rules = { $ruleset_id = $rule_id}` => `rules = { $ruleset_id = [$rule_id]}`,
}
},
}
},

// cloudflare_teams_list & cloudflare_zero_trust_list
`items = [$items]` as $all_items where {
$values = [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ pattern cloudflare_terraform_v5_attribute_renames_state() {
contains `"plan": $_` => .
}
},

// cloudflare_access_policy & cloudflare_zero_trust_access_group
`{ $..., "mode": "managed", "type": "$resource_type", $..., "instances":[$instances] }` where {
$resource_type <: contains `cloudflare_access_policy`,
Expand Down Expand Up @@ -222,5 +221,18 @@ pattern cloudflare_terraform_v5_attribute_renames_state() {
contains `"min_days_for_renewal": $_` => .
}
},
// cloudflare_page_rule
`{ $..., "mode": "managed", "type": "$resource_type", $..., "instances":[$instances] }` where {
$resource_type <: contains `cloudflare_page_rule`,
$instances <: any {
contains `""` => `null`,
contains `[]` => `null`,
contains `false` => `null`,
contains `0` => `null`,
contains `"forwarding_url": []` => `"forwarding_url": null`,
contains `"forwarding_url": [{"status_code": $status_code, "url": $url}]` => `"forwarding_url": {"status_code": $status_code, "url": $url}`,
contains `"actions": [$action]` => `"actions": $action`
}
}
}
}
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "5.8.2"
".": "5.8.3"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 1783
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e408a7cdec2dae3d1a18842dcc59280c56050fb042569139aec3fe0f12e0d461.yml
openapi_spec_hash: 7e210c76f5dd4c79b3e67204ad279b81
config_hash: a433f3793b734bc6fcc9d9e0c27ff8c2
configured_endpoints: 1793
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bf6dcd562e592c1c6d992e04b39d5b372e2a7cb4d3fdcad23e483e21389bd3aa.yml
openapi_spec_hash: 8b8da2355d909906fe7af3bc6f507487
config_hash: de4c81cee29cd7dd907279e8916b334f
72 changes: 72 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,77 @@
# Changelog

## 5.8.3 (2025-08-13)

Full Changelog: [v5.8.2...v5.8.3](https://github.com/cloudflare/terraform-provider-cloudflare/compare/v5.8.2...v5.8.3)

### Features

* **api:** api update ([23eb89c](https://github.com/cloudflare/terraform-provider-cloudflare/commit/23eb89ca43852af44e8d79ef33d2e67a20ab8f87))
* **api:** api update ([57928dc](https://github.com/cloudflare/terraform-provider-cloudflare/commit/57928dc81531d22e4474e9c10bf1f061266d1915))
* **api:** api update ([3351a79](https://github.com/cloudflare/terraform-provider-cloudflare/commit/3351a79400fc48efb8e004a74128c8eb6edc4466))
* **api:** api update ([b1afd55](https://github.com/cloudflare/terraform-provider-cloudflare/commit/b1afd55b64af81794cc72cb29c1ee30b6a3663eb))
* **api:** api update ([aa5ac4d](https://github.com/cloudflare/terraform-provider-cloudflare/commit/aa5ac4da877a5503c11aed8077351428c24153d0))
* **api:** api update ([01bea92](https://github.com/cloudflare/terraform-provider-cloudflare/commit/01bea92e8874a836992693794b022db3187ab430))
* **api:** api update ([5bf6360](https://github.com/cloudflare/terraform-provider-cloudflare/commit/5bf6360e1972846b86c0d588fef10c2b3a7cc806))
* **api:** api update ([698d90c](https://github.com/cloudflare/terraform-provider-cloudflare/commit/698d90c0c97a5d555e78fb81aa0f8e4f413fba3b))
* **api:** api update ([c9f96d3](https://github.com/cloudflare/terraform-provider-cloudflare/commit/c9f96d310305fbe7105ac1e6b996417eebbbca40))
* **api:** api update ([f5ee559](https://github.com/cloudflare/terraform-provider-cloudflare/commit/f5ee559e8db0884c4a8705756961a2ab380192ae))
* **api:** api update ([2568efa](https://github.com/cloudflare/terraform-provider-cloudflare/commit/2568efa9b5e008964da1f519d98cb56fa0f5af31))
* **api:** api update ([5afa7cb](https://github.com/cloudflare/terraform-provider-cloudflare/commit/5afa7cb54445617490fd798ec1731cd02fd0470b))
* **api:** api update ([7cd55d3](https://github.com/cloudflare/terraform-provider-cloudflare/commit/7cd55d34af5aec6d0b88b8572fb2ecae7f421691))
* **api:** api update ([f1b07f6](https://github.com/cloudflare/terraform-provider-cloudflare/commit/f1b07f6af7621fe960e6996c50c0ed4c09a4a283))
* **api:** api update ([0e1f55c](https://github.com/cloudflare/terraform-provider-cloudflare/commit/0e1f55cf54afc04d042c688b28c1719cd61fd5ed))
* **api:** api update ([535c250](https://github.com/cloudflare/terraform-provider-cloudflare/commit/535c25089d2dd37a8cc7a8fde5d61616d7217687))
* **api:** api update ([dda8106](https://github.com/cloudflare/terraform-provider-cloudflare/commit/dda8106bb8308f171928ad5ba0fa36198c19fed7))
* **api:** api update ([8a030f5](https://github.com/cloudflare/terraform-provider-cloudflare/commit/8a030f53dfb43c3ca40e8e8f3c49b674eccebfdb))
* **apijson:** add `decode_null_to_zero` tag option ([71538e5](https://github.com/cloudflare/terraform-provider-cloudflare/commit/71538e50970a1fd7a27bdba5ed1e285eaefcefcc))
* **apijson:** move changes to new `apijsoncustom` package ([f5b955b](https://github.com/cloudflare/terraform-provider-cloudflare/commit/f5b955bf49c9c9db58e77bf45fca01e121c67058))
* ensure `internal/apiform` encoder can handle "force_encode" serialization tag ([0d8e9ee](https://github.com/cloudflare/terraform-provider-cloudflare/commit/0d8e9ee977b967ba2477009ebee6dc9e4a7313a8))
* ensure `internal/apiform` encoder can handle "force_encode" serialization tag ([840ee94](https://github.com/cloudflare/terraform-provider-cloudflare/commit/840ee944af524f0e9c4cc4d44e86519b4bfc1f24))


### Bug Fixes

* **api:** handle mismatched dynamic array types in state and plan during serialization ([203b3ba](https://github.com/cloudflare/terraform-provider-cloudflare/commit/203b3ba03b20e13a9d1c0279e0727f3bf111d437))
* **cloudflare_ruleset:** handle omitted `rules` in API responses ([7f15668](https://github.com/cloudflare/terraform-provider-cloudflare/commit/7f15668a902d6022dfc442c5cbddd45ea63176df))
* **list_item:** Use proper pagination from client ([8f692ad](https://github.com/cloudflare/terraform-provider-cloudflare/commit/8f692adf679f76a5e98eb3ab4980876f352d27af))
* test data ([1cc94d4](https://github.com/cloudflare/terraform-provider-cloudflare/commit/1cc94d4adc4e739817eb10ab58cc3cdc7cf99c6c))
* **workers_script:** ignore unmanaged secret_text bindings ([a3b6816](https://github.com/cloudflare/terraform-provider-cloudflare/commit/a3b6816b2510577f96668d0e29aa04a4c3a74c28)), closes [#5892](https://github.com/cloudflare/terraform-provider-cloudflare/issues/5892)
* **workers_script:** Obtain migrations directly from config instead of plan ([2602dba](https://github.com/cloudflare/terraform-provider-cloudflare/commit/2602dbafcaca02718fd44bf54caca268170dd56b)), closes [#5898](https://github.com/cloudflare/terraform-provider-cloudflare/issues/5898)
* **workers_script:** Revert treating cloudflare_workers_script.bindings as a Set ([757b98f](https://github.com/cloudflare/terraform-provider-cloudflare/commit/757b98f9e0cced8e6ae122f620de6454547ea3cc))


### Chores

* **api:** upload stainless config from cloudflare-config ([33e7b03](https://github.com/cloudflare/terraform-provider-cloudflare/commit/33e7b03f955c53a84c0d2b1a844fa0f206c4bd67))
* **api:** upload stainless config from cloudflare-config ([bf113c7](https://github.com/cloudflare/terraform-provider-cloudflare/commit/bf113c76383636d0a4971b6f1c35d9ab6444b31c))
* **api:** upload stainless config from cloudflare-config ([7b2fe37](https://github.com/cloudflare/terraform-provider-cloudflare/commit/7b2fe37534d7a1438991d0ab262277b23210e9fa))
* **api:** upload stainless config from cloudflare-config ([9c03a0e](https://github.com/cloudflare/terraform-provider-cloudflare/commit/9c03a0e95ede74ac0b7c732f9a108120dd8a2073))
* **api:** upload stainless config from cloudflare-config ([9babc23](https://github.com/cloudflare/terraform-provider-cloudflare/commit/9babc23830d1b7e07bd39240b09e2cd70034d9b4))
* **api:** upload stainless config from cloudflare-config ([872f8ba](https://github.com/cloudflare/terraform-provider-cloudflare/commit/872f8baa356b1ddba6f0537b160b26add9a1d83a))
* **api:** upload stainless config from cloudflare-config ([b21ea4a](https://github.com/cloudflare/terraform-provider-cloudflare/commit/b21ea4aede1b39fb80c0d48883b4ca6c2f212c87))
* **api:** upload stainless config from cloudflare-config ([5790fb1](https://github.com/cloudflare/terraform-provider-cloudflare/commit/5790fb1d073708b2ce8956337b9cf85290b91faa))
* **api:** upload stainless config from cloudflare-config ([2016bf8](https://github.com/cloudflare/terraform-provider-cloudflare/commit/2016bf8833a37bbdd96b472467e148dca79dc890))
* **api:** upload stainless config from cloudflare-config ([ef987a8](https://github.com/cloudflare/terraform-provider-cloudflare/commit/ef987a81819fabfb0656da8723ea45c60eae5ea9))
* **api:** upload stainless config from cloudflare-config ([26c37c4](https://github.com/cloudflare/terraform-provider-cloudflare/commit/26c37c4ff0dc0698e56cca5f5ea2cb230b6775ee))
* **api:** upload stainless config from cloudflare-config ([ecd274e](https://github.com/cloudflare/terraform-provider-cloudflare/commit/ecd274edee4527fe68613eee0a867011b2bbd6c7))
* **api:** upload stainless config from cloudflare-config ([b2e06b4](https://github.com/cloudflare/terraform-provider-cloudflare/commit/b2e06b410fe8ef67a35a71638eb13a2257b33234))
* extra checks ([3e5591e](https://github.com/cloudflare/terraform-provider-cloudflare/commit/3e5591e6e1ca89771f0c5eaf8fa6ae58d79853d7))
* **internal:** upgrade cloudflare/circl ([2df21d4](https://github.com/cloudflare/terraform-provider-cloudflare/commit/2df21d4ee0520b977da8c151c6cc94ad41c4ddf2))
* modernize zero_trust_access_group tests ([bf53a44](https://github.com/cloudflare/terraform-provider-cloudflare/commit/bf53a44d007dbc31177b7cdc74731d024e98cf03))
* modernize zero_trust_access_identity_provider tests ([41e5d14](https://github.com/cloudflare/terraform-provider-cloudflare/commit/41e5d140743cb5a3c1e52bb1cc21ebd5565bab2b))
* modernize zero_trust_access_mtls_certificate tests ([ea33b4b](https://github.com/cloudflare/terraform-provider-cloudflare/commit/ea33b4b7db8c3b5e89c87113ef56768aa9ca2e3f))
* modernize zero_trust_access_mtls_hostname_settings tests ([0a0556b](https://github.com/cloudflare/terraform-provider-cloudflare/commit/0a0556b968e2c9bc2514020160de063b5ae760e9))
* new line ([1c0eb79](https://github.com/cloudflare/terraform-provider-cloudflare/commit/1c0eb79c19759c2c7f3f37ff6389e02766d993e9))
* sort imports ([dc52145](https://github.com/cloudflare/terraform-provider-cloudflare/commit/dc5214537b12ef7700ce2b349d42f0fa45d0ae7d))
* tidy up ([49b1243](https://github.com/cloudflare/terraform-provider-cloudflare/commit/49b1243c2f0e5a4dd6ef71c414c28f35e26e2670))
* update @stainless-api/prism-cli to v5.15.0 ([7534488](https://github.com/cloudflare/terraform-provider-cloudflare/commit/7534488a919e10a96b9ddb42c7ef54460f1447f1))
* update ci list ([13e5c5e](https://github.com/cloudflare/terraform-provider-cloudflare/commit/13e5c5ec4c83323f6b91e8dd48f21661e98ff7ba))
* update managed_transform tests ([ad82abe](https://github.com/cloudflare/terraform-provider-cloudflare/commit/ad82abeb5d5de428634b8f8af429be4c2500e7ac))
* update to v5 ([d3f9d3e](https://github.com/cloudflare/terraform-provider-cloudflare/commit/d3f9d3e5cbb27d27048e3c73f9baae15204a136d))
* update to v5 again ([2f18c95](https://github.com/cloudflare/terraform-provider-cloudflare/commit/2f18c95e2755251ac0f6ff823c9bc9abc7dc6114))
* **workers_script:** use resourcevalidator.ExactlyOneOf() to ensure `content` or `content_file` is provided ([e9d000c](https://github.com/cloudflare/terraform-provider-cloudflare/commit/e9d000cd2511550748d15bb0313e19c1517d32c4))

## 5.8.2 (2025-08-01)

Full Changelog: [v5.8.1...v5.8.2](https://github.com/cloudflare/terraform-provider-cloudflare/compare/v5.8.1...v5.8.2)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 5.8.2"
version = "~> 5.8.3"
}
}
}
Expand Down
58 changes: 58 additions & 0 deletions docs/resources/snippet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
page_title: "cloudflare_snippet Resource - Cloudflare"
subcategory: ""
description: |-
---

# cloudflare_snippet (Resource)



## Example Usage

```terraform
resource "cloudflare_snippet" "example_snippet" {
zone_id = "9f1839b6152d298aca64c4e906b6d074"
snippet_name = "my_snippet"
files = [
{
name = "main.js"
content = <<-EOT
export default {
async fetch(request) {
return new Response('Hello, World!');
}
}
EOT
}
]
metadata = {
main_module = "main.js"
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `files` (List of String) The list of files belonging to the snippet.
- `metadata` (Attributes) Metadata about the snippet. (see [below for nested schema](#nestedatt--metadata))
- `snippet_name` (String) The identifying name of the snippet.
- `zone_id` (String) The unique ID of the zone.

### Read-Only

- `created_on` (String) The timestamp of when the snippet was created.
- `modified_on` (String) The timestamp of when the snippet was last modified.

<a id="nestedatt--metadata"></a>
### Nested Schema for `metadata`

Required:

- `main_module` (String) Name of the file that contains the main module of the snippet.


4 changes: 4 additions & 0 deletions examples/data-sources/cloudflare_snippet/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data "cloudflare_snippet" "example_snippet" {
zone_id = "9f1839b6152d298aca64c4e906b6d074"
snippet_name = "my_snippet"
}
1 change: 0 additions & 1 deletion examples/data-sources/cloudflare_snippets/data-source.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
data "cloudflare_snippets" "example_snippets" {
zone_id = "9f1839b6152d298aca64c4e906b6d074"
snippet_name = "my_snippet"
}
3 changes: 0 additions & 3 deletions examples/data-sources/cloudflare_snippets_list/data-source.tf

This file was deleted.

1 change: 1 addition & 0 deletions examples/data-sources/cloudflare_streams/data-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ data "cloudflare_streams" "example_streams" {
start = "2014-01-02T02:20:00Z"
status = "inprogress"
type = "live"
video_name = "puppy.mp4"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
data "cloudflare_workers_scripts" "example_workers_scripts" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
tags = "production:yes,staging:no"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
data "cloudflare_zero_trust_tunnel_cloudflared_routes" "example_zero_trust_tunnel_cloudflared_routes" {
account_id = "699d98642c564d2e855e9661899b7252"
comment = "Example comment for this route."
existed_at = "2019-10-12T07%3A20%3A50.52Z"
is_deleted = true
network_subset = "172.16.0.0/16"
Expand Down
1 change: 1 addition & 0 deletions examples/resources/cloudflare_bot_management/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ resource "cloudflare_bot_management" "example_bot_management" {
crawler_protection = "enabled"
enable_js = true
fight_mode = true
is_robots_txt_managed = true
}
7 changes: 6 additions & 1 deletion examples/resources/cloudflare_filter/resource.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
resource "cloudflare_filter" "example_filter" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
expression = "(http.request.uri.path ~ \".*wp-login.php\" or http.request.uri.path ~ \".*xmlrpc.php\") and ip.addr ne 172.16.22.155"
body = [{
description = "Restrict access from these browsers on this address range."
expression = "(http.request.uri.path ~ \".*wp-login.php\" or http.request.uri.path ~ \".*xmlrpc.php\") and ip.addr ne 172.16.22.155"
paused = false
ref = "FIL-100"
}]
}
1 change: 1 addition & 0 deletions examples/resources/cloudflare_r2_custom_domain/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ resource "cloudflare_r2_custom_domain" "example_r2_custom_domain" {
domain = "domain"
enabled = true
zone_id = "zoneId"
ciphers = ["string"]
min_tls = "1.0"
}
19 changes: 19 additions & 0 deletions examples/resources/cloudflare_snippet/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
resource "cloudflare_snippet" "example_snippet" {
zone_id = "9f1839b6152d298aca64c4e906b6d074"
snippet_name = "my_snippet"
files = [
{
name = "main.js"
content = <<-EOT
export default {
async fetch(request) {
return new Response('Hello, World!');
}
}
EOT
}
]
metadata = {
main_module = "main.js"
}
}
8 changes: 0 additions & 8 deletions examples/resources/cloudflare_snippets/resource.tf

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ resource "cloudflare_spectrum_application" "example_spectrum_application" {
name = "ssh.example.com"
type = "CNAME"
}
ip_firewall = true
protocol = "tcp/22"
proxy_protocol = "off"
tls = "full"
traffic_type = "direct"
argo_smart_routing = true
edge_ips = {
connectivity = "all"
type = "dynamic"
}
ip_firewall = false
origin_direct = ["tcp://127.0.0.1:8080"]
origin_dns = {
name = "origin.example.com"
ttl = 600
type = ""
}
origin_port = 22
proxy_protocol = "off"
tls = "off"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "cloudflare_zero_trust_gateway_settings" "example_zero_trust_gateway_se
logo_path = "https://logos.com/a.png"
mailto_address = "[email protected]"
mailto_subject = "Blocked User Inquiry"
mode = "customized_block_page"
mode = ""
name = "Cloudflare"
suppress_footer = false
target_uri = "https://example.com"
Expand Down
Loading