From b4048cb9f5d77920e913f98ac5be79149372b418 Mon Sep 17 00:00:00 2001 From: Aleksander <170264518+t-aleksander@users.noreply.github.com> Date: Tue, 27 Jan 2026 11:08:23 +0100 Subject: [PATCH] gateway wizard --- wireguard/gateway.proto | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/wireguard/gateway.proto b/wireguard/gateway.proto index 034ac00..aac7e14 100644 --- a/wireguard/gateway.proto +++ b/wireguard/gateway.proto @@ -92,16 +92,25 @@ service Gateway { rpc Bidi(stream CoreResponse) returns (stream CoreRequest); } -message InitialSetupInfo { +message DerPayload { + bytes der_data = 1; +} + +message CertificateInfo { string cert_hostname = 1; } -message DerPayload { - bytes der_data = 1; +message LogEntry { + string level = 1; + string target = 2; + string message = 3; + string timestamp = 4; + map fields = 5; } // Service used for initial Gateway setup, for configuring TLS certificate on Gateway for gRPC communication. service GatewaySetup { - rpc Start(InitialSetupInfo) returns (DerPayload); + rpc Start(google.protobuf.Empty) returns (stream LogEntry); + rpc GetCsr(CertificateInfo) returns (DerPayload); rpc SendCert(DerPayload) returns (google.protobuf.Empty); }