Skip to content

Commit

Permalink
feat: add create/revoke signing key to control client protos (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
wandaitzuchen authored Mar 25, 2022
1 parent 3a30565 commit af79bd9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Binary file not shown.
19 changes: 19 additions & 0 deletions proto/controlclient.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ service ScsControl {
rpc CreateCache (_CreateCacheRequest) returns (_CreateCacheResponse) {}
rpc DeleteCache (_DeleteCacheRequest) returns (_DeleteCacheResponse) {}
rpc ListCaches (_ListCachesRequest) returns (_ListCachesResponse) {}
rpc CreateSigningKey (_CreateSigningKeyRequest) returns (_CreateSigningKeyResponse) {}
rpc RevokeSigningKey (_RevokeSigningKeyRequest) returns (_RevokeSigningKeyResponse) {}
}

message _DeleteCacheRequest {
Expand Down Expand Up @@ -37,3 +39,20 @@ message _ListCachesResponse {
repeated _Cache cache = 1;
string next_token = 2;
}

message _CreateSigningKeyRequest {
uint32 ttl_minutes = 1;
}

message _CreateSigningKeyResponse {
string key_id = 1;
bytes private_key = 2;
uint64 expires_at = 3;
}

message _RevokeSigningKeyRequest {
string key_id = 1;
}

message _RevokeSigningKeyResponse {
}

0 comments on commit af79bd9

Please sign in to comment.