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
15 changes: 14 additions & 1 deletion wireguard/gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import "google/protobuf/empty.proto";
message ConfigurationRequest {
// DEPRECATED(2.0): Gateway needs to authenticate with `auth_token`.
optional string name = 1 [deprecated = true];
string auth_token = 2;
string hostname = 3;
}

Expand Down Expand Up @@ -92,3 +91,17 @@ message CoreRequest {
service Gateway {
rpc Bidi(stream CoreResponse) returns (stream CoreRequest);
}

message InitialSetupInfo {
string cert_hostname = 1;
}

message DerPayload {
bytes der_data = 1;
}

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