Skip to content

fix: Fix unauthorized exception with ice due to missing auth header#196

Merged
subkanthi merged 1 commit into
masterfrom
195-unauthorized-exception
Jul 21, 2026
Merged

fix: Fix unauthorized exception with ice due to missing auth header#196
subkanthi merged 1 commit into
masterfrom
195-unauthorized-exception

Conversation

@xieandrew

Copy link
Copy Markdown
Collaborator

Closes #195.

The Iceberg 1.8 -> 1.9 upgrade broke the bearer token auth for REST catalog requests. Iceberg 1.9 refactored the auth system which no longer passed header.* properties directly and instead passed it via the HTTPClient.Builder. We use a custom HTTPClient created by RESTCatalogFactory which wasn't updated to match this change. This caused requests to the catalog besides the initial /config request to be missing the "Authorization" header.

The fix was to pass the config headers to the HTTPClient.Builder in RestCatalogFactory.create, so that the "Authorization" header is properly included in all requests to the catalog.

@xieandrew xieandrew added the ice Relates to ice label Jul 21, 2026
@xieandrew
xieandrew requested a review from subkanthi July 21, 2026 19:29
@subkanthi
subkanthi merged commit 4e17641 into master Jul 21, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ice Relates to ice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unauthorized exception when connecting with ice

2 participants