Skip to content

Update token regex#131

Open
arthurbenemann wants to merge 1 commit intocaddy-dns:masterfrom
arthurbenemann:token-length
Open

Update token regex#131
arthurbenemann wants to merge 1 commit intocaddy-dns:masterfrom
arthurbenemann:token-length

Conversation

@arthurbenemann
Copy link
Copy Markdown

Newer tokens from Cloudflare are longer as they have a prefix to indicate user or account tokens. Increased regex from 50 to 55 characters to account for cfut or cfat (i think that was the one for accounts, but havent tested since early debug) prefix

see https://caddy.community/t/caddy-tailscale-cloudflare-certificate-issue/33585/5 for more details.

My setup did not work before, and now it worked flawlessly. Hopefully this can be merged , so I can point to an official release.

Thank you for your hard work on getting this all together, this bump was painful but nothing compared to the work put in by the devs of caddy and caddy-cloudflare.

Newer tokens from Cloudflare are longer as they have a prefix to indicate user or account tokens
@AndrewThrift
Copy link
Copy Markdown

I was struck by this issue as well. Please merge

@jaimonorle
Copy link
Copy Markdown

jaimonorle commented Mar 23, 2026

Literally came to github to do a PR for a fix for exactly this, modified the regex and it worked like a charm.

@ThomasBur
Copy link
Copy Markdown

Also came to github to do a PR for this fix 👍

@SteppingHat
Copy link
Copy Markdown

Also also came to GitHub to open a PR to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants