pub struct ConnectCredentials {
pub worker_access_key_id: String,
pub worker_secret: String,
pub frontend_asset_access_key_id: String,
pub frontend_asset_secret: String,
pub purge_token: String,
}Expand description
The three long-lived credentials fn0 is given.
Fields§
§worker_access_key_id: StringReaches the two object-storage buckets. The only R2 credential published to the worker fleet.
worker_secret: StringSHA-256 of the token, which is what R2 takes as an S3 secret access key. The token value never leaves the user’s machine: the hash is the only form fn0 needs, and unlike the token it cannot be replayed against the REST API.
frontend_asset_access_key_id: StringReaches the frontend-asset bucket only, and stays in control. Asset GC runs on a schedule and deletes; holding a credential that cannot open a bucket of user data is what keeps a bug in it from being unbounded.
frontend_asset_secret: String§purge_token: StringAuto Trait Implementations§
impl Freeze for ConnectCredentials
impl RefUnwindSafe for ConnectCredentials
impl Send for ConnectCredentials
impl Sync for ConnectCredentials
impl Unpin for ConnectCredentials
impl UnsafeUnpin for ConnectCredentials
impl UnwindSafe for ConnectCredentials
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more