mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-28 05:00:08 +00:00
cmd/tailscaled: default --encrypt-state to true if TPM is available (#17376)
Whenever running on a platform that has a TPM (and tailscaled can access it), default to encrypting the state. The user can still explicitly set this flag to disable encryption. Updates https://github.com/tailscale/corp/issues/32909 Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
@@ -136,7 +136,9 @@ const (
|
||||
FlushDNSOnSessionUnlock Key = "FlushDNSOnSessionUnlock"
|
||||
|
||||
// EncryptState is a boolean setting that specifies whether to encrypt the
|
||||
// tailscaled state file with a TPM device.
|
||||
// tailscaled state file.
|
||||
// Windows and Linux use a TPM device, Apple uses the Keychain.
|
||||
// It's a noop on other platforms.
|
||||
EncryptState Key = "EncryptState"
|
||||
|
||||
// PostureChecking indicates if posture checking is enabled and the client shall gather
|
||||
|
||||
Reference in New Issue
Block a user