tailscale/util/syspolicy
Nick Khyl aeb15dea30 util/syspolicy/source: add package for reading policy settings from external stores
We add package defining interfaces for policy stores, enabling creation of policy sources
and reading settings from them. It includes a Windows-specific PlatformPolicyStore for GP and MDM
policies stored in the Registry, and an in-memory TestStore for testing purposes.

We also include an internal package that tracks and reports policy usage metrics when a policy setting
is read from a store. Initially, it will be used only on Windows and Android, as macOS, iOS, and tvOS
report their own metrics. However, we plan to use it across all platforms eventually.

Updates #12687

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2024-09-03 14:51:14 -05:00
..
internal util/syspolicy/source: add package for reading policy settings from external stores 2024-09-03 14:51:14 -05:00
setting util/syspolicy/source: add package for reading policy settings from external stores 2024-09-03 14:51:14 -05:00
source util/syspolicy/source: add package for reading policy settings from external stores 2024-09-03 14:51:14 -05:00
caching_handler_test.go util/syspolicy: add caching handler (#10288) 2023-11-17 12:31:51 -05:00
caching_handler.go util/syspolicy: add ReadStringArray interface (#11857) 2024-04-23 22:23:48 -07:00
handler_test.go util: add syspolicy package (#9550) 2023-09-29 13:40:35 -04:00
handler_windows.go util/syspolicy: add ReadStringArray interface (#11857) 2024-04-23 22:23:48 -07:00
handler.go all: do not depend on the testing package 2024-05-24 05:23:36 -07:00
policy_keys_windows.go util/syspolicy: add 'ResetToDefaults' (#11194) 2024-02-22 10:10:31 -08:00
policy_keys.go ipnlocal: support setting authkey at login using syspolicy (#13061) 2024-08-19 23:49:33 -07:00
syspolicy_test.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 2024-08-12 21:02:35 -05:00
syspolicy.go util/syspolicy/setting: add package that contains types for the next syspolicy PRs 2024-08-12 21:02:35 -05:00