Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/18472 )
Change subject: jwt: determine discovery endpoint from token ...................................................................... jwt: determine discovery endpoint from token This patch introduces a JWT verifier that manages multiple JWKSs, depending on an account ID included in a given JWT's payload. The current implementation is somewhat crude, simply instantiating new JWTHelpers per account ID, thereby creating new threads per account. Follow-on work will be required to ensure scalability (though it's unclear how many account IDs to expect in a typical deployment). Co-authored-by: Andrew Wong <[email protected]> Change-Id: I970bcc6d894c0206160196418d549b71c35ac973 Reviewed-on: http://gerrit.cloudera.org:8080/18472 Tested-by: Kudu Jenkins Reviewed-by: Attila Bukor <[email protected]> Reviewed-by: Wenzhe Zhou <[email protected]> Reviewed-by: Alexey Serbin <[email protected]> --- M src/kudu/rpc/negotiation.cc M src/kudu/rpc/server_negotiation.cc M src/kudu/rpc/server_negotiation.h M src/kudu/server/server_base.cc M src/kudu/util/jwt-util-test.cc M src/kudu/util/jwt-util.cc M src/kudu/util/jwt-util.h 7 files changed, 371 insertions(+), 11 deletions(-) Approvals: Kudu Jenkins: Verified Attila Bukor: Looks good to me, but someone else must approve Wenzhe Zhou: Looks good to me, but someone else must approve Alexey Serbin: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/18472 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I970bcc6d894c0206160196418d549b71c35ac973 Gerrit-Change-Number: 18472 Gerrit-PatchSet: 24 Gerrit-Owner: Andrew Wong <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Attila Bukor <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Marton Greber <[email protected]> Gerrit-Reviewer: Tidy Bot (241) Gerrit-Reviewer: Wenzhe Zhou <[email protected]> Gerrit-Reviewer: Zoltan Chovan <[email protected]>
