From 9a9ce12a3efdf9bd770e6c9e689d976292c040af Mon Sep 17 00:00:00 2001 From: Mike O'Driscoll Date: Thu, 6 Feb 2025 10:52:42 -0500 Subject: [PATCH] cmd/derper: close setec after use (#14929) Since dynamic reload of setec is not supported in derper at this time, close the server after the secret is loaded. Updates tailscale/corp#25756 Signed-off-by: Mike O'Driscoll --- cmd/derper/derper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/derper/derper.go b/cmd/derper/derper.go index f1d848a5f..f08be7d08 100644 --- a/cmd/derper/derper.go +++ b/cmd/derper/derper.go @@ -224,6 +224,7 @@ func main() { } meshKey = st.Secret(meshKeySecret).GetString() log.Println("Got mesh key from setec store") + st.Close() } else if *meshPSKFile != "" { b, err := setec.StaticFile(*meshPSKFile) if err != nil {