From 7b87c04861b0a62136bd75a0dd3103aaae075b07 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 27 Oct 2021 20:48:01 -0700 Subject: [PATCH] tailcfg: add RegisterRequest.Ephemeral to request new ephemeral node So js/wasm clients can log in for a bit using regular Gmail/GitHub auth without using an ephemeral key but still have their node cleaned up when they're done. Updates #3157 Change-Id: I49e3d14e9d355a9b8bff0ea810b0016bfe8d47f2 Signed-off-by: Brad Fitzpatrick --- tailcfg/tailcfg.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index e5d7e35ef..9131f816b 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -651,6 +651,11 @@ type RegisterRequest struct { Followup string // response waits until AuthURL is visited Hostinfo *Hostinfo + // Ephemeral is whether the client is requesting that this + // node be considered ephemeral and be automatically deleted + // when it stops being active. + Ephemeral bool `json:",omitempty"` + // The following fields are not used for SignatureNone and are required for // SignatureV1: SignatureType SignatureType `json:",omitempty"`