mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-22 02:50:42 +00:00
ipn/store: automatically migrate between plaintext and encrypted state (#16318)
Add a new `--encrypt-state` flag to `cmd/tailscaled`. Based on that flag, migrate the existing state file to/from encrypted format if needed. Updates #15830 Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
@@ -908,6 +908,9 @@ type TPMInfo struct {
|
||||
SpecRevision int `json:",omitempty"`
|
||||
}
|
||||
|
||||
// Present reports whether a TPM device is present on this machine.
|
||||
func (t *TPMInfo) Present() bool { return t != nil }
|
||||
|
||||
// ServiceName is the name of a service, of the form `svc:dns-label`. Services
|
||||
// represent some kind of application provided for users of the tailnet with a
|
||||
// MagicDNS name and possibly dedicated IP addresses. Currently (2024-01-21),
|
||||
|
Reference in New Issue
Block a user