Add dmarcing_spf_netblock resource and dmarcing_dns_records data source #12
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/spf-netblocks-dns-records"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
dmarcing_spf_netblock— adds a raw IPv4/IPv6 address or CIDR block to a domain's allowed SPF senders (mirrorsdmarcing_spf_service's add/remove-only shape, no update endpoint).dmarcing_dns_recordsdata source — looks up the NS hostname(s), MTA-STS CNAME target, and static SPF include record a verified domain's own zone needs to delegate to dmarc.ing.dmarcing_dmarc_policyfrom a single rawpolicystring to structuredp/sp/pct/adkim/aspf/foattributes, matching howdmarcing_sts_policyalready exposesmode/mx/max_ageinstead of a raw body. rua/ruf are intentionally not exposed since the platform always overrides them server-side.Test plan
go build ./...go vet ./...go test ./...terraform plan/applyagainst a real org+domain for the new resource, data source, and the reshapeddmarcing_dmarc_policy