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

feat: add Delegation Token APIs to ClusterAdmin #2736

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Chrisss93
Copy link

This PR adds the KIP-48 APIs regarding token delegation to the ClusterAdmin. These APIs have been available on brokers > v1.1 and the AdminClient in Java has had these facilities since v2.0.

This commit adds the KIP-48 APIs regarding token delegation to `ClusterAdmin`.

These APIs have been available on Brokers since v1.1 and the Java
AdminClient has had these facilities since v2.0.

https://cwiki.apache.org/confluence/display/KAFKA/KIP-48+Delegation+token+support+for+Kafka

Signed-off-by: Chris <chrissslee93@gmail.com>
@Chrisss93 Chrisss93 marked this pull request as ready for review November 29, 2023 02:49
@dnwe
Copy link
Collaborator

dnwe commented Dec 18, 2023

@Chrisss93 thanks for the contribution! A first pass review over the changes and they look good. One initial request, can we cover all the version options from v0, v1, v2, v3 (where appropriate) both in the requiredVersion case statements and in the admin.go constructions where we choose a version to send on the request?

APIs 1.1 2.0 2.4 2.5 3.3
CreateDelegationTokenRequest v0 v1 v2 v2 v3
RenewDelegationTokenRequest v0 v1 v1 v2 v2
ExpireDelegationTokenRequest v0 v1 v1 v2 v2
DescribeDelegationTokenRequest v0 v1 v1 v2 v3

@dnwe
Copy link
Collaborator

dnwe commented Jan 30, 2024

@Chrisss93 do you think you might be able to accommodate the above?

@dnwe dnwe changed the title Add Delegation Token APIs to the ClusterAdmin feat: Add Delegation Token APIs to the ClusterAdmin Feb 22, 2024
@dnwe dnwe changed the title feat: Add Delegation Token APIs to the ClusterAdmin feat: add Delegation Token APIs to ClusterAdmin Feb 22, 2024
@dnwe dnwe force-pushed the delegation-token-apis branch 2 times, most recently from 641d24a to fc430c1 Compare February 22, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants