Skip to main content
The following steps outline how to create an Cloudflare integration in Encord.

STEP 1: Configure Cloudflare

  1. Log into Cloudflare. The Cloudflare dashboard appears. Cloudflare dashboard
  2. Click the account where your bucket is located. The Account home page appears.
  3. Click R2 object storage from the left hand navigation. The Overview R2 Object Storage page appears. R2 object storage
  4. Click Manage API tokens. The API tokens page appears. Create API token
  5. Click Create Account API token or Create User API token depending on your Cloudflare account privileges. The Create User API Token page appears. Create API token
  6. Specify permissions on one or more storage buckets:
    • Permissions:
      • For functionality: Select Object Read & Write
      • For limited functionality: Select Object Read only
    • Buckets
      • For simplicity: Select Apply to all buckets in this account
      • For Security: Select Apply to specific buckets only
  7. Click Create Account/User API token. The Summary page for the API token appears. Create API token
  8. Record the Access Key ID and Secret Access Key. Create API token
  9. Return to the R2 object storage Overview page. Record Account ID
  10. Record the Account ID.
  11. (OPTIONAL: CORS Policy) Click the bucket the API token is applied to. The Objects page for the bucket appears. Objects page
  12. Click Settings. The Settings page for the bucket appears. Settings page
  13. Click CORS Policy. The Settings page moves to the CORS Policy section.
  14. Click + Add. The CORS Policy panel appears. CORS Policy panel
  15. Copy the following into the workspace:
[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "GET"
        ],
        "AllowedOrigins": [
            "https://app.encord.com",
            "https://api.encord.com",
            "https://api.us.encord.com",
            "https://app.us.encord.com/"
        ],
        "ExposeHeaders": []
    }
]
  1. Click Save.
You are now ready to proceed to STEP 2: Encord Configuration.

STEP 2: Encord configuration

  1. In the Integrations section of the Encord platform, click +New integration to create a new integration. The integration dialog appears.
  2. Select Cloudflare in the integration dialog. New Integration
  3. Provide a meaningful name for the integration. Cloudflare integration
  4. Paste the following, from Cloudflare, into step 3:
    • Account ID
    • Access Key ID
    • Secret Access Key
    Cloudflare keys and ID
  5. Specify Advanced settings for tighter security if required. Advanced settings
  6. Click Create. The integration appears in the Integrations list. Create
⌘I