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 <mikeo@tailscale.com>
pull/14935/head
Mike O'Driscoll 10 months ago committed by GitHub
parent 1bf4c6481a
commit 9a9ce12a3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 {

Loading…
Cancel
Save