Skip to content

[FEATURE] JDBC Authentication Provider for server #3222

@bowenliang123

Description

@bowenliang123

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the feature

Add JDBC authentication provider as implementation of PasswdAuthenticationProvider out of box.

Compared to currently support authentication methods like Kerberos and LDAP, JDBC source is a much easy and stable source for practical deployment.

The solution should provide:

  • easy to use and config jdbc connection details
  • handy to customize query statements for authentication
  • provide efficient db connection pooling (optional)

Motivation

No response

Describe the solution

Add JDBC to AuthMethods enum and JDBCPasswdAuthenticationProvider into package org.apache.kyuubi.service.authentication with listed features:

  • specify JDBC driver name and load the driver class
  • configs of JDBC url, username and password
  • select query with placeholders for checking user and password , like SELECT * from user_pass_hash where username = ${user} and password = MD5(${password})
  • cache and reuse jdbc connections (optional)

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions