-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 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][r2-auth-tokens] | ||
- 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 | ||
``` | ||
|
||
[wrangler-install]: https://developers.cloudflare.com/workers/wrangler/install-and-update/ | ||
[r2-auth-tokens]: https://developers.cloudflare.com/r2/api/s3/tokens/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"uri": "https://47ffb5f0a156e14a0985028c836501e2.r2.cloudflarestorage.com/r2-private-example/hello_world" | ||
} |