mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-14 06:57:31 +00:00
tailcfg: report StateEncrypted in Hostinfo (#16434)
Report whether the client is configured with state encryption (which varies by platform and can be optional on some). Wire it up to `--encrypt-state` in tailscaled, which is set for Linux/Windows, and set defaults for other platforms. Macsys will also report this if full Keychain migration is done. Updates #15830 Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
@@ -159,6 +159,8 @@ func newStore(logf logger.Logf, path string) (ipn.StateStore, error) {
|
||||
// tpmStore is an ipn.StateStore that stores the state in a secretbox-encrypted
|
||||
// file using a TPM-sealed symmetric key.
|
||||
type tpmStore struct {
|
||||
ipn.EncryptedStateStore
|
||||
|
||||
logf logger.Logf
|
||||
path string
|
||||
key [32]byte
|
||||
|
Reference in New Issue
Block a user