Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose RoleSet.EnumerateDatabaseUsers to Teleport Terminal #12070

Merged
merged 3 commits into from
Apr 21, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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