kyuubi icon indicating copy to clipboard operation
kyuubi copied to clipboard

[KYUUBI #6689] Extract kyuubiClientPrincipal/kyuubiClientKeytab from JDBC connection properties

Open Madhukar525722 opened this issue 1 year ago • 8 comments
trafficstars

…ab from JDBC connection properties

:mag: Description

Issue References 🔗

This pull request fixes #6689

Describe Your Solution 🔧

It extracts the value AUTH_KYUUBI_CLIENT_PRINCIPAL and AUTH_KYUUBI_CLIENT_KEYTAB, then passes it to connParams , to be used for establishing connections.

Types of changes :bookmark:

  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

Behavior Without This Pull Request :coffin:

Behavior With This Pull Request :tada:

Related Unit Tests


Checklist 📝

Be nice. Be informative.

Madhukar525722 avatar Sep 12 '24 21:09 Madhukar525722

Codecov Report

Attention: Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (550f1fc) to head (062cd08). Report is 109 commits behind head on master.

Files with missing lines Patch % Lines
...c/main/java/org/apache/kyuubi/jdbc/hive/Utils.java 0.00% 18 Missing :warning:
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #6693     +/-   ##
========================================
  Coverage    0.00%   0.00%             
========================================
  Files         684     688      +4     
  Lines       42237   44129   +1892     
  Branches     5755    6077    +322     
========================================
- Misses      42237   44129   +1892     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Sep 12 '24 23:09 codecov-commenter

and cc @pan3793

wForget avatar Sep 13 '24 06:09 wForget

Hi @pan3793 , Please review the change

Madhukar525722 avatar Sep 15 '24 07:09 Madhukar525722

what about kyuubiServerPrincipal and pricipal?

pan3793 avatar Sep 23 '24 09:09 pan3793

Hi @pan3793, Actually the need for kyuubiServerPrincipal was not mentioned in the issue. I will be adding it as well, soon. cc @wForget

Madhukar525722 avatar Sep 23 '24 19:09 Madhukar525722

what about kyuubiServerPrincipal and pricipal?

My original intention was to pass in the client's authentication information in properties. kyuubiServerPrincipal can be provided by zk and we don't need to get it here.

wForget avatar Sep 26 '24 04:09 wForget

kyuubiServerPrincipal can be provided by zk

this is disabled by default, because the lower Hive client does not support parsing that.

It would be weird if kyuubiClientPrincipal works but kyuubiServerPrincipal does not. Let's keep them synced to avoid surprising users.

pan3793 avatar Sep 29 '24 07:09 pan3793

Hi @pan3793 , I have updated the required. Please review

Madhukar525722 avatar Oct 04 '24 08:10 Madhukar525722

HI @pan3793, Gentle ping

Madhukar525722 avatar Oct 28 '24 19:10 Madhukar525722

LGTM, thank you, @Madhukar525722, please update the PR title and desc to match the code

pan3793 avatar Oct 29 '24 02:10 pan3793

HI @pan3793, I have changed as suggested.

Madhukar525722 avatar Nov 02 '24 20:11 Madhukar525722

Thanks for the PR! This PR is being closed due to inactivity. This isn't a judgement on the merit of the PR in any way. If this is still an issue with the latest version of Kyuubi, please reopen it and ask a committer to remove the Stale tag!

Thank you for using Kyuubi!

github-actions[bot] avatar Feb 11 '25 00:02 github-actions[bot]

Thanks for the PR! This PR is being closed due to inactivity. This isn't a judgement on the merit of the PR in any way. If this is still an issue with the latest version of Kyuubi, please reopen it and ask a committer to remove the Stale tag!

Thank you for using Kyuubi!

github-actions[bot] avatar May 23 '25 00:05 github-actions[bot]