Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KYUUBI #3705] Add docs for JDBC authentication usage with in-memory database #3706

Closed
wants to merge 4 commits into from

Conversation

bowenliang123
Copy link
Contributor

Why are the changes needed?

to close #3705 .

Add docs for JDBC authentication usage with in-memory database with config example for token validation example.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before make a pull request

@github-actions github-actions bot added the kind:documentation Documentation is a feature! label Oct 26, 2022
@bowenliang123
Copy link
Contributor Author

Followed with #3701 , and please consider merging to master and 1.6 .

kyuubi.authentication.jdbc.query = SELECT 1 FROM (SELECT ${user} as username, 'secret_key' as secret_key, SUBSTRING(${password}, 0, 12) as expire_time, SUBSTRING(${password}, 13) as signed
) WHERE signed = RAWTOHEX(HASH('MD5', CONCAT(secret_key, username, expire_time))) AND PARSEDATETIME(expire_time,'yyyyMMddHHmm') > NOW();
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kyuubi conf file support using back slash to set multi-lines value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated as suggested.

@pan3793 pan3793 added this to the v1.6.2 milestone Oct 27, 2022
@pan3793
Copy link
Member

pan3793 commented Oct 27, 2022

Thanks, merging to master/1.6

@pan3793 pan3793 closed this in 738e351 Oct 27, 2022
pan3793 pushed a commit that referenced this pull request Oct 27, 2022
…database

### _Why are the changes needed?_

to close #3705 .

Add docs for JDBC authentication usage with in-memory database with config example for token validation example.

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #3706 from bowenliang123/jdbc-inmem.

Closes #3705

3de9bce [Bowen Liang] use backslash for multi-line config value
26a4d1b [Bowen Liang] nit
e078e98 [Bowen Liang] add JDBC auth usage with in-memory db for token validation
67624fa [liangbowen] init jdbc inmem doc

Lead-authored-by: Bowen Liang <liangbowen@gf.com.cn>
Co-authored-by: liangbowen <liangbowen@gf.com.cn>
Signed-off-by: Cheng Pan <chengpan@apache.org>
(cherry picked from commit 738e351)
Signed-off-by: Cheng Pan <chengpan@apache.org>
@bowenliang123 bowenliang123 deleted the jdbc-inmem branch October 27, 2022 03:20
@pan3793 pan3793 modified the milestones: v1.6.2, v1.6.1 Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:documentation Documentation is a feature!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOCS] Add docs for JDBC authentication usage with in-memory database
2 participants