Skip to content

Commit 8a529c1

Browse files
authored
[supervisor] add http binding for create private ssh keys (#18405)
There is not grcp web client for Java. I would like to use plain http request to resolve it in order to establish SSH over Web Socket tunnel.
1 parent 1d68d00 commit 8a529c1

File tree

4 files changed

+118
-97
lines changed

4 files changed

+118
-97
lines changed

components/supervisor-api/control.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ syntax = "proto3";
66

77
package supervisor;
88

9+
import "google/api/annotations.proto";
910
import "status.proto";
1011
import "info.proto";
1112

@@ -19,7 +20,11 @@ service ControlService {
1920
rpc ExposePort(ExposePortRequest) returns (ExposePortResponse) {}
2021

2122
// CreateSSHKeyPair Create a pair of SSH Keys and put them in ~/.ssh/authorized_keys, this will only be generated once in the entire workspace lifecycle
22-
rpc CreateSSHKeyPair(CreateSSHKeyPairRequest) returns (CreateSSHKeyPairResponse) {}
23+
rpc CreateSSHKeyPair(CreateSSHKeyPairRequest) returns (CreateSSHKeyPairResponse) {
24+
option (google.api.http) = {
25+
get: "/v1/ssh_keys/create"
26+
};
27+
}
2328

2429
// CreateDebugEnv creates a debug workspace envs
2530
rpc CreateDebugEnv(CreateDebugEnvRequest) returns (CreateDebugEnvResponse) {}

components/supervisor-api/go/control.pb.go

Lines changed: 64 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/supervisor-api/go/control.pb.gw.go

Lines changed: 18 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)