Skip to main content

R2_SECRET_ACCESS_KEY

Constant R2_SECRET_ACCESS_KEY 

Source
pub const R2_SECRET_ACCESS_KEY: &str = "R2_SECRET_ACCESS_KEY";
Expand description

Worker secret holding the secret access key of an R2 API token, for presigned R2 URLs.

Shown once when the token is created; set it like R2_ACCESS_KEY_ID. It also signs the keys handed out by direct_upload, so replacing it invalidates uploads in progress.

ยงExamples

assert_eq!(ocre::storage::R2_SECRET_ACCESS_KEY, "R2_SECRET_ACCESS_KEY");