reqsign-google
Google Cloud Platform signing implementation for reqsign.
This crate signs Google Cloud requests with OAuth 2.0 access tokens or service
account credentials. Its default Application Default Credentials chain checks
GOOGLE_APPLICATION_CREDENTIALS, the well-known gcloud credentials file, and
the Compute Engine metadata service.
Quick Start
use ;
use TokioFileRead;
use ;
use ReqwestHttpSend;
let context = new
.with_file_read
.with_http_send
.with_env;
let signer = new;
The crate also supports server-side Cloud Storage Credential Access Boundary
downscoping. Enable the credential-access-boundary-client-side feature for
local client-side token generation.
For query signing, credential providers preserve a target service account email
when they can determine it from impersonation or VM metadata configuration. The
request signer uses that identity with IAMCredentials signBlob. An email set
with RequestSigner::with_signer_email takes precedence over the
provider-discovered identity.
Examples
License
Licensed under Apache License, Version 2.0.