Skip to content

Integrate the Cloudflare REST API via account-scoped OAuth - #439

Merged
asselstine merged 2 commits into
mainfrom
codex/cloudflare-api-integration
Nov 24, 2026
Merged

asselstine merged 2 commits into
mainfrom
codex/cloudflare-api-integration

Conversation

@asselstine

@asselstine asselstine commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

What changes

  • Add browser OAuth and explicit Cloudflare account selection to Settings → Integrations. Access is read-only unless the owner opts in and Cloudflare confirms dns.write. No customer API key or app secret entry.
  • Use the existing request_api, reflection, and integration approval paths. Supported reads span zone/DNS/settings/routes and scoped Workers, KV, R2, D1, Queues and Pages inventory. DNS record mutations are the first supported writes. Unknown, cross-account, and credential endpoints are denied.
  • Retire standalone Cloudflare Tail. The old ingress returns 410 without reading the payload. Factorize does not accept new Tail sources or send pending or retrying Tail callbacks. Existing configuration and historical occurrences remain available for inspection or removal. No remote relay teardown or migration is attempted.

Deployment

Register/promote a confidential Cloudflare OAuth app, configure the documented Cloudflare client ID, secret, provider scopes and callback, then apply the migration. No live Cloudflare credentials or accounts were used.

Validation

  • Full static checks and all 40 browser functional tests passed.
  • 25 focused API tests passed, covering mocked OAuth and proxy controls as well as retired ingress, legacy source removal, suppression of queued Tail delivery, preserved history and unaffected normal delivery.
  • A broader local API run before the retirement follow-up encountered PostgreSQL fixture timeouts outside the new tests. GitHub CI will run on this head.

@asselstine
asselstine merged commit bb2cc5d into main Nov 24, 2026
9 checks passed
@asselstine
asselstine deleted the codex/cloudflare-api-integration branch November 24, 2026 23:04
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.

1 participant