From 7ce54fa1fafeec42a083e015ff3da2de8f35a3bf Mon Sep 17 00:00:00 2001 From: Andrew Xie Date: Tue, 21 Jul 2026 15:18:34 -0400 Subject: [PATCH] fix: Fix unauthorized exception with ice due to missing auth header --- .../ice/cli/internal/iceberg/rest/RESTCatalogFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ice/src/main/java/com/altinity/ice/cli/internal/iceberg/rest/RESTCatalogFactory.java b/ice/src/main/java/com/altinity/ice/cli/internal/iceberg/rest/RESTCatalogFactory.java index 0a602e09..8d2718e8 100644 --- a/ice/src/main/java/com/altinity/ice/cli/internal/iceberg/rest/RESTCatalogFactory.java +++ b/ice/src/main/java/com/altinity/ice/cli/internal/iceberg/rest/RESTCatalogFactory.java @@ -33,6 +33,7 @@ import org.apache.iceberg.catalog.SessionCatalog; import org.apache.iceberg.rest.HTTPClient; import org.apache.iceberg.rest.RESTCatalog; +import org.apache.iceberg.rest.RESTUtil; public class RESTCatalogFactory { @@ -63,6 +64,7 @@ public static RESTCatalog create(byte[] caCrt, boolean sslVerify) { x -> HTTPClient.builder(x) .uri(x.get(CatalogProperties.URI)) + .withHeaders(RESTUtil.configHeaders(x)) .withTlsSocketStrategy(tlsSocketStrategy) .build()); }