From faebcc5449ae803e15cf5faf838c0c508401caf1 Mon Sep 17 00:00:00 2001 From: Jacek Chmielewski Date: Sat, 14 Feb 2026 07:55:58 +0100 Subject: [PATCH] gateway purge RPC --- wireguard/gateway.proto | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/wireguard/gateway.proto b/wireguard/gateway.proto index aac7e14..2502c3e 100644 --- a/wireguard/gateway.proto +++ b/wireguard/gateway.proto @@ -83,13 +83,18 @@ message CoreRequest { } } -/* - * Bi-directional communication between Core and Gateway. - * For security reasons, the connection has to be initiated by Core, - * so requests and responses are actually send in reverse. - */ service Gateway { + /* + * Bi-directional communication between Core and Gateway. + * For security reasons, the connection has to be initiated by Core, + * so requests and responses are actually send in reverse. + */ rpc Bidi(stream CoreResponse) returns (stream CoreRequest); + /* + * Purges existing on-disk gRPC TLS credentials and signals the server to re-enter setup mode + * so that core can provision new ones. + */ + rpc Purge(google.protobuf.Empty) returns (google.protobuf.Empty); } message DerPayload {