external-dns icon indicating copy to clipboard operation
external-dns copied to clipboard

external-dns could not user token of CF with ending newline

Open gecube opened this issue 6 months ago • 1 comments
trafficstars

  1. create the secret with cf token ending with newline.
  2. get
time="2025-05-14T20:06:20Z" level=fatal msg="Failed to do run once: HTTP request failed: Get \"https://api.cloudflare.com/client/v4/zones?per_page=50\": net/http: invalid header field value for \"Authorization\""

and pod in crash loop back off mode.

Possible solution: accept the CF token with trailing new-line character and strip it.

gecube avatar May 14 '25 20:05 gecube