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

Using withOauthTokenProvider instead of withOauthToken to support token refresh #6883

Closed
wants to merge 2 commits into from

Conversation

turboFei
Copy link
Member

@turboFei turboFei commented Jan 9, 2025

Why are the changes needed?

Address comments: #6877 (reply in thread)

I guess this is a Kyuubi implementation issue, we just read the content from the kyuubi.kubernetes.authenticate.oauthTokenFile and call ConfigBuilder.withOauthToken, I guess this approach does not support token refresh...

How was this patch tested?

Existing GA.

Was this patch authored or co-authored using generative AI tooling?

No.

@turboFei turboFei changed the title withOauthTokenProvider Using withOauthTokenProvider instead of withOauthToken to support reload the token from file Jan 9, 2025
@turboFei turboFei changed the title Using withOauthTokenProvider instead of withOauthToken to support reload the token from file Using withOauthTokenProvider instead of withOauthToken to support token refresh Jan 9, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2025

Codecov Report

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

Project coverage is 0.00%. Comparing base (a051253) to head (69dd28d).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...scala/org/apache/kyuubi/util/KubernetesUtils.scala 0.00% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #6883   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         688     688           
  Lines       42551   42552    +1     
  Branches     5801    5801           
======================================
- Misses      42551   42552    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@turboFei turboFei requested a review from pan3793 January 13, 2025 09:05
@pan3793 pan3793 added this to the v1.9.4 milestone Jan 14, 2025
@pan3793 pan3793 closed this in 2617427 Jan 14, 2025
pan3793 pushed a commit that referenced this pull request Jan 14, 2025
… to support token refresh

### Why are the changes needed?

Address comments: #6877 (reply in thread)

> I guess this is a Kyuubi implementation issue, we just read the content from the kyuubi.kubernetes.authenticate.oauthTokenFile and call ConfigBuilder.withOauthToken, I guess this approach does not support token refresh...

### How was this patch tested?

Existing GA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #6883 from turboFei/k8s_token_provider.

Closes #6883

69dd28d [Wang, Fei] comments
a01040f [Wang, Fei] withOauthTokenProvider

Authored-by: Wang, Fei <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit 2617427)
Signed-off-by: Cheng Pan <[email protected]>
pan3793 pushed a commit that referenced this pull request Jan 14, 2025
… to support token refresh

### Why are the changes needed?

Address comments: #6877 (reply in thread)

> I guess this is a Kyuubi implementation issue, we just read the content from the kyuubi.kubernetes.authenticate.oauthTokenFile and call ConfigBuilder.withOauthToken, I guess this approach does not support token refresh...

### How was this patch tested?

Existing GA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #6883 from turboFei/k8s_token_provider.

Closes #6883

69dd28d [Wang, Fei] comments
a01040f [Wang, Fei] withOauthTokenProvider

Authored-by: Wang, Fei <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit 2617427)
Signed-off-by: Cheng Pan <[email protected]>
@pan3793
Copy link
Member

pan3793 commented Jan 14, 2025

thanks, merged to master/1.10.2/1.9.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants