waggle-dance icon indicating copy to clipboard operation
waggle-dance copied to clipboard

Use different tokens instead of forcing WD and all HMS to use the same delegatetoken in the kerberos environment

Open flaming-archer opened this issue 10 months ago • 4 comments

:pencil: Description

1.Use WD's own token. 2. Support HMS to use different tokens separately. 3. Refactored the delegatetoken section, greatly simplifying the code logic. 4. After extensive testing in our environment, it is OK.

:link: Related Issues

https://github.com/ExpediaGroup/waggle-dance/issues/309

flaming-archer avatar Apr 12 '24 06:04 flaming-archer

@patduin Could you review this or have someone else review it as well. We have been making this change for several months, and tested many times. I think it can really help many people.

flaming-archer avatar Apr 12 '24 08:04 flaming-archer

The failed reason seems to have nothing to do with my pr Error: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (injected-nexus-deploy) on project waggle-dance-rpm: Failed to deploy artifacts: Could not transfer artifact com.hotels:waggle-dance-api:jar:javadoc:4.0.0-20240412.083012-2 from/to sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots): authentication failed for https://oss.sonatype.org/content/repositories/snapshots/com/hotels/waggle-dance-api/4.0.0-SNAPSHOT/waggle-dance-api-4.0.0-20240412.083012-2-javadoc.jar, status: 401 Unauthorized -> [Help 1]

flaming-archer avatar Apr 12 '24 15:04 flaming-archer

Yup I'll try to get some eyes on this next week, thank you!!!

On Fri, 12 Apr 2024, 10:40 tian bao, @.***> wrote:

@patduin https://github.com/patduin Could you review this or have someone else review it as well. We have been making this change for several months, and tested many times. I think it can really help many people.

— Reply to this email directly, view it on GitHub https://github.com/ExpediaGroup/waggle-dance/pull/313#issuecomment-2051300260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP6JGEGIGMZCBXYCC2JUVLY46MY3AVCNFSM6AAAAABGDSXUJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJRGMYDAMRWGA . You are receiving this because you were mentioned.Message ID: @.***>

patduin avatar Apr 12 '24 18:04 patduin

I cannot accept this PR as it is now. This needs some refactoring to separate kerberos code from the non kerberos paths and remove all the static class dependencies introduced.

Wait for me for a while, I will make some changes and submit it again.

flaming-archer avatar Apr 16 '24 14:04 flaming-archer

@patduin @jmnunezizu I have completed the modifications, please help me take a look

  1. The static part of the code has been replaced.
  2. Strategy model for SaslThriftMetastoreClientManager.

flaming-archer avatar May 10 '24 09:05 flaming-archer

At the same time, I changed the code to not require manual kinit and can automatically renew tickets.

flaming-archer avatar May 10 '24 09:05 flaming-archer

I think the failed test case getTableMeta and Could not transfer artifact are not related to me.

flaming-archer avatar May 10 '24 09:05 flaming-archer

@patduin @jmnunezizu Could you help review it? This feature is really useful for users in the kerberos environment.

flaming-archer avatar May 13 '24 01:05 flaming-archer

Hi @flaming-archer – we'll get to it as soon as we can. Sorry for the delay and thanks for the additional changes and contribution.

jmnunezizu avatar May 13 '24 12:05 jmnunezizu

Hi @flaming-archer – we'll get to it as soon as we can. Sorry for the delay and thanks for the additional changes and contribution.

It's been a week now....

flaming-archer avatar May 21 '24 09:05 flaming-archer

@patduin @jmnunezizu This feature is really great. Could you help me take a look.

flaming-archer avatar May 24 '24 02:05 flaming-archer

I've merged the other hive3 PR please have a look at the conflicts, thank you.

patduin avatar May 27 '24 09:05 patduin

I've merged the other hive3 PR please have a look at the conflicts, thank you.

Sorry, I only saw it now. I saw that PR, it was submitted by my colleague, and I know her changes. I will modify it together based on this. Wait for me for a moment.

flaming-archer avatar May 27 '24 14:05 flaming-archer

@patduin @jmnunezizu Modified, pls take a look.

flaming-archer avatar May 28 '24 16:05 flaming-archer

@patduin pls take a look at it.

flaming-archer avatar May 29 '24 02:05 flaming-archer