Skip to content

Commit 47828f2

Browse files
SgtCoDFishcert-manager-bot
authored andcommitted
Add comment explaining change
Signed-off-by: Ashley Davis <[email protected]>
1 parent 2121860 commit 47828f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/issuer/acme/dns/cloudflare/cloudflare.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ func (c *DNSProvider) findTxtRecord(ctx context.Context, fqdn, content string) (
233233

234234
for _, rec := range records {
235235
if rec.Name == util.UnFqdn(fqdn) && rec.Content == content {
236+
// Cloudflare made a breaking change to their API and removed the ZoneID from responses:
237+
// https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2024-11-30
238+
// The simplest fix is to set the ZoneID manually here
236239
rec.ZoneID = zoneID
237240
return &rec, nil
238241
}

0 commit comments

Comments
 (0)