Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0dc75fe
implement JDBC Authentication Method
bowenliang123 Aug 15, 2022
0e7f0ad
refactor config and init process.remove unused import.
bowenliang123 Aug 15, 2022
996f796
add unit test in JdbcAuthenticationProviderImplSuite
bowenliang123 Aug 15, 2022
49c18c2
update
bowenliang123 Aug 15, 2022
df4be56
update code style
bowenliang123 Aug 15, 2022
7025330
fix derby startup error in test
bowenliang123 Aug 15, 2022
46cc1dd
add config docs in docs/deployment/settings.md
bowenliang123 Aug 15, 2022
15176b2
fix import orders
bowenliang123 Aug 15, 2022
cd2c7c2
update settings.md config doc
bowenliang123 Aug 15, 2022
1dc4187
update settings.md config doc
bowenliang123 Aug 15, 2022
575301c
update options usage
bowenliang123 Aug 15, 2022
30974d1
update format
bowenliang123 Aug 15, 2022
3672919
fix ddl statement and remove truncate statement in test
bowenliang123 Aug 16, 2022
cdec206
more test cases
bowenliang123 Aug 16, 2022
653bc12
add more checks for query sql
bowenliang123 Aug 16, 2022
aeb19ce
update doc
bowenliang123 Aug 16, 2022
b9ffac3
Merge branch 'master' into feature-jdbc-auth-provider
bowenliang123 Aug 16, 2022
9885f81
add JDBC condition for getValidPasswordAuthMethod
bowenliang123 Aug 16, 2022
4ebe12e
add JDBC value to AuthTypes enum
bowenliang123 Aug 16, 2022
1c956df
update KyuubiAuthenticationFactorySuite
bowenliang123 Aug 16, 2022
5a0ac49
output password length only in checkConfigs
bowenliang123 Aug 16, 2022
3a4d5fe
update checkConfigs() signature
bowenliang123 Aug 16, 2022
a4fe582
refactor connection creation on using HikariDataSource in HikariCP. a…
bowenliang123 Aug 16, 2022
543c66c
prefer scala style string usage
bowenliang123 Aug 16, 2022
6765aff
changed to use in-memory derby db for test
bowenliang123 Aug 16, 2022
77f5f86
remove unuseful comment
bowenliang123 Aug 16, 2022
a9404fa
use {} for intercept
bowenliang123 Aug 16, 2022
6fc42bf
code styling
bowenliang123 Aug 16, 2022
e9af096
use clone instead of repeatly generating configs
bowenliang123 Aug 16, 2022
d5f43e0
remove unuseful logs for unrecognized placeholder error
bowenliang123 Aug 16, 2022
17403b3
cleanup docs
bowenliang123 Aug 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update settings.md config doc
  • Loading branch information
bowenliang123 committed Aug 15, 2022
commit 1dc4187b671c696163935fa3892de8ddafcd46e3
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,9 @@ object KyuubiConf {
" <li>NONE: no authentication check.</li>" +
" <li>KERBEROS: Kerberos/GSSAPI authentication.</li>" +
" <li>CUSTOM: User-defined authentication.</li>" +
" <li>LDAP: Lightweight Directory Access Protocol authentication.</li></ul>" +
" <li>JDBC: JDBC query authentication.</li>" +
" <li>LDAP: Lightweight Directory Access Protocol authentication.</li>" +
"</ul>" +
" Note that: For KERBEROS, it is SASL/GSSAPI mechanism," +
" and for NONE, CUSTOM and LDAP, they are all SASL/PLAIN mechanism." +
" If only NOSASL is specified, the authentication will be NOSASL." +
Expand Down Expand Up @@ -647,45 +649,45 @@ object KyuubiConf {

val AUTHENTICATION_JDBC_DRIVER: OptionalConfigEntry[String] =
buildConf("kyuubi.authentication.jdbc.driver.class")
.doc("Driver class name for JDBC Password Authentication Provider.")
.doc("Driver class name for JDBC Authentication Provider.")
.version("1.6.0")
.stringConf
.createOptional

val AUTHENTICATION_JDBC_URL: OptionalConfigEntry[String] =
buildConf("kyuubi.authentication.jdbc.url")
.doc("JDBC URL for JDBC Password Authentication Provider.")
.doc("JDBC URL for JDBC Authentication Provider.")
.version("1.6.0")
.stringConf
.createOptional

val AUTHENTICATION_JDBC_USERNAME: OptionalConfigEntry[String] =
buildConf("kyuubi.authentication.jdbc.username")
.doc("Database username for JDBC Password Authentication Provider.")
.doc("Database username for JDBC Authentication Provider.")
.version("1.6.0")
.stringConf
.createOptional

val AUTHENTICATION_JDBC_PASSWORD: OptionalConfigEntry[String] =
buildConf("kyuubi.authentication.jdbc.password")
.doc("Database password for JDBC Password Authentication Provider.")
.doc("Database password for JDBC Authentication Provider.")
.version("1.6.0")
.stringConf
.createOptional

val AUTHENTICATION_JDBC_QUERY: OptionalConfigEntry[String] =
buildConf("kyuubi.authentication.jdbc.query")
.doc("Query SQL template with placeholders " +
"for JDBC Password Authentication Provider to execute." +
"for JDBC Authentication Provider to execute. " +
"Authentication passes if at least one row fetched in the result set." +
"Available placeholders are: <ul>" +
"<li>${username}</li>" +
"<li>${password}</li></ul>" +
"Don't quote the placeholders, query will be processed as prepared statement, " +
"while username and password will be passed as parameters." +
"For example: SELECT 1 FROM auth_table WHERE user=${username} AND " +
"passwd=MD5(CONCAT(salt,${password})); " +
"Will be prepared as: SELECT 1 FROM auth_table " +
"WHERE user=? AND passwd=MD5(CONCAT(salt,?)); ")
"<li>`${username}`</li>" +
"<li>`${password}`</li></ul>" +
"eg.: query sql `SELECT 1 FROM auth_table WHERE user=${username} AND " +
"passwd=MD5(CONCAT(salt,${password}));` " +
"will be prepared as: `SELECT 1 FROM auth_table " +
"WHERE user=? AND passwd=MD5(CONCAT(salt,?));`" +
" with value replacement of `username` and `password` in string type.")
.version("1.6.0")
.stringConf
.createOptional
Expand Down