Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We will bump the version of the CreateTokenRequest API to include the owner details and in CreateDelegationTokenRequest and "Token requester"  in reponseCreateDelegationTokenResponse.  For old versions, we will skip the owner and owner will be same as token request principal.

...

Code Block
languagejava
linenumberstrue
public class TokenInformation {

    private KafkaPrincipal owner;
    private KafkaPrincipal tokenRequester; /// New
    private Collection<KafkaPrincipal> renewers;
    private long issueTimestamp;
    private long maxTimestamp;
    private long expiryTimestamp;
    private String tokenId;

    public TokenInformation(String tokenId, KafkaPrincipal owner, KafkaPrincipal tokenRequester,
        Collection<KafkaPrincipal> renewers, long issueTimestamp, long maxTimestamp, long expiryTimestamp) {....
     ....
     ....
    }
    
}

ACL Changes:

We like to add two new Operations "CREATE_TOKENS", "DESCRIBE_TOKENS" on cluster resource, to allow users create token for other users and describe others tokens.

...