Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 771 Bytes

File metadata and controls

21 lines (13 loc) · 771 Bytes

Cloudflare R2

This document explains how to setup your system for authenticating to R2 using the credential helper.

Authentication

R2 has an S3-compatible API that requires the creation of special tokens. These are different from normal user tokens and are only used for R2.

  • Create an API token by following the documentation
  • Set the R2_ACCESS_KEY_ID and R2_SECRET_ACCESS_KEY environment variables when running Bazel or other tools

Configuration

Add to your .bazelrc:

common --credential_helper=*.r2.cloudflarestorage.com=%workspace%/tools/credential-helper