Convert dmarcing_dmarc_policy to structured attributes #13

Merged
alice merged 1 commit from feat/spf-netblocks-dns-records into main 2026-08-28 09:48:29 +00:00
Owner

Follow-up to #12 — this commit was pushed to the same branch after #12 had already been merged, so it never made it into main. Replaces the raw policy string with p/sp/pct/adkim/aspf/fo attributes, matching dmarcing_sts_policy's mode/mx/max_age shape. Depends on the service-dmarc-api structured DMARC PR.

Follow-up to #12 — this commit was pushed to the same branch after #12 had already been merged, so it never made it into main. Replaces the raw policy string with p/sp/pct/adkim/aspf/fo attributes, matching dmarcing_sts_policy's mode/mx/max_age shape. Depends on the service-dmarc-api structured DMARC PR.
Convert dmarcing_dmarc_policy to structured attributes
All checks were successful
Go lint / lint (pull_request) Successful in 1m12s
1a16293473
Replaces the single raw policy string with p/sp/pct/adkim/aspf/fo
attributes, matching how dmarcing_sts_policy already exposes
mode/mx/max_age instead of a raw policy body. Backed by the new
structured GET/PUT .../dmarc endpoints on the org API. rua/ruf are
intentionally not exposed: the platform always overrides them when
serving the live record, so they'd only be misleading here.

PolicyResourceModel is renamed to SPFPolicyResourceModel and moved
into resource_spf_policy.go now that dmarcing_spf_policy is its only
user (dmarcing_dmarc_policy has its own structured model).
alice merged commit 8002176be0 into main 2026-08-28 09:48:29 +00:00
alice deleted branch feat/spf-netblocks-dns-records 2026-08-28 09:48:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
dmarc-ing/terraform-provider-dmarcing!13
No description provided.