Repository navigation
Apache Reqsign 0.21.0 is now available.
The signed tag v0.21.0 points to the approved RC2 commit 324079ebd300bb1e33e631cbf5d80b28a4f0fa76.
Source release
The official Apache source release is available through the ASF distribution system:
What's changed
0.21 is a coordinated major for the core and the established service crates,
and the first crates.io release of the provider crates added since 0.20.8. It
moves cryptography out of the signing crates into a CryptoProvider selected
through the Context, passes the Context explicitly to facade
default_signer helpers, and raises the minimum supported Rust version to
1.87.
Breaking changes
- Cryptography is resolved through
Context.reqsign-coreand every
services/*crate no longer link SHA-1, SHA-256, HMAC, RSA, P-256, or
AES-GCM.Context::new()starts unbound; a context without a provider, or a
provider without the requested operation, fails withConfigInvalid. Bind a
provider withContext::with_crypto, install one process-wide with
reqsign_core::crypto::install_default, or use the facade's
default_context(), which bindsRustCryptoProviderwhen no global provider
is installed and thedefault-cryptofeature is enabled. reqsign_core::jwtis removed together with the corejwtfeature. Azure
client-certificate and Google service-account flows format RS256 JWS in
private service helpers through the selected provider. Hash and MAC helpers
now take&dyn CryptoProviderand returnResult; Azure
ServiceSharedAccessSignature::tokentakes the resolved provider.- Facade
default_signertakes theContextfirst. For example
aws::default_signer(ctx, "s3", "us-east-1"). Thedefault-contextfeature
no longer gatesDefaultSignerordefault_signer; both exist whenever the
service feature is enabled. Signer::with_contextisolates the credential cache instead of reusing
the previous context's cached credential, because a different context can
resolve a different identity. To replace only the signing or granting
operation and keep the cache, useSigner::with_request_signeror
Granter::with_credential_granter.- OBS and TOS
Credentialgainedexpires_at, which breaks struct-literal
construction. UseCredential::newpluswith_expires_at(and
with_session_tokenfor TOS). - The facade
google-credential-access-boundary-client-sidefeature is
removed. Enablereqsign-google/credential-access-boundary-client-side
directly, bind a provider that supports AES-GCM and secure random generation,
and supply anHttpSendtransport for the STS exchange. If the graph also
enables the facadegooglefeature, Cargo unifies features on the single
reqsign-googlepackage and facade re-exports can still expose the type. That
is feature unification, not a facade feature.
The facadegooglefeature keeps request signing and server-side CAB.
Added
- Crypto backend crates
reqsign-crypto-rustcrypto(workspace member,
wasm32-unknown-unknownfor its supported subset) and
reqsign-crypto-boring(native-only, excluded from the main workspace,
optionalfipsfeature), both1.0.0.
reqsign-crypto-boringis included in the source release and is published
to crates.io from the explicit standalone release-plan entry after
reqsign-core. CryptoProvideris implemented forArc<T>, so callers that already hold an
Arc<dyn CryptoProvider>can pass it directly to bothContext::with_crypto
andcrypto::install_default. Existing forwarding newtypes can be removed.- Provider crates and facade features, all first release at
1.0.0:
reqsign-aliyun-drive,reqsign-b2(facade featureb2),
reqsign-baidu-netdisk,reqsign-cloudflare,reqsign-dropbox,
reqsign-github,reqsign-koofr,reqsign-oauth2,reqsign-onedrive,
reqsign-seafile,reqsign-upyun,reqsign-vercel,reqsign-yandex-disk. - The first-release provider credentials use constructors/builders and
read-only accessors instead of public fields. Aliyun Drive's
Credential::new(token)rejects an invalid token immediately, and its
consumingwith_expires_at(expires_at)builder records the optional expiry.
B2 exposesauthorization_token(),api_url(),download_url(), and
expires_at(); Upyun exposesoperator()andbucket(). B2 and Upyun can
construct incomplete credentials, which are rejected by the B2 static
provider or the signer at use. These crates have no earlier release, so
these are their initial API shapes. reqsign-http-message-signaturesfor RFC 9421 request signing, facade
featurehttp-message-signatures.- Shared OAuth 2.0 refresh grants and OpenStack static-token credentials and
Swift TempURL presigning. Signer::credential_forandSigner::sign_with_credentialfor services whose
credential carries routing metadata. The caller can load the credential
before building the request URI and sign with that same credential, without a
refresh in between changing it.- Optional MD5 and HMAC-SHA512 provider operations.
- Additive
rsa,p256, andaes-gcmfeatures in
reqsign-crypto-rustcrypto, all enabled by default. MD5, SHA-1, SHA-256, and
HMAC operations stay unconditional. Disabled operations return
ConfigInvalidnaming the missing feature;aes-gcmalso owns secure random
generation throughgetrandom. - Facade service features weakly select only the backend algorithms they need:
aws-v4aselectsp256;azure,google,oracle, and
http-message-signaturesselectrsa. A service feature without
default-cryptodoes not pull the backend, and the facade exposes no
algorithm features. - Opt-in IMDSv1 fallback for AWS credentials, and AssumeRole providers that
honor STS endpoint settings.
Changed
- Minimum supported Rust version is 1.87.0. The RustCrypto backend's
rsa 0.10.0requirement is the reason. - The facade
defaultfeature enablesdefault-contextanddefault-crypto.
The backend dependency disables backend defaults, anddefault-cryptorelies
on the weak service mappings above; a service feature alone does not pull the
backend. - Services without a documented ambient source no longer export an empty
DefaultCredentialProvider. Aliyun Drive, OneDrive, and Yandex Disk pass
StaticCredentialProviderdirectly. Facade
aliyun_drive::default_signer(ctx, access_token)and
onedrive::default_signer(ctx, access_token)select it;
yandex_disk::default_signer(ctx, access_token)keeps its signature and also
wires it directly. Refresh and other explicit providers use
Signer::new(ctx, provider, service::RequestSigner)without a dummy token.
Baidu Netdisk and Koofr already accept the identity explicitly. - Lockstep major
4.0.0forreqsign-core,reqsign-aws-core, every
established service crate,reqsign-file-read-tokio, and
reqsign-command-execute-tokio.reqsign-http-send-reqwestmoves to
5.0.0, its own line offset from the core major.
Fixed
reqsign-azure-storageaccepts SAS tokens with a leading?. SAS values
copied from a full URL now sign the same query text as values without the
delimiter.- Presigning now rejects unrepresentable or out-of-contract lifetimes before
changing the request. AWS SigV4/SigV4a and Aliyun OSS V4 use encoded seconds
(OSS temporary credentials are limited to 12 hours), Volcengine TOS has no
fixed upper bound, Huawei Cloud OBS applies a 20 UTC calendar year signing
rule, and Azure Storage Shared Key Service SAS uses whole wire seconds.
Tencent COS and OSS V1/V2 keep their absolute Unix-second expirations.
Carried over from the v0.20.9 release
The 0.21 source also contains the changes released in v0.20.9. Callers
upgrading from 0.20.8 or earlier receive them from either release:
- AWS SSO-backed assume-role profile chains, S3 Express session-token selection
by service, and configurable SigV4 canonical URI encoding. - Google service-account OAuth2 token caching for the request signer.
- Oracle caller-supplied request body-header signing and profile field
inheritance. - Huawei Cloud OBS IAM agency granter, Volcengine TOS STS
AssumeRolegranter,
and Tencent COSGetFederationTokengranter. - Absolute credential expiry for OBS and TOS (see breaking changes above).
- OpenStack catalog search across all matching entries.
- Credential and security-token redaction in OBS and TOS debug output.
Crate versions
| Crate | 0.21.0 |
|---|---|
reqsign |
0.21.0 |
reqsign-core |
4.0.0 |
reqsign-command-execute-tokio |
4.0.0 |
reqsign-file-read-tokio |
4.0.0 |
reqsign-http-send-reqwest |
5.0.0 |
reqsign-aws-core |
4.0.0 |
reqsign-aws-v4 |
4.0.0 |
reqsign-aws-v4a |
4.0.0 |
reqsign-aliyun-oss |
4.0.0 |
reqsign-azure-storage |
4.0.0 |
reqsign-google |
4.0.0 |
reqsign-huaweicloud-obs |
4.0.0 |
reqsign-http-message-signatures |
4.0.0 |
reqsign-openstack-keystone |
4.0.0 |
reqsign-oracle |
4.0.0 |
reqsign-tencent-cos |
4.0.0 |
reqsign-volcengine-tos |
4.0.0 |
reqsign-crypto-rustcrypto |
1.0.0 |
reqsign-crypto-boring |
1.0.0 |
reqsign-aliyun-drive |
1.0.0 |
reqsign-b2 |
1.0.0 |
reqsign-baidu-netdisk |
1.0.0 |
reqsign-cloudflare |
1.0.0 |
reqsign-dropbox |
1.0.0 |
reqsign-github |
1.0.0 |
reqsign-koofr |
1.0.0 |
reqsign-oauth2 |
1.0.0 |
reqsign-onedrive |
1.0.0 |
reqsign-seafile |
1.0.0 |
reqsign-upyun |
1.0.0 |
reqsign-vercel |
1.0.0 |
reqsign-yandex-disk |
1.0.0 |