Connect Cloudflare R2 to PD Object Storage in WHMCS

Skip to main content
Print

Connect Cloudflare R2 to PD Object Storage in WHMCS

Connect the intended Cloudflare account to sell R2-backed storage through PD Object Storage. The module needs a management API token, while customer applications receive a separate S3-compatible key pair.

Prepare the account token

Install PD Modules, connect the account holding your licence and install PD Object Storage from its Store. Prepare a dedicated host credential for the intended account; customers receive separate service credentials. Keep host credentials out of customer tools, screenshots and tickets.

Ask the Cloudflare account administrator to prepare an account-owned management token for the intended account with Account API Tokens: Edit, Workers R2 Storage: Edit and Account Analytics: Read. These serve customer-token management, buckets/settings and usage respectively. R2 must be enabled for the account.

The customer-facing Access Key ID and Secret Access Key from an R2 S3 setup are different from the management bearer token entered here. Review Cloudflare’s R2 authentication documentation and account-token API when checking token type and permissions; permission wording can differ between interfaces.

Save and associate the account

  1. Open System Settings → Products/Services → Servers.
  2. Add a server of type PD Object Storage.
  3. Put the Cloudflare Account ID in Username and the management token in Password.
  4. Save and give this backend its own intended server group.
  5. On the product’s Module Settings, choose Cloudflare R2 as Backend, select that group and save.
  6. Review its data-location choice before provisioning.

Check the named test result

Use PD Object Storage → Settings → Test Connection. For R2 it reads account-token permission groups and lists buckets; it does not create a customer token or bucket. A passing result is not proof of every token-management, analytics or settings write.

If a scope check fails, have the administrator review the intended account/token and named permission. Do not substitute a customer S3 pair or change unrelated Cloudflare security settings. See placement and endpoint checks before using a jurisdiction-specific service.

See the PD Object Storage WHMCS guide for related tasks, or explore PD Object Storage.

Table of Contents

Get your website online with PD Hosting

UK hosting, domains and support from a real team. From a first site to a full server.

Terms and Conditions  ·  Privacy Policy

PD Hosting is the trading name of Projektif Digital Ltd, registered in England and Wales, company number 12482555.

PD Hosting
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.