Skip to content

Iceberg S3 reads ignore HTTPS_PROXY (custom HTTP/1.1 client), and SSL_CERT_FILE replaces the OS trust store instead of extending it #2303

Open

Description

@aaj3f

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

  1. 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_PROXY the SDK's default client does.
  2. 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_PROXY bypass 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

  1. added
    enhancement
    P2
    area:iceberg
    area:storage
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:icebergarea:storageenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions