Skip to content

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

@cuongvikki

Description

@cuongvikki

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

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