lance-format / lance-format/lance-namespace-impls

Auth failure when integrating namespace with Keycloak-secured Polaris (Unsupported realm parameter in header)

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
11
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Description: When attempting to integrate a namespace using Apache Spark with an Apache Polaris instance configured to use Keycloak for authentication, the operation fails. The issue appears to stem from how Keycloak handles the realm parameter within the authentication headers.
Expected Behavior: The client should successfully authenticate with Keycloak via Polaris and perform namespace operations (create/access) without errors.
Actual Behavior: The integration fails with an authentication error. The failure correlates with Keycloak including the realm parameter in the HTTP authentication headers, which seems to use default realm.
Steps to Reproduce:
Deploy Apache Polaris configured with Keycloak OIDC authentication.
Attempt to integrate or access a namespace using Lance and Spark.
Observe the authentication failure in the client logs or Polaris server logs.

Lance namespace: 0.2.0
Polaris: 1.3.0
Spark: 4.1.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the namespace integration with Apache Polaris 1.3.0, Keycloak OIDC, Lance Namespace 0.2.0, and Spark 4.1.0, then inspect the client and Polaris server authentication logs. Trace how the realm parameter is handled in the authentication headers; done means namespace creation and access succeed without authentication errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spark
Domain
api, authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.