Cannot use a Cloudflare API Token

Created on 12 August 2024, 3 months ago
Updated 31 August 2024, 3 months ago

Problem/Motivation

I've been working on rewriting my Cloudflare Worker and I noticed that you can't use the Cloudflare API Token with this module.

Steps to reproduce

  1. Try to use the Cloudflare API Token rather than the Key
  2. All purge requests will fail

Proposed resolution

Since the only thing this module uses from the Cloudflare module β†’ is the authentication credentials, maybe it would be better to just use something like Key Cloudflare β†’ ? Although, the new architecture of the worker really allows you to pass any arbitrary key (as long as it matches a secret in the worker), so we could just set our own key value?

Remaining tasks

  1. Determine a better solution
  2. Update the module (new major version?)

User interface changes

Maybe changing how the API Token is specified.

API changes

Maybe changing how we interact with workers.

Data model changes

I don't think anything should change in the data model.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States davidwbarratt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024