mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-21 06:01:42 +00:00
util/syspolicy: add 'ResetToDefaults' (#11194)
Updates ENG-2133. Adds the ResetToDefaults visibility policy currently only available on macOS, so that the Windows client can read its value. Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
This commit is contained in:
parent
10d130b845
commit
0359c2f94e
@ -42,10 +42,11 @@ const (
|
|||||||
// The default is "show" unless otherwise stated. Enforcement of these
|
// The default is "show" unless otherwise stated. Enforcement of these
|
||||||
// policies is typically performed by the UI code for the relevant operating
|
// policies is typically performed by the UI code for the relevant operating
|
||||||
// system.
|
// system.
|
||||||
AdminConsoleVisibility Key = "AdminConsole"
|
AdminConsoleVisibility Key = "AdminConsole"
|
||||||
NetworkDevicesVisibility Key = "NetworkDevices"
|
NetworkDevicesVisibility Key = "NetworkDevices"
|
||||||
TestMenuVisibility Key = "TestMenu"
|
TestMenuVisibility Key = "TestMenu"
|
||||||
UpdateMenuVisibility Key = "UpdateMenu"
|
UpdateMenuVisibility Key = "UpdateMenu"
|
||||||
|
ResetToDefaultsVisibility Key = "ResetToDefaults"
|
||||||
// RunExitNodeVisibility controls if the "run as exit node" menu item is
|
// RunExitNodeVisibility controls if the "run as exit node" menu item is
|
||||||
// visible, without controlling the setting itself. This is preserved for
|
// visible, without controlling the setting itself. This is preserved for
|
||||||
// backwards compatibility but prefer EnableRunExitNode in new deployments.
|
// backwards compatibility but prefer EnableRunExitNode in new deployments.
|
||||||
@ -80,7 +81,7 @@ const (
|
|||||||
// ManagedByOrganizationName is set. It can be used to provide a pointer to support resources
|
// ManagedByOrganizationName is set. It can be used to provide a pointer to support resources
|
||||||
// for Tailscale within the organization.
|
// for Tailscale within the organization.
|
||||||
ManagedByCaption Key = "ManagedByCaption"
|
ManagedByCaption Key = "ManagedByCaption"
|
||||||
// ManagedByCaption is a valid URL pointing to a support help desk for Tailscale within the
|
// ManagedByURL is a valid URL pointing to a support help desk for Tailscale within the
|
||||||
// organization. A button in the client UI provides easy access to this URL.
|
// organization. A button in the client UI provides easy access to this URL.
|
||||||
ManagedByURL Key = "ManagedByURL"
|
ManagedByURL Key = "ManagedByURL"
|
||||||
)
|
)
|
||||||
|
@ -22,6 +22,7 @@ var stringKeys = []Key{
|
|||||||
PreferencesMenuVisibility,
|
PreferencesMenuVisibility,
|
||||||
ExitNodeMenuVisibility,
|
ExitNodeMenuVisibility,
|
||||||
AutoUpdateVisibility,
|
AutoUpdateVisibility,
|
||||||
|
ResetToDefaultsVisibility,
|
||||||
KeyExpirationNoticeTime,
|
KeyExpirationNoticeTime,
|
||||||
PostureChecking,
|
PostureChecking,
|
||||||
ManagedByOrganizationName,
|
ManagedByOrganizationName,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user