Skip to content

[Bug]: BEARER auth not working with REST API #10215

@meatheadmike

Description

@meatheadmike

What happened

BEARER authentication seems to work fine when hitting the nessie api. However when I switch to rest the endpoint simply freezes. I've tried making requests with curl and it just sits there waiting for a result until timeout.

The http log entry looks like this:
2025-01-17 16:44:54,710 INFO [io.qua.htt.access-log] (vert.x-eventloop-thread-0) 10.239.21.45 - - [17/Jan/2025:16:44:54 +0000] "GET /iceberg/v1/config HTTP/1.1" 200 - . So the request is making through to the server. Something is causing it to hang though. And I'm not sure how to debug further.

Like I said, switching to the nessie API makes it work. And if I turn off authentication with REST enabled it also works.

How to reproduce it

Here's how I enable REST api and disable nessie from spark:

spark.sql.catalog.iceberg.type rest
spark.sql.catalog.iceberg.uri http://nessie.nessie:19120/iceberg/
#
##spark.sql.catalog.iceberg.warehouse s3a://my-bucket/iceberg-warehouse
##spark.sql.catalog.iceberg.type nessie
##spark.sql.catalog.iceberg.uri http://nessie.nessie:19120/api/v2
##spark.sql.catalog.nessie.catalog-impl org.apache.iceberg.nessie.NessieCatalog

Nessie server type (docker/uber-jar/built from source) and version

docker/helm 0.101.3

Client type (Ex: UI/Spark/pynessie ...) and version

spark 3.5.4

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions