You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/08/19 04:24:02 UTC
[GitHub] [incubator-kyuubi] bowenliang123 commented on a diff in pull request #3275: [KYUUBI 3269] [DOCS] Doc for JDBC authentication provider
bowenliang123 commented on code in PR #3275:
URL: https://github.com/apache/incubator-kyuubi/pull/3275#discussion_r949787259
##########
docs/security/jdbc.md:
##########
@@ -0,0 +1,50 @@
+<!--
+ - Licensed to the Apache Software Foundation (ASF) under one or more
+ - contributor license agreements. See the NOTICE file distributed with
+ - this work for additional information regarding copyright ownership.
+ - The ASF licenses this file to You under the Apache License, Version 2.0
+ - (the "License"); you may not use this file except in compliance with
+ - the License. You may obtain a copy of the License at
+ -
+ - http://www.apache.org/licenses/LICENSE-2.0
+ -
+ - Unless required by applicable law or agreed to in writing, software
+ - distributed under the License is distributed on an "AS IS" BASIS,
+ - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ - See the License for the specific language governing permissions and
+ - limitations under the License.
+ -->
+
+
+# Configure Kyuubi to use JDBC Authentication
+
+Kyuubi supports authentication via JDBC query with JDBC. A query is prepared with username/password value and sent to database configured in JDBC URL. The authentication passes if result set returns at least one row.
+
+The query sql must start with `SELECT`. Placeholders are supported for sql template:
+- `${username}`
+- `${password}`
+
+For example, `SELECT 1 FROM auth_db.auth_table WHERE user=${username} AND
+passwd=MD5(CONCAT(salt,${password}))` will be prepared as: `SELECT 1 FROM auth_db.auth_table WHERE user=? AND passwd=MD5(CONCAT(salt,?))` with value replacement of `username` and `password` in string type.
+
+## Enable JDBC Authentication
+
+To enable the jdbc authentication method, we need to
+
+- put the JDBC driver jar package to ``$KYUUBI_HOME/jars`` directory to make it visible for
Review Comment:
sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org