Issue with Cloudflare Tokens containing a dash/hyphen - #50

Closed
opened 2025-11-20 04:19:24 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @shammishailaj on GitHub (Jun 26, 2020).

Originally assigned to: @qdm12 on GitHub.

I have faced this myself. I have Cloudflare which I am able to use via the curl CLI but the same token is returned as invalid when used via the docker image. Upon diagnosis, I found that the regex being used to check for token validity did not contain a dash/hyphen whereas my token had one. I have created PR #86 that fixes this.

Please merge and update the docker image.

  1. Is this urgent?

    • Yes
    • No
  2. What DNS service provider(s) are you using?

    • Cloudflare
    • DDNSS.de
    • DNSPod
    • Dreamhost
    • DuckDNS
    • GoDaddy
    • Google
    • Infomaniak
    • Namecheap
    • NoIP
  3. What's the version of the program?

    Latest docker image

  4. What are you using to run the container?

    • Docker run
    • Docker Compose
    • Kubernetes
    • Docker stack
    • Docker swarm
    • Podman
    • Other:

Configuration file (remove your credentials!):

{
    "settings": [
        {
            "provider":"cloudflare",
            "no_dns_lookup":false,
            "zone_identifier":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            "domain":"example.com",
            "host":"@",
            "ttl":1,
            "token":"xxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxx_xxx",
            "proxied":true,
            "ip_version":"ipv4"
        }
    ]
}

Host OS: Docker Image on Ubuntu 20.04 aarch64

Originally created by @shammishailaj on GitHub (Jun 26, 2020). Originally assigned to: @qdm12 on GitHub. I have faced this myself. I have Cloudflare which I am able to use via the curl CLI but the same token is returned as `invalid` when used via the docker image. Upon diagnosis, I found that the regex being used to check for token validity did not contain a dash/hyphen whereas my token had one. I have created PR #86 that fixes this. Please merge and update the docker image. 1. Is this urgent? - [x] Yes - [ ] No 2. What DNS service provider(s) are you using? - [x] Cloudflare - [ ] DDNSS.de - [ ] DNSPod - [ ] Dreamhost - [ ] DuckDNS - [ ] GoDaddy - [ ] Google - [ ] Infomaniak - [ ] Namecheap - [ ] NoIP 3. What's the version of the program? Latest docker image 4. What are you using to run the container? - [x] Docker run - [ ] Docker Compose - [ ] Kubernetes - [ ] Docker stack - [ ] Docker swarm - [ ] Podman - [ ] Other: Configuration file (**remove your credentials!**): ```json { "settings": [ { "provider":"cloudflare", "no_dns_lookup":false, "zone_identifier":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "domain":"example.com", "host":"@", "ttl":1, "token":"xxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxx_xxx", "proxied":true, "ip_version":"ipv4" } ] } ``` Host OS: Docker Image on Ubuntu 20.04 aarch64
Author
Owner

@shammishailaj commented on GitHub (Jun 26, 2020):

PR #86 has already been merged. Closing this.

@shammishailaj commented on GitHub (Jun 26, 2020): PR #86 has already been merged. Closing this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#50