You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2023/02/10 01:59:07 UTC

[kudu] branch master updated: jwt: expose MiniOidc to Kudu test binary

This is an automated email from the ASF dual-hosted git repository.

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new 968420071 jwt: expose MiniOidc to Kudu test binary
968420071 is described below

commit 9684200713b5e1bf258437527127bd98acfa1e42
Author: Andrew Wong <aw...@cloudera.com>
AuthorDate: Fri Apr 29 18:40:44 2022 -0700

    jwt: expose MiniOidc to Kudu test binary
    
    Change-Id: I397913fb5f1f2634b71b35f8c91f895b44e73be9
    Reviewed-on: http://gerrit.cloudera.org:8080/18474
    Reviewed-by: Wenzhe Zhou <wz...@cloudera.com>
    Tested-by: Alexey Serbin <al...@apache.org>
    Reviewed-by: Alexey Serbin <al...@apache.org>
---
 src/kudu/tools/tool.proto | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/src/kudu/tools/tool.proto b/src/kudu/tools/tool.proto
index 465c5bbf9..1fa7878a1 100644
--- a/src/kudu/tools/tool.proto
+++ b/src/kudu/tools/tool.proto
@@ -68,6 +68,21 @@ message CreateClusterRequestPB {
     optional string renew_lifetime = 2;
   }
   optional MiniKdcOptionsPB mini_kdc_options = 8;
+
+  // Options pertaining to a single JWKS.
+  message JwksOptionsPB {
+    optional string account_id = 1;
+    optional bool is_valid_key = 2;
+  }
+
+  message MiniOidcOptionsPB {
+    // The default expiration time for JWTs.
+    optional string expiration_time = 1;
+
+    // Options for JWKS to host.
+    repeated JwksOptionsPB jwks_options = 2;
+  }
+  optional MiniOidcOptionsPB mini_oidc_options = 11;
 }
 
 // Destroys a cluster created via 'create_cluster'.
@@ -90,6 +105,7 @@ enum DaemonType {
   MASTER = 1;
   TSERVER = 2;
   KDC = 3;
+  JWKS = 4;
 }
 
 // Identifier for a cluster daemon, unique to the cluster.
@@ -178,6 +194,14 @@ message KinitRequestPB {
   optional string username = 1 [ default = "test-admin" ];
 };
 
+message GetJwtServerResponsePB {
+  // Server info.
+  optional DaemonInfoPB servers = 1;
+}
+
+// Gets information on each started tablet server.
+message GetJwtServerRequestPB {}
+
 // Call SetFlag() on the specific daemon.
 message SetDaemonFlagRequestPB {
   // The identifier of the daemon to sent the request to.
@@ -523,3 +547,14 @@ message TablesInfoPB {
 
   repeated TableInfoPB tables = 1;
 }
+
+message CreateJwtPB {
+  // The account ID with which a JWT will be created.
+  optional string account_id = 1;
+
+  // The subject authenticated by this JWT.
+  optional string subject = 2;
+
+  // Whether or not the returned token should supply a valid key ID.
+  optional bool is_valid_key = 3;
+}