According to the Tailscale OAuth client, the corresponding nodekey is authorized to pass the Tailscale --verify-client-url check.
Deploy this on Cloudflare Workers.
Note: Only the nodekey will be verified; IP addresses will not be checked.
- Copy the
wrangler.template.jsonctowrangler.jsoncand fill the kv namespace id. - Create a secret named
TAILSCALE_OAUTH_APPS, which is a JSON string containing the organization name and the oauth client id and secret. Example:[ { "organizationName": "xxx", "clientId": "xxx", "clientSecret": "xxx" } ] - Run
wrangler publishto deploy the worker.