Skip to content

Commit

Permalink
Expose RoleSet.EnumerateDatabaseUsers to Teleport Terminal (#12070)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravicious committed Apr 27, 2022
1 parent 9daa6d0 commit 0437e0c
Show file tree
Hide file tree
Showing 8 changed files with 887 additions and 244 deletions.
8 changes: 7 additions & 1 deletion lib/teleterm/api/proto/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ import "v1/app.proto";
import "v1/server.proto";
import "v1/auth_settings.proto";

// TerminalService desribes teleterm service
// TerminalService describes Teleterm service
service TerminalService {
// ListRootClusters lists root clusters
rpc ListRootClusters(ListClustersRequest) returns (ListClustersResponse);
// ListLeafClusters lists leaf clusters
rpc ListLeafClusters(ListLeafClustersRequest) returns (ListClustersResponse);
// ListDatabases lists databases
rpc ListDatabases(ListDatabasesRequest) returns (ListDatabasesResponse);
// ListDatabaseUsers lists allowed users for the given database based on the role set.
rpc ListDatabaseUsers(ListDatabaseUsersRequest) returns (ListDatabaseUsersResponse);
// ListGateways lists gateways
rpc ListGateways(ListGatewaysRequest) returns (ListGatewaysResponse);
// ListServers lists servers
Expand Down Expand Up @@ -117,6 +119,10 @@ message ListLeafClustersRequest { string cluster_uri = 1; }

message ListDatabasesResponse { repeated Database databases = 1; }

message ListDatabaseUsersRequest { string db_uri = 1; }

message ListDatabaseUsersResponse { repeated string users = 1; }

message CreateGatewayRequest {
string target_uri = 1;
string target_user = 2;
Expand Down
Loading

0 comments on commit 0437e0c

Please sign in to comment.