Repository navigation
5.30.0 (2026-12-04)
Full Changelog: v5.29.0...v5.30.0
⚠ BREAKING CHANGES
- turnstile_widget: the
direction,filter,order,pageandper_pagearguments have been removed from the resource. They are list-query parameters that were never used when creating or updating a widget, and their defaults made every widget upgraded from older state plan an in-place update. Remove them from any configuration; a configuration that still sets them fails with an "Unsupported argument" error. Stored values are dropped automatically. Thecloudflare_turnstile_widgetslist data source keeps its query parameters. - workers_script:
bindings[].outbound.paramsis now a list of objects instead of a list of strings, matching the Workers API. Changeparams = ["foo", "bar"]toparams = [{ name = "foo" }, { name = "bar" }]. An automatic state upgrade converts stored string values to objects. - zero_trust_access_ai_controls_mcp_portal:
serversis now a list instead of a set on the resource and on thecloudflare_zero_trust_access_ai_controls_mcp_portalandcloudflare_zero_trust_access_ai_controls_mcp_portalsdata sources. This removes the slow plans for portals with many servers. An automatic state upgrade converts existing state. Order in configuration is now significant: reorderingserversplans an in-place update, and the first plan after upgrading may show one if your configuration order differs from the order byserver_id. - zone_setting (data source):
valueis now dynamic instead of a string, so settings whose API value is a number, list or object (for examplebrowser_cache_ttl,ciphers,security_header) return their value instead of null. String settings read as before. Update expressions that treated non-string settings as strings. - zone_hold (data source):
include_subdomainsis now a bool instead of a string, matching the API. It was always null before. Update any comparisons against"true"or"false"to use booleans. - queue_consumer (data source):
consumer_idis now required, and the data source looks up that consumer. Every read of the data source failed in v5.29.0. Setconsumer_idin the data source configuration. - zero_trust_risk_behavior (data source):
account_idis now required. Set it in the data source configuration. - stream_key: import now requires
<account_id>/<key_id>. A bare<account_id>import ID, accepted by v5.29.0, now fails with an error that lists the account's signing key IDs.
Notes
- provider: the API client now paces and retries requests by default: 4 requests per second (burst of one) per provider instance, up to 4 retries for connection errors and 408, 409, 429 and 5xx responses, and a backoff of 1 to 30 seconds with jitter. A
Retry-AfterorRetry-After-Msheader from the API sets the wait. Large plans and applies may take longer but should no longer fail with 429 errors. Use the newrps,retries,min_backoffandmax_backoffprovider arguments, or theCLOUDFLARE_V5_RPS,CLOUDFLARE_V5_RETRIES,CLOUDFLARE_V5_MIN_BACKOFFandCLOUDFLARE_V5_MAX_BACKOFFenvironment variables, to change them;rps = 0turns pacing off andretries = 0turns retries off. - cloudflare-go: the Go SDK dependency is updated to v7.16.0.
golang.org/x/net,golang.org/x/textandgoogle.golang.org/grpcare raised to versions with security fixes. - zero_trust_gateway_policy:
rule_settings,scheduleandexpirationare now optional and no longer computed. The provider manages only what your configuration sets: leaving one of them out now removes it from the policy on the next apply, and the plan shows-> null. Previously the provider kept the old value in the plan while the API cleared it. To keep a policy's rule settings, schedule or expiration, put them in your configuration (terraform state showlists the current values).rule_settings.biso_admin_controls.versionno longer defaults to"v1". - workers_script:
placement.targetand itsregion,hostnameandhostare now configurable, so targeted placement works.placement.targetrequiresmode = "targeted", andmode = "targeted"requires at least one target. The top-levelplacement.region,placement.hostnameandplacement.hostare rejected at plan time with a message pointing tomode = "targeted"andtarget; they were read-only before, so no working configuration used them. - flagship_flag:
variationsis now a dynamic attribute instead ofmap(string), so variation values can be booleans, numbers, strings, or JSON objects and arrays. Existing configurations that use a map of strings, such asvariations = { on = "true", off = "false" }, need no change, and an automatic state upgrade converts state written by v5.29.0 and earlier. To serve typed values, write them natively (variations = { on = true, off = false }); module variables or outputs typed asmap(string)that pass this attribute may then needany. - google_tag_gateway:
hide_original_ipis now optional and deprecated. It is stored but has no effect on traffic; when omitted, the previously stored value is kept. - ai_search_instance:
summarization,summarization_modelandsystem_prompt_index_summarizationare deprecated and ignored during indexing and search. Useindexing_options.file_summaryinstead. Changingsummarizationorsummarization_modelstill re-indexes existing files on the next sync. - zero_trust_device_custom_profile, zero_trust_device_default_profile: the new
always_exclude,always_includeandspeed_test_settingsattributes are deprecated and ignored by the API; do not set them. - secrets_store_secret:
scopesvalues are now validated at plan time against the accepted services (access,agents,ai_gateway,containers,dex,websearch,workers). - notification_policy_webhooks: changing
url, or adding, changing or removingsecret, now replaces the webhook, which gets a new ID. The API's update endpoint applies onlyname, so in v5.29.0 such a change was silently not applied. Notification policies that reference the webhook update in place. After an import, or an upgrade from state that holds the redacted URL, expect one in-place update that stores the configuredurl. Because the API never returnssecret, an imported webhook whose configuration setssecretis replaced once. - zero_trust_access_application: import now stores
auto_redirect_to_identity,enable_binding_cookieandoptions_preflight_bypassas null when the API returnsfalse, so configurations that omit them import without a diff. A configuration that sets one of them tofalseexplicitly sees one in-place update after import. - zero_trust_tunnel_cloudflared_config: destroying the resource, or removing it from configuration, now resets the tunnel's remote configuration through the API, removing its ingress rules and origin request settings. In v5.29.0 destroy only removed the resource from state. To stop managing a configuration without changing the live tunnel, run
terraform state rm(or use aremovedblock withdestroy = false) instead. - worker: the new
observability.agentsattribute requires the Workers observability agents feature on the account; without it the API rejectsagents.enabled = true. The API currently does not returnagentsin responses, so settingagentsin configuration plans an update on every run. Leaveagentsunset until this is resolved.
Features
New Resources
- cloudflare_security_txt: manage a zone's security.txt file served at
/.well-known/security.txt, including contacts, expiry, encryption keys, policies, acknowledgments, hiring links, canonical URIs and preferred languages.enabledis required. Supportsterraform importusing the zone ID. - cloudflare_security_insights_configuration: enable or disable scheduled Security Insights scans for an account. Supports
terraform importusing the account ID. - cloudflare_waf_payload_logging_key: manage the X25519 public key that WAF uses to encrypt matched payloads, for an account or a zone. Cloudflare stores only the public key.
New Data Sources
- Singular data sources for each new resource above (
cloudflare_security_txt,cloudflare_security_insights_configuration,cloudflare_waf_payload_logging_key).
New Attributes
- provider:
rps,retries,min_backoffandmax_backoffto tune request pacing and retries. - ai_gateway:
multiprovider_enabledto let requests to a model use every provider that serves it; computedinternal_id. - ai_search_instance:
indexing_options.file_summary,source_params.d1for D1 sources, andsource_params.web_crawler.parse_options.browser_rendering_wait_until. - d1_databases (data source):
fieldsfilter;file_size,num_tablesandrecommendation_countin results. - dns_records (data source):
cursorandprev_cursorfor cursor pagination (also on thecloudflare_dns_recorddata sourcefilter). - hostname_tls_settings (data source):
limitandoffset. - logpush_job: computed
destination_name(also on thecloudflare_logpush_dataset_jobdata source). - notification_policy:
filters.alert_trigger_preferences_long_window,alert_trigger_preferences_minimum_threshold,alert_trigger_preferences_operator,alert_trigger_preferences_short_window,check_id,execution_interval,query_id,sourceandtotal_spend_dollars. - pipeline: computed
outdated. - pipeline_sink: computed
latest,used_byandversion. - queue_consumer: computed
id. - r2_bucket:
force_destroyto delete every object in a bucket before destroying it. Objects are deleted permanently. - r2_data_catalog: computed
catalog_uri. - ruleset (data source):
include_rules. - spectrum_application:
edge_alpn_protocolsto set the ALPN protocols the edge offers on client TLS connections. - stream: computed
customer_code,encoding_modeandpreview_status. - stream_key (data source):
key_idcan be set to select a key; it is required when the account has several keys. - worker:
observability.agents,observability.redact_query_stringandpreviews_base_config.observability.agents;immutable_idon the data source. - workers_for_platforms_dispatch_namespace:
trusted_workersis now configurable. - workers_script:
bindings.outbound.worker.entrypoint,observability.agentsandobservability.redact_query_string. - zero_trust_access_application:
destinations.overridesto make matching paths of public and Worker destinations bypass Access;session_durationon inlinepolicies. - zero_trust_access_identity_provider:
config.metadata_urlfor SAML providers that publish signing certificates in a metadata document. - zero_trust_device_custom_profile:
enable_netbt. - zero_trust_device_default_profile:
descriptionandenable_netbt. - zero_trust_device_settings: computed
id. - zero_trust_gateway_certificate:
regioncan be set at creation to pin the certificate authority's key material to a Data Localization Suite region. Changing it forces replacement; omitting it keeps the stored value. - zero_trust_gateway_settings:
settings.regionsfor per-region TLS interception and certificate settings. - zero_trust_risk_behavior:
behaviors.points;behaviors.risk_levelis now optional.
New Accepted Values
- account_subscription:
rate_plan.idis no longer limited to the named plans and accepts product rate plan IDs. - notification_policy:
alert_typeaccepts 22 new alert types, includingbilling_budget_alert,magic_endpoint_healthcheck_alert,open_port_scan_alert,closed_port_scan_alert,workers_observability_alertandlog_explorer_scheduled_query_results_alert. - workers_script:
bindings.typeacceptsworker_loader. - zero_trust_device_posture_rule:
input.compliance_statusacceptsconflictandconfigmanager.
Other
- queue_consumer: add support for
terraform importusing<account_id>/<queue_id>/<consumer_id>. - r2_custom_domain: add support for
terraform importusing<account_id>/<bucket_name>/<domain>, optionally followed by/<jurisdiction>.
Bug Fixes
- access_rule: keep the configured IP or CIDR when the API returns it in another form, such as expanded IPv6.
- account: send an
Idempotency-Keyso creating a standalone account no longer fails, and keepstandalonein state; stopcloudflare_accountsfetching the same account repeatedly with an account-owned token. - account_api_token_permission_groups: return the permission groups instead of null.
- account_member: fix "Duplicate Set Element" errors when a member holds the same role through more than one policy.
- address_map: update
ipsandmembershipsin place, readipsfrom the API, and upgrade v4 state. - authenticated_origin_pulls_certificate, mtls_certificate: store the configured private key after import; ignore trailing newline differences in certificates after import.
- bot_management: send and read
bot_preference_sync_enabledandcf_robots_variant, and sendcontent_bots_protection; keep planned values when an update response omits them; sendai_training,ai_userandaisearchonly when configured. - calls_turn_app: populate
keyfrom the create response. - certificate_pack: stop
uploaded_ondrift on every refresh. - connectivity_directory_service: leave
created_atunknown on update, fixing "Provider produced inconsistent result after apply". - custom_hostname: stop custom certificate drift and re-upload.
- dns_record: stop drift on long TXT records and warn on relative names; remove records from state when their zone has been deleted; plan
proxiableas unknown whenname,typeorcontentchanges. - email_routing_catch_all, email_routing_rule: stop rules without a
nameplanning an update on every run; keeptagknown across updates. - hyperdrive_config: leave
modified_onunknown when an update is planned. - list, notification_policy: keep an empty
descriptionon refresh. - load_balancer_monitor_group: fix "Provider produced inconsistent result after apply" on every in-place update of
descriptionormembers. - load_balancer_pool: restore an omitted zero
portand load-shedding percentages. - moq_relay, stream, workers_deployment, zero_trust_access_infrastructure_target, zero_trust_casb_finding_type, zero_trust_tunnel_warp_connector, zone_lockdown: data sources no longer fail with "RFC3339 string value is null" when an optional time filter is unset.
- notification_policy: keep empty
mechanisms. - notification_policy_webhooks: keep the configured
urlwhen the API returns its redacted display form. - observatory_scheduled_test: restore response fields in state.
- organization: make the
cloudflare_organizationsdata sourceparent.idfilter optional. - origin_ca_certificate: stop planning
requested_validityafter import; do not fail the plan on unknown hostnames; keeprevoked_atfrom state when nothing is replaced. - pages_project: read back binding changes made outside Terraform; send whole environment variables on update and stop plan churn; keep an unchanged service binding on update; preserve an empty
placement. - provider: stop full request bodies occasionally omitting unchanged fields after an earlier partial update in the same run (seen as missing
pages_projectbindings and dropped fields in other resources); remove resources with dynamic attributes from state when they are deleted outside Terraform. - queue_consumer: fix data source reads; keep a configured empty
dead_letter_queue. - r2_bucket_event_notification: stop drift on every plan; never fail on the queue name lookup.
- r2_bucket_lock: keep rules in configuration order.
- ruleset: do not panic when the API returns duplicate rulesets.
- snippet, snippet_rules: read back snippet code and rules, so changes made outside Terraform show in plans and imports do not re-upload code.
- spectrum_application: refresh every attribute on read, so changes made outside Terraform show in plans.
- stream_key: select the resource's signing key on read, import and in the data source; require
<account_id>/<key_id>on import; refuse to delete a key the state does not identify. - turnstile_widget: keep
secretknown across in-place updates; changingregionnow replaces the widget instead of failing. - user_group, user_group_members, zone_lockdown: keep the configured order and repeated values on refresh.
- worker: let
deployed_onchange when a deploy lands before apply. - worker_version: stop API-filled binding
environmentvalues forcing replacement, and replanenvironmentwhen a binding changes target; keepinheritbindings; match bindings by name on read; keep targeted placement from drifting after refresh. - workers_cron_trigger: refresh
schedulesfrom the API, including on import. - workers_kv: return the raw value in the data source, so non-JSON values no longer fail.
- workers_script: refresh bindings from the API, so bindings changed or removed outside Terraform show in plans; stop re-sending applied Durable Object migrations, which failed later uploads with a migration tag precondition error; keep unset observability defaults out of state.
- zero_trust_access_ai_controls_mcp_portal: hydrate tool and prompt overrides on read and import and keep only portal-level overrides; skip null servers and keep
enabledfrom older API responses; warn on overrides that set onlyname; refreshon_behalfcorrectly. - zero_trust_access_ai_controls_mcp_server: stop
statusdrift and empty override churn; do not pinmodified_atandmodified_byon update. - zero_trust_access_application: match
mcpanddash_ssosettings to the API; plan an app launcherlanding_page_design = {}without the default title. - zero_trust_access_policy: import state that matches a create from the same configuration; keep
reusableandupdated_aton a no-op plan; keep an emptypurpose_justification_prompton refresh. - zero_trust_connectivity_settings: removing
icmp_proxy_enabledorofframp_warp_enabledkeeps the current value instead of failing. - zero_trust_device_custom_profile: keep
gateway_unique_idfrom state in plans. - zero_trust_device_default_profile: plan the replaced split tunnel list as null when switching between
includeandexclude, and handle empty lists;virtual_networks.allowedandvirtual_networks.defaultmay be omitted when updating. - zero_trust_device_deployment_groups: read the list once instead of fetching the same page repeatedly.
- zero_trust_device_posture_rule: keep fields the API omits on refresh, including
schedule; warn when a gateway, warp or tanium rule sets an ignored attribute. - zero_trust_device_subnet: changing
networknow replaces the subnet instead of failing. - zero_trust_dlp_predefined_profile: read a null
confidence_thresholdaslow. - zero_trust_dns_location: fix a value conversion error when
max_ttlornetworksis unset; defaultdns64_enabledtofalseto match the API. - zero_trust_gateway_policy: plan removal of
rule_settings,scheduleandexpiration; stop"" -> nulldiffs on unsetdescriptionandschedule.time_zone; plan stable read-only attributes from state on update. - zero_trust_network_hostname_route: removing
commentnow clears it instead of failing. - zero_trust_tunnel_cloudflared_config: fix "Received unknown value" errors when
configis omitted. - zero_trust_tunnel_warp_connector: removing
hano longer plans an update the API refuses; refreshhafrom the tunnel metadata. - zero_trust_tunnel_warp_connector_config: send only planned values, fixing error 1056 when changing
ha_mode. - zone: stop refresh drift when the API returns permissions in another order.
- zone_dnssec: keep the configured
statuswhile DNSSEC is pending. - zone_hold: refresh
include_subdomainson the resource and after import. - zone_setting: send the full value on update for settings that reset omitted keys; plan no change for an
aegissetting that stays disabled.
Documentation
- guides: remove the incorrect
audit_sshline from the v5 upgrade guide;audit_sshwas removed, not converted to a nested attribute. - guides: Terraform < 1.8 users must use
terraform state rmandterraform importfor renamed resources, sinceterraform state mvcannot change a resource type; list the renamed resources that cannot be imported; correct thecloudflare_zero_trust_device_default_profile_certificatesandcloudflare_zero_trust_gateway_app_types_listnames. - guides: explain that
rule_settings,scheduleandexpirationoncloudflare_zero_trust_gateway_policymust stay in configuration, and correct the gateway policy rows of the perpetual-diff table. - provider: document request pacing and retry defaults and overrides.
- ruleset: explain fields dropped by typed module variables.
- workers_script: describe the placement validation rules.
- zone_setting: explain how
tls_1_3and0rttinteract;proxy_read_timeoutis a string of seconds.