Skip to content

Commit 262c3dd

Browse files
stainless-app[bot]mgirouardsteve-thousandcbertiercloudflaressicard
authored
release: 5.14.0 (#6481)
* codegen metadata * chore(zone): update migration tests (#6468) Updates `cloudflare_zone` migration tests to use `tf-migrate` instead of `cmd/migrate`. * feat: feat: BOTS-7562 add bot management feedback endpoints to stainless config (prod) * feat: BOTS-7562 add bot management feedback endpoints to stainless config (prod) * feat: chore: point Terraform to Go 'next' * chore: point Terraform to Go 'next' * chore(api): update composite API spec * chore(internal): codegen related update * fix(zone): datasource model schema parity (#6487) * fix(zone): make datasource's zone ID computed optional Resolves #6129 * test(zone): fix datasource model/schema parity Updates the `ZonesAccountDataSourceModel` type be useful for both filters and decerilization. * feat: feat(radar): Add origins endpoints to public api docs * chore(account_tokens): adding a simple CRUD test (#6484) * adding a simple CRUD test fo account tokens * add a test file * feat: chore(api_shield_discovery_operation): Deprecate api_shield_discovery_operation * chore(cloudflare_api_shield_operation): Add acceptance tests (#6491) * test: Add acceptance tests for cloudflare_api_shield_operation * chore: Add CI acceptance tests for api_shield_operation * chore(internal): codegen related update * chore(logpush_job): add v4 to v5 migration tests (#6483) * codegen metadata * add migration test for logpush_job * add zone level logpush jobs to sweeper * use MigrationV2TestStep, use zone level job for instant-logs test * handle instant-logs being returned from the API despite not being a valid config value * rename resource test name to be consistent --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> * fix(pages_project): use correct field name in test sweeper The Pages API response type uses "Name" instead of "ProjectName". Update the test sweeper to access the correct field from "ProjectListResponse". Fixes compilation error: deployment.ProjectName undefined (type pages.ProjectListResponse has no field or method ProjectName) * fix(zero_trust_device_posture_rule): preserve input.version and other fields (#6500) not returned by API The API doesn't return all configured input fields in Read responses, causing drift. This preserves input.version (critical), input.enabled cleanup, and additional fields (path, sha256, os_distro_*) from current state when API omits them. Fixes perpetual drift for firewall and os_version posture rules. * feat: feat(r2_data_catalog): Configure SDKs/Terraform to use R2 Data Catalog routes * feat(r2_data_catalog): Configure SDKs/Terraform to use R2 Data Catalog routes * DS-15730: Re-enable logpush_dataset_field data source and add acceptance test (#6499) Co-authored-by: Henry Clausen <hclausen@cloudflare.com> * DS-15566: Add logpush_job acceptance test for filter update (#6498) Co-authored-by: Henry Clausen <hclausen@cloudflare.com> * chore(internal): codegen related update * Update Subscription and Subscription.RatePlan schema in order to satisfy terraform to no detect changes on no changes to the config (#6497) * BILLSUB-247 CUSTESC-57375 fix drift issues after apply causing idempotency issues on subsequent applies * BILLSUB-247 CUSTESC-57375 fix wrong computed_optional syntax * Fix zone_subscription Sets field type mismatch --------- Co-authored-by: Sui Mak <sui@cloudflare.com> * feat: improve and standardize sweepers (#6501) * fix(zero_trust_device_posture_rule): preserve input.version and other fields (#6503) not returned by API The API doesn't return all configured input fields in Read responses, causing drift. This preserves input.version (critical), input.enabled cleanup, and additional fields (path, sha256, os_distro_*) from current state when API omits them. Fixes perpetual drift for firewall and os_version posture rules. * chore(internal): codegen related update * chore(zero_trust_device_managed_networks): add tests (#6463) * chore(zero_trust_device_default_profile_local_domain_fallback): add tests (#6464) * chore(zero_trust_device_posture_integration): update tests for to test with Crowdstrike (#6470) * fix(zone_subscription|account_subscription): add partners_ent as valid enum for rate_plan.id (#6505) * fix: add partners_ent as valid enum for rate_plan.id * fix: remove partners_enterprise enum from account subscription --------- Co-authored-by: Sui Mak <sui@cloudflare.com> * chore(api): update composite API spec * chore(internal): codegen related update * chore(internal): codegen related update * feat: add v4->v5 migration tests for pages_project and adjust schema (#6506) * fix: update import signature to accept account_id/subscription_id in order to import account subscription (#6510) Co-authored-by: Sui Mak <sui@cloudflare.com> * fix: r2 sweeper (#6512) * chore(internal): codegen related update * codegen metadata * chore(internal): codegen related update * chore(internal): codegen related update * codegen metadata * feat: chore: update go sdk to v6.4.0 for provider release * chore: skip invalid change detection * chore: update go sdk to v6.4.0 * fix(workers_script): resource drift when worker has unmanaged secret (#6504) Co-authored-by: Chris Thorwarth <cthorwarth@cloudflare.com> * fix(workers_script): No longer treating the migrations attribute as WriteOnly (#6489) * codegen metadata * wip: moving migrations to be a write-only attribute --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Chris Thorwarth <cthorwarth@cloudflare.com> * chore(zero_trust_device_default|custom_profile): acceptance test coverage (#6511) * fix(account_members): making member policies a set (#6488) * ACCT-11111 making member policies a set * fixing test resource name * removing unnecessary * removing unnecessary * correct client version * fixing resource names and sweeping * manual cleanup of test resources * making resource groups and perm groups sets * fix(tests): resolve SDK v6 migration test failures (#6507) - Change global test resource prefix from cf-tf-test- to cftftest_ to fix API name validation errors (fixes list, list_item, snippet) - Add certificate_pack hosts order-insensitive comparison in ModifyPlan to prevent unnecessary replacements - Add UseStateForUnknown() plan modifier to certificate_pack primary_certificate field - Add UseStateForUnknown() plan modifiers to pages_project deployment_configs fields (always_use_latest_compatibility_date, build_image_major_version, compatibility_date, fail_open) to prevent state drift Fixes test failures in: list, list_item, snippet, certificate_pack, pages_domain, pages_project * chore(tests): cloud connector rules parity tests and add connectivity_directory_service tests (#6513) * fix(cloud_connector_rules): datasource model schema parity * fix: rename e2e test for connectivity_directory_service * fix(account_member): use sdk to setup prereq * fix(cloud_connector_rules): model and schema --------- Co-authored-by: Eric Falcao <efalcao@cloudflare.com> * fix: decoder, build (#6514) * fix(test_utils): undefined func * fix(decoder): dont include fields with json tag - * chore(account_subscription): skip test * fix: decoder and tests (#6516) chore(account_member): dont run acceptance with env variable fix(utils): test assertions * chore(account_member): fix check for env var (#6517) * fix(workers_kv): ignore value import state verify (#6521) * fix(workers_kv): ignore value import state verify * chore(workers_kv): comment about why we're ignoring value * chore(account_member): skip until user is dsr enabled (#6522) * fix(pages_project): non empty refresh plans (#6515) * chore(docs): update documentation (#6523) * chore: update changelog (#6525) * release: 5.14.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Michael Girouard <206137+mgirouard@users.noreply.github.com> Co-authored-by: Steve Conrad <sconrad@cloudflare.com> Co-authored-by: cbertiercloudflare <cbertier@cloudflare.com> Co-authored-by: Sarah Sicard <18204584+ssicard@users.noreply.github.com> Co-authored-by: Tamas Jozsa <tamas@cloudflare.com> Co-authored-by: Henry Clausen <33390934+hc2116@users.noreply.github.com> Co-authored-by: Henry Clausen <hclausen@cloudflare.com> Co-authored-by: Sui Mak <smakys501@gmail.com> Co-authored-by: Sui Mak <sui@cloudflare.com> Co-authored-by: jlu-cloudflare <124198068+jlu-cloudflare@users.noreply.github.com> Co-authored-by: Rotem Atzaba <rotem@cloudflare.com> Co-authored-by: christhorwarth <chris.thorwarth@gmail.com> Co-authored-by: Chris Thorwarth <cthorwarth@cloudflare.com> Co-authored-by: Vaishak Dinesh <vaishakpdinesh@gmail.com> Co-authored-by: Eric Falcao <efalcao@cloudflare.com>
1 parent cbcb325 commit 262c3dd

File tree

533 files changed

+13694
-2549
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

533 files changed

+13694
-2549
lines changed

.github/workflows/acceptance-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-terraform' && 'depot-ubuntu-24.04' || 'lx64' }}
1414
env:
1515
CLOUDFLARE_ACCOUNT_ID: f037e56e89293a057740de681ac9abbe
16-
CLOUDFLARE_ALT_DOMAIN: terraform2.cfapi.net
17-
CLOUDFLARE_ALT_ZONE_ID: b72110c08e3382597095c29ba7e661ea
16+
CLOUDFLARE_ALT_DOMAIN: terraform-alt.cfapi.net
17+
CLOUDFLARE_ALT_ZONE_ID: ed9caae55809bfe3209699f602ce17fc
1818
CLOUDFLARE_DOMAIN: terraform.cfapi.net
1919
CLOUDFLARE_EMAIL: terraform-acceptance-test@cfapi.net
2020
CLOUDFLARE_ZONE_ID: 0da42c8d2132a9ddaf714f9e7c920711

.golangci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# yaml-language-server: schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
2+
---
3+
version: '2'
4+
linters:
5+
settings:
6+
staticcheck:
7+
checks:
8+
- all
9+
10+
- -SA1019
11+
- -SA5008
12+
- -ST1000
13+
- -ST1003
14+
- -ST1020
15+
- -ST1022
16+
17+
- -QF1008
18+
govet:
19+
disable:
20+
- structtag

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.13.0"
2+
".": "5.14.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1905
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cc732ca8d1d7f1c11a1ee579060ddfd8f953a3ad94fd5053056b53370129d040.yml
3-
openapi_spec_hash: a3e1e833dfe13845abd1e2227993a979
4-
config_hash: 9e3a3f3e68822e0dc6f40af202c6c57e
1+
configured_endpoints: 1922
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6183ef87f1b8eea6ad4bae542bfde2ec23a5526ae2b7bacdf6c6a4c48d990995.yml
3+
openapi_spec_hash: 9c8ac3d56571ebf1e170d993b71ccb4d
4+
config_hash: 56e587ca83a584af152a4bf8a9cfb29e

CHANGELOG.md

Lines changed: 133 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ terraform {
2020
required_providers {
2121
cloudflare = {
2222
source = "cloudflare/cloudflare"
23-
version = "~> 5.13.0"
23+
version = "~> 5.14.0"
2424
}
2525
}
2626
}

docs/data-sources/account_subscription.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Read-Only:
4545
- `currency` (String) The currency applied to the rate plan subscription.
4646
- `externally_managed` (Boolean) Whether this rate plan is managed externally from Cloudflare.
4747
- `id` (String) The ID of the rate plan.
48-
Available values: "free", "lite", "pro", "pro_plus", "business", "enterprise", "partners_free", "partners_pro", "partners_business", "partners_enterprise".
48+
Available values: "free", "lite", "pro", "pro_plus", "business", "enterprise", "partners_free", "partners_pro", "partners_business", "partners_ent".
4949
- `is_contract` (Boolean) Whether a rate plan is enterprise-based (or newly adopted term contract).
5050
- `public_name` (String) The full name of the rate plan.
5151
- `scope` (String) The scope that this rate plan applies to.

docs/data-sources/certificate_pack.md

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,86 @@ data "cloudflare_certificate_pack" "example_certificate_pack" {
2323

2424
### Required
2525

26-
- `certificate_pack_id` (String) Identifier.
2726
- `zone_id` (String) Identifier.
2827

28+
### Optional
29+
30+
- `certificate_pack_id` (String) Identifier.
31+
- `filter` (Attributes) (see [below for nested schema](#nestedatt--filter))
32+
2933
### Read-Only
3034

35+
- `certificate_authority` (String) Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details.](https://developers.cloudflare.com/ssl/reference/certificate-authorities)
36+
Available values: "google", "lets_encrypt", "ssl_com".
37+
- `certificates` (Attributes List) Array of certificates in this pack. (see [below for nested schema](#nestedatt--certificates))
38+
- `cloudflare_branding` (Boolean) Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.
39+
- `hosts` (List of String) Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty.
3140
- `id` (String) Identifier.
41+
- `primary_certificate` (String) Identifier of the primary certificate in a pack.
42+
- `status` (String) Status of certificate pack.
43+
Available values: "initializing", "pending_validation", "deleted", "pending_issuance", "pending_deployment", "pending_deletion", "pending_expiration", "expired", "active", "initializing_timed_out", "validation_timed_out", "issuance_timed_out", "deployment_timed_out", "deletion_timed_out", "pending_cleanup", "staging_deployment", "staging_active", "deactivating", "inactive", "backup_issued", "holding_deployment".
44+
- `type` (String) Type of certificate pack.
45+
Available values: "mh_custom", "managed_hostname", "sni_custom", "universal", "advanced", "total_tls", "keyless", "legacy_custom".
46+
- `validation_errors` (Attributes List) Domain validation errors that have been received by the certificate authority (CA). (see [below for nested schema](#nestedatt--validation_errors))
47+
- `validation_method` (String) Validation Method selected for the order.
48+
Available values: "txt", "http", "email".
49+
- `validation_records` (Attributes List) Certificates' validation records. (see [below for nested schema](#nestedatt--validation_records))
50+
- `validity_days` (Number) Validity Days selected for the order.
51+
Available values: 14, 30, 90, 365.
52+
53+
<a id="nestedatt--filter"></a>
54+
### Nested Schema for `filter`
55+
56+
Optional:
57+
58+
- `status` (String) Include Certificate Packs of all statuses, not just active ones.
59+
Available values: "all".
60+
61+
62+
<a id="nestedatt--certificates"></a>
63+
### Nested Schema for `certificates`
64+
65+
Read-Only:
66+
67+
- `bundle_method` (String) Certificate bundle method.
68+
- `expires_on` (String) When the certificate from the authority expires.
69+
- `geo_restrictions` (Attributes) Specify the region where your private key can be held locally. (see [below for nested schema](#nestedatt--certificates--geo_restrictions))
70+
- `hosts` (List of String) Hostnames covered by this certificate.
71+
- `id` (String) Certificate identifier.
72+
- `issuer` (String) The certificate authority that issued the certificate.
73+
- `modified_on` (String) When the certificate was last modified.
74+
- `priority` (Number) The order/priority in which the certificate will be used.
75+
- `signature` (String) The type of hash used for the certificate.
76+
- `status` (String) Certificate status.
77+
- `uploaded_on` (String) When the certificate was uploaded to Cloudflare.
78+
- `zone_id` (String) Identifier.
79+
80+
<a id="nestedatt--certificates--geo_restrictions"></a>
81+
### Nested Schema for `certificates.geo_restrictions`
82+
83+
Read-Only:
84+
85+
- `label` (String) Available values: "us", "eu", "highest_security".
86+
87+
88+
89+
<a id="nestedatt--validation_errors"></a>
90+
### Nested Schema for `validation_errors`
91+
92+
Read-Only:
93+
94+
- `message` (String) A domain validation error.
95+
96+
97+
<a id="nestedatt--validation_records"></a>
98+
### Nested Schema for `validation_records`
99+
100+
Read-Only:
101+
102+
- `emails` (List of String) The set of email addresses that the certificate authority (CA) will use to complete domain validation.
103+
- `http_body` (String) The content that the certificate authority (CA) will expect to find at the http_url during the domain validation.
104+
- `http_url` (String) The url that will be checked during domain validation.
105+
- `txt_name` (String) The hostname that the certificate authority (CA) will check for a TXT record during domain validation .
106+
- `txt_value` (String) The TXT record that the certificate authority (CA) will check during domain validation.
32107

33108

docs/data-sources/certificate_packs.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,70 @@ Available values: "all".
3838
<a id="nestedatt--result"></a>
3939
### Nested Schema for `result`
4040

41+
Read-Only:
42+
43+
- `certificate_authority` (String) Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details.](https://developers.cloudflare.com/ssl/reference/certificate-authorities)
44+
Available values: "google", "lets_encrypt", "ssl_com".
45+
- `certificates` (Attributes List) Array of certificates in this pack. (see [below for nested schema](#nestedatt--result--certificates))
46+
- `cloudflare_branding` (Boolean) Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.
47+
- `hosts` (List of String) Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty.
48+
- `id` (String) Identifier.
49+
- `primary_certificate` (String) Identifier of the primary certificate in a pack.
50+
- `status` (String) Status of certificate pack.
51+
Available values: "initializing", "pending_validation", "deleted", "pending_issuance", "pending_deployment", "pending_deletion", "pending_expiration", "expired", "active", "initializing_timed_out", "validation_timed_out", "issuance_timed_out", "deployment_timed_out", "deletion_timed_out", "pending_cleanup", "staging_deployment", "staging_active", "deactivating", "inactive", "backup_issued", "holding_deployment".
52+
- `type` (String) Type of certificate pack.
53+
Available values: "mh_custom", "managed_hostname", "sni_custom", "universal", "advanced", "total_tls", "keyless", "legacy_custom".
54+
- `validation_errors` (Attributes List) Domain validation errors that have been received by the certificate authority (CA). (see [below for nested schema](#nestedatt--result--validation_errors))
55+
- `validation_method` (String) Validation Method selected for the order.
56+
Available values: "txt", "http", "email".
57+
- `validation_records` (Attributes List) Certificates' validation records. (see [below for nested schema](#nestedatt--result--validation_records))
58+
- `validity_days` (Number) Validity Days selected for the order.
59+
Available values: 14, 30, 90, 365.
60+
61+
<a id="nestedatt--result--certificates"></a>
62+
### Nested Schema for `result.certificates`
63+
64+
Read-Only:
65+
66+
- `bundle_method` (String) Certificate bundle method.
67+
- `expires_on` (String) When the certificate from the authority expires.
68+
- `geo_restrictions` (Attributes) Specify the region where your private key can be held locally. (see [below for nested schema](#nestedatt--result--certificates--geo_restrictions))
69+
- `hosts` (List of String) Hostnames covered by this certificate.
70+
- `id` (String) Certificate identifier.
71+
- `issuer` (String) The certificate authority that issued the certificate.
72+
- `modified_on` (String) When the certificate was last modified.
73+
- `priority` (Number) The order/priority in which the certificate will be used.
74+
- `signature` (String) The type of hash used for the certificate.
75+
- `status` (String) Certificate status.
76+
- `uploaded_on` (String) When the certificate was uploaded to Cloudflare.
77+
- `zone_id` (String) Identifier.
78+
79+
<a id="nestedatt--result--certificates--geo_restrictions"></a>
80+
### Nested Schema for `result.certificates.geo_restrictions`
81+
82+
Read-Only:
83+
84+
- `label` (String) Available values: "us", "eu", "highest_security".
85+
86+
87+
88+
<a id="nestedatt--result--validation_errors"></a>
89+
### Nested Schema for `result.validation_errors`
90+
91+
Read-Only:
92+
93+
- `message` (String) A domain validation error.
94+
95+
96+
<a id="nestedatt--result--validation_records"></a>
97+
### Nested Schema for `result.validation_records`
98+
99+
Read-Only:
100+
101+
- `emails` (List of String) The set of email addresses that the certificate authority (CA) will use to complete domain validation.
102+
- `http_body` (String) The content that the certificate authority (CA) will expect to find at the http_url during the domain validation.
103+
- `http_url` (String) The url that will be checked during domain validation.
104+
- `txt_name` (String) The hostname that the certificate authority (CA) will check for a TXT record during domain validation .
105+
- `txt_value` (String) The TXT record that the certificate authority (CA) will check during domain validation.
106+
41107

docs/data-sources/cloudforce_one_request_asset.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ data "cloudflare_cloudforce_one_request_asset" "example_cloudforce_one_request_a
3333
- `created` (String) Defines the asset creation time.
3434
- `description` (String) Asset description.
3535
- `file_type` (String) Asset file type.
36+
- `id` (String) UUID.
3637
- `name` (String) Asset name.
3738

3839

0 commit comments

Comments
 (0)