1
0
Fork 0
This repository has been archived on 2024-01-05. You can view files and clone it, but cannot push or open issues or pull requests.
command_gateway/proto/internal.proto

43 lines
818 B
Protocol Buffer
Raw Normal View History

2023-01-30 21:28:03 +01:00
syntax = "proto3";
package internal;
service Unix {
// Message send by the command gateway to the daemon
rpc authorize(AuthorizeRequest) returns (AuthorizeResponse);
// Message send when user quit shell
rpc terminate(TerminateRequest) returns (TerminateResponse);
}
message AuthorizeRequest {
// identifier of the project
string identifier = 1;
// ssh_keys from ssh agent
2023-01-31 17:35:21 +01:00
string token = 2;
// command like /bin/bash
string command = 3;
2023-01-30 21:28:03 +01:00
}
enum AuthorizationStatus {
AUTHORIZED = 0;
PERMISSION_DENIED = 1;
}
message AuthorizeResponse {
AuthorizationStatus status = 1;
string session_uuid = 2;
2023-01-30 21:28:03 +01:00
}
message TerminateRequest {
string session_uuid = 1;
string log_file = 2;
2023-01-30 21:28:03 +01:00
}
enum TerminateStatus {
OK = 0;
FAILED = 1;
}
message TerminateResponse {
TerminateStatus status = 1;
}