Skip to content

Forward RecordSpec in one place, and share the zone-setting constructor - #14

Merged
dubinsky merged 1 commit into
masterfrom
cursor/forward-recordspec-zonesetting-c239
Nov 13, 2026
Merged

dubinsky merged 1 commit into
masterfrom
cursor/forward-recordspec-zonesetting-c239

Conversation

@dubinsky

Copy link
Copy Markdown
Owner

Mail, extra CNAMEs, and apex/www pass a Names.RecordSpec into one record overload. That overload forwards priority (non-mail specs stay None) and keeps ttl at Names.cloudflareAutomaticTtl. The if replaceCname body still makes two separate DnsRecord calls, so Besom sees the inline logical names.

Always HTTPS and min TLS share zoneSetting. The Pulumi name stays Names.zoneSettingPulumiName(domain, settingId). Args stay zoneId, settingId, JsString(value), and cloudflareResourceOptions(). Always HTTPS still emits nothing when httpsSetting returns None. Min TLS still emits "1.2".

No new flatMap. registrationOrder, returnedOrder, and the redirect rules are unchanged. No logical name, type, parent, or argument change.

./gradlew build on Temurin 25.0.5+8: LogicalNamesTest 21 tests, KeyFileTest 5 tests, 0 failures. ./gradlew -p domain-infra/besom compileScala succeeded. Besom accepted the shared ZoneSetting call at compile time.

Open in Web Open in Cursor 

Mail, extra CNAMEs, and apex/www pass a RecordSpec into one record overload.
It forwards priority, and ttl stays Names.cloudflareAutomaticTtl. Always HTTPS
and min TLS share zoneSetting. The two DnsRecord calls inside record stay separate.

Co-authored-by: Leonid Dubinsky <dub@podval.org>
@dubinsky
dubinsky merged commit 503ae7a into master Nov 13, 2026
2 checks passed
@dubinsky
dubinsky deleted the cursor/forward-recordspec-zonesetting-c239 branch November 18, 2026 21:25
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.

1 participant