Repository navigation
Description
The CLI's reqwest traffic honours HTTPS_PROXY/NO_PROXY, and so does the AWS SDK's own default client at our BehaviorVersion::latest() (Glue, STS/SSO and the S3/DynamoDB storage backends): aws-smithy-runtime 1.10.3's default_https_client sets ProxyConfig::from_env() for behaviour versions from 2025-08-07 on. The one client that doesn't is ours. Iceberg S3 data reads go through http1_only_http_client (fluree-db-iceberg/src/io/storage.rs:178-185, applied to the S3 client at :438-439), a hyper-rustls 0.24 connector over a plain HttpConnector with no CONNECT support. So on a network where an explicit proxy is the only way out (a common setup on managed workstations), catalog calls and credential refresh work and the first Iceberg S3 read fails at connect. Transparent TLS inspection is fine today, provided the inspection root is in the OS store.
The same client's roots come from with_native_roots() → rustls-native-certs 0.6.3, where a set SSL_CERT_FILE replaces the OS store rather than adding to it, and hyper-rustls 0.24 panics (could not load platform certs / no CA certificates found) if that file is unreadable or empty. So someone who adds a private CA with SSL_CERT_FILE (the usual advice) silently loses the public roots on the S3 path, and a bad path crashes the process on the first Iceberg read. aws-config 1.8.15 doesn't read AWS_CA_BUNDLE either, fwiw.
I think this pairs naturally with #2114: its first option (our own hyper-1 HttpClient with only enable_http1()) is where CONNECT support would go anyway.
Proposed change
- Make the S3 client proxy-aware, as part of the Iceberg's HTTP/1.1-only S3 client keeps rustls-webpki 0.101 and h2 0.3, which have no fixed release #2114 move or as a CONNECT wrapper on the current one, reading the same
HTTPS_PROXY/NO_PROXYthe SDK's default client does. - Roots: the OS store plus an optional extra bundle (
AWS_CA_BUNDLE, which other AWS SDKs read), and a config error instead of a panic when it can't be loaded.
Acceptance criteria
- An Iceberg S3 read succeeds through a local CONNECT proxy in a test, with
NO_PROXYbypass honoured; a Glue/STS call through the same proxy stays green (a regression check, since those already proxy). - An extra CA bundle adds to the OS roots instead of replacing them.
- A missing or empty bundle is a clear error, not a panic.
- GCS range reads stay on HTTP/1.1, which is why the custom client exists.
Found during a Claude-assisted audit (and narrowed after a second review caught that the SDK's default client already proxies); anchors checked on main at 190529c11, crate behaviour against the locked sources.
Activity