From a5408f645e75d29893665bf1bba44f14d00f5526 Mon Sep 17 00:00:00 2001 From: laszloKopits Date: Sun, 22 Mar 2026 19:14:25 -0700 Subject: [PATCH] fix: increase max API token length to 64 Cloudflare's newer token formats (account-owned, user-scoped) use prefixed tokens (e.g. cfut_, cfat_) that exceed 50 characters. --- cloudflare.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudflare.go b/cloudflare.go index 10b159b..57927d1 100644 --- a/cloudflare.go +++ b/cloudflare.go @@ -24,7 +24,7 @@ import ( ) // cloudflareTokenRegexp matches Cloudflare tokens consisting of 35 to 50 alphanumeric characters, dashes, or underscores. -var cloudflareTokenRegexp = regexp.MustCompile(`^[A-Za-z0-9_-]{35,50}$`) +var cloudflareTokenRegexp = regexp.MustCompile(`^[A-Za-z0-9_-]{35,64}$`) // Provider wraps the provider implementation as a Caddy module. type Provider struct{ *cloudflare.Provider }