Skip to content
Merged
Changes from all 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
24 changes: 19 additions & 5 deletions core/proxy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,25 @@ message CoreRequest {
}
}

/*
* Bi-directional communication between core and proxy.
* For security reasons, the connection has to be initiated by core,
* so requests and responses are actually sent in reverse.
*/
message InitialSetupInfo {
string cert_hostname = 1;
}

message DerPayload {
bytes der_data = 1;
}

service Proxy {
/*
* Bi-directional communication between core and proxy.
* For security reasons, the connection has to be initiated by core,
* so requests and responses are actually sent in reverse.
*/
rpc Bidi(stream CoreResponse) returns (stream CoreRequest);
}

// Service used for initial Proxy setup, used for configuring TLS certificate on Proxy for gRPC communication.
service ProxySetup {
rpc Start(InitialSetupInfo) returns (DerPayload);
rpc SendCert(DerPayload) returns (google.protobuf.Empty);
}