Repository navigation
Description
Part of the FIPS 140-3 umbrella (#6224).
Context
The supervisor's network path signs AWS API requests on behalf of configured providers through the aws-sigv4 crate: openshell-supervisor-network builds the canonical request and calls aws_sigv4::http_request::sign directly.
Problem
aws-sigv4 unconditionally depends on the RustCrypto sha2 and hmac crates for the canonical-request payload hash, the date/region/service HMAC key ladder and the final signature. No feature disables them, so every supervisor build — including a FIPS-oriented one — carries non-module crypto in its production graph. This path is supervisor-specific: it is absent from the gateway graph, which is why the gateway proof of feasibility needed no AWS fork and no existing child covers it.
Proposed approach
An optional OpenSSL backend in a maintained fork of the owning AWS repository (awslabs/aws-sdk-rust, crate sdk/aws-sigv4), pinned by immutable revision through [patch.crates-io] in the OpenShell workspace:
- default
rust-cryptolane unchanged and byte-identical (AWS fixed-credential suite, RFC 4231 and FIPS 180-4 vectors pass in both lanes); - exclusive
openssllane computing the SHA-256 and HMAC ladder through the module's EVP interfaces; - fallible signing helpers so OpenSSL/provider failures propagate as signing errors instead of panics;
- SigV4a rejected at compile time on the openssl lane (it would silently keep ring/p256);
- the fork's manifest normalized to registry dependencies so the patch does not create duplicate AWS/Smithy types beside the registry instances.
The supervisor's crypto lane forwards the selected backend into the network crate. Upstreaming remains open: the published crate's manifest is generated, so an upstream change has to follow the smithy-rs source process.
Current state
A validated implementation exists and was exercised inside the supervisor FIPS proof of feasibility: with the OpenSSL lane enabled, the supervisor's production graph contains neither sha2 nor hmac, and signing is byte-identical to the default lane (the AWS fixed-credential suite, RFC 4231 and FIPS 180-4 vectors pass in both lanes; SigV4a is compile-rejected on the OpenSSL lane). The fork needs an owner and coordination with the other maintained FIPS forks.
Activity