origin_max_http_version setting and first_party_fonts #4170
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
Confirmation
Terraform and Cloudflare provider version
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "4.38.0"
}
}
Affected resource(s)
Context: We used to control zone setting via "profile" by plan: free, pro, enterprise via:
resource "cloudflare_zone_settings_override" "pro_default_profile" {
count = var.profile == "pro_default" ? 1 : 0
zone_id = var.zone_id
settings {
// dns settings
cname_flattening = var.cname_flattening != null ? var.cname_flattening : "flatten_at_root"
}
}
We are in an effort to move cloudflare_zone_settings_override block on each zone.tf
resource "cloudflare_zone_settings_override" "zone_setting_override__dev" {
zone_id = cloudflare_zone_dev.id
settings {
always_online = "on"
always_use_https = "on"
automatic_https_rewrites = "on"
brotli = "on"
browser_cache_ttl = 0
browser_check = "on"
cache_level = "aggressive"
challenge_ttl = 1800
cname_flattening = "flatten_at_root"
development_mode = "off"
early_hints = "off"
email_obfuscation = "on"
filter_logs_to_cloudflare = "off"
hotlink_protection = "off"
http2 = "on"
http3 = "on"
ip_geolocation = "on"
ipv6 = "on"
log_to_cloudflare = "on"
max_upload = 100
min_tls_version = "1.2"
minify {
css = "on"
html = "on"
js = "on"
}
mirage = "on"
opportunistic_encryption = "on"
opportunistic_onion = "on"
orange_to_orange = "off"
origin_error_page_pass_thru = "off"
polish = "lossless"
prefetch_preload = "off"
privacy_pass = "on"
proxy_read_timeout = "100"
pseudo_ipv4 = "add_header"
response_buffering = "off"
rocket_loader = "on"
security_header {
enabled = true
include_subdomains = true
max_age = 15768000
nosniff = true
preload = true
}
security_level = "medium"
server_side_exclude = "on"
sort_query_string_for_cache = "off"
ssl = "full"
tls_1_3 = "on"
tls_client_auth = "off"
true_client_ip_header = "off"
visitor_ip = "on"
waf = "off"
webp = "on"
websockets = "on"
zero_rtt = "off"
}
}
After applying these on 3 zones and disabling the module on each of the 3 zones we got the following erros
Error: The value provided for origin_max_http_version setting is not valid. The value must either be
1
or2
(1146)Error: could not unmarshal first_party_fonts feature because "" is not a valid value, accepted values are off/on
Terraform configuration files
Link to debug output
https://gist.github.com/ratesangelo/fd9e01dee8edaff9b0fe56c5d5895a1f
Panic output
╷
│ Error: The value provided for origin_max_http_version setting is not valid. The value must either be
1
or2
(1146)│
│
╵
╷
│ Warning: Deprecated Resource
│
│
│ (and 9 more similar warnings elsewhere)
╵
╷
│ Error: could not unmarshal first_party_fonts feature because "" is not a valid value, accepted values are off/on
│
│
╵
╷
│ Error: could not unmarshal first_party_fonts feature because "" is not a valid value, accepted values are off/on
Expected output
I expect to override the zone configuration for each zone.
However, I can’t find the expected value for origin_max_http_version in the Terraform provider documentation: Cloudflare Terraform Provider. While I understand it accepts a string, I’m unsure what specific value I should assign.
Additionally, where can I find origin_max_http_version in the Cloudflare UI?
Regarding first_party_fonts, where is that documented? Is it related to the zone_settings_override?
Actual output
The setting did not change or got override
Steps to reproduce
add that config to the zone.tf
terraform plan
terraform apply plan
Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: