Repository navigation
feat(crypto): add selectable RustCrypto algorithm features - #1075
Merged
Merged
Conversation
Add rsa, p256, and aes-gcm features, all enabled by default, while keeping MD5, SHA-1, SHA-256, and HMAC operations unconditional. Disabled operations return ConfigInvalid naming the missing feature. The facade disables backend defaults and weakly maps aws-v4a to p256 and azure, google, oracle, and http-message-signatures to rsa. A service feature alone no longer pulls the backend. Remove the facade google-credential-access-boundary-client-side feature; direct CAB use now configures reqsign-google and an AES-GCM-capable provider. Add backend feature-matrix and per-service facade isolation coverage, and update the 0.21 docs. Part of #1069.
Make the client-side CAB example runnable through Granter::grant(None) with a mock STS transport and an aes-gcm-only provider. Document that the facade CAB feature is removed while Cargo feature unification can still expose the service API through facade re-exports. Validate that the facade full feature expands to every service feature from a shared table, and probe a missing vercel entry as a regression. Part of #1069.
State that first acquisition or refresh of intermediary credentials goes to STS, while a valid cached intermediary enables local downscoped-token issuance. Name AES-GCM and secure randomness as provider requirements.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rsa,p256, andaes-gcmfeatures toreqsign-crypto-rustcrypto, all enabled by default. MD5, SHA-1, SHA-256, HMAC-SHA-1/256/512, and HMAC-SHA512 stay unconditional.ConfigInvalidnaming the missing feature, including secure randomness. RSA, AES-GCM, and randomness remain unsupported onwasm32-unknown-unknownwhen enabled; P-256 stays available.default-cryptodepends on the backend withdefault-features = false; service features weakly select only what they need:aws-v4a->p256;azure,google,oracle, andhttp-message-signatures->rsa. A service feature alone does not pull the backend.google-credential-access-boundary-client-sidefeature. Client-side CAB is now opt-in throughreqsign-google/credential-access-boundary-client-sidewith a provider supporting AES-GCM and secure randomness, plus anHttpSendtransport for STS. If a graph also enables facadegoogle, Cargo feature unification can expose the type through facade re-exports; that is not a facade feature.Arc<T>forwarding forCryptoProvider(Implement CryptoProvider for Arc<T> in reqsign-core #1068).Google client-side CAB migration
Granter::grant(None)path. Only theaes-gcmbackend feature is required; the example uses a public test vector, not credentials.HttpSendrequirements.CI coverage
fullaggregate are built and behavior-tested in isolated downstream Cargo invocations. Probes exercise actual RSA, P-256, AES-GCM, randomness, hash, and HMAC operations, and verify a service feature alone does not pull the backend.fullis validated by resolved feature expansion; deletingvercelfromfullfails withfull does not enable service features: ['vercel'].Verification
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo test --workspace --no-fail-fastcargo test --doc --all-features --workspacecargo test -p reqsign-google --features credential-access-boundary-client-side --lib --testspython3 .github/scripts/check_crypto_features.pypython3 .github/scripts/test_facade_features.pynode website/scripts/validate-providers.mjsreqsign-crypto-boringpackaging: 12 files, 4 staged local dependencies normalized without paths.Part of #1069.
Downstream follow-up
SMB lock resolution is downstream and is not claimed here. After the actual 0.21 release, the maintainers will open and then notify the dedicated OpenDAL issue for the SMB lockfile path. This PR does not edit OpenDAL or notify it.