Let an MDM policy set the groups the daemon sockets are restricted to

This commit is contained in:
Viktor Liu
2026-09-08 21:23:08 +02:00
parent b49b5494b4
commit 72bf5adad7
7 changed files with 157 additions and 19 deletions
+1
View File
@@ -34,6 +34,7 @@ var allKeys = []string{
KeyLazyConnection,
KeyRemoteJobsAllowed,
KeyBundleUploadURL,
KeyAllowGroups,
}
// canonicalKey maps the lowercase form of a managed-config value name to
+14
View File
@@ -68,6 +68,20 @@ const (
// (which defaults to disabled). Stored on Config as RemoteJobsAllowed.
KeyRemoteJobsAllowed = "allowRemoteJobs"
// KeyAllowGroups restricts the daemon control socket and the JSON socket
// to the listed principals, overriding the install-time --allow-group in
// both directions: a managed host can be restricted without a reinstall,
// and an empty value lifts a restriction the install set. Absent = defer to
// the install-time flag.
//
// Read as a list of principals in kind:value form, "gid:1001" on Unix and
// "sid:S-1-5-21-..." on Windows, either as a real list or comma-separated.
// Resolved principals rather than group names because this is read on the
// daemon's boot path, where resolving a name can block on an unreachable
// LDAP or Active Directory backend. A name is still accepted, and still
// resolved, for a host where that is not a concern.
KeyAllowGroups = "allowGroups"
// KeyBundleUploadURL overrides the debug-bundle upload service URL for
// remote jobs, taking precedence over the management-supplied value. Read
// as a string; must be an https URL with a host. Absent = defer to the