diff --git a/content/manuals/security/for-admins/enforce-sign-in/methods.md b/content/manuals/security/for-admins/enforce-sign-in/methods.md index ef311b4e46d..0cdd29c4ef6 100644 --- a/content/manuals/security/for-admins/enforce-sign-in/methods.md +++ b/content/manuals/security/for-admins/enforce-sign-in/methods.md @@ -47,6 +47,88 @@ There are many ways to deploy the registry key, for example using an MDM solutio 7. Test the GPO. Test the GPO on a small set of machines first to ensure it behaves as expected. You can use the `gpupdate /force` command on a test machine to manually refresh its group policy settings and check the registry to confirm the changes. 8. Once verified, you can proceed with broader deployment. Monitor the deployment to ensure the settings are applied correctly across the organization's computers. +## Configuration Profiles method (Mac only) + +> [!NOTE] +> +> The configuration profiles method is available with Docker Desktop version 4.35 and later. + +Configuration Profiles are a feature of macOS that allows administrators to distribute +configuration information to the Macs they manage. Is is the safest method to +enforce sign-in on macOS because the installed configuration profiles are +protected by Apples' System Integrity Protection (SIP) and can therefore not be +tampered with by the users. + +1. Save the the following XML code to a file with the suffix `.mobileconfig` (e.g. + `docker.mobileconfig`): + + + ```xml + + + + + PayloadContent + + + PayloadType + com.docker.config + PayloadVersion + 1 + PayloadIdentifier + com.docker.config + PayloadUUID + eed295b0-a650-40b0-9dda-90efb12be3c7 + PayloadDisplayName + Docker Desktop Configuration + PayloadDescription + Configuration profile to manage Docker Desktop settings. + PayloadOrganization + Your Company Name + allowedOrgs + first_org;second_org + + + PayloadType + Configuration + PayloadVersion + 1 + PayloadIdentifier + com.yourcompany.docker.config + PayloadUUID + 0deedb64-7dc9-46e5-b6bf-69d64a9561ce + PayloadDisplayName + Docker Desktop Config Profile + PayloadDescription + Config profile to enforce Docker Desktop settings for allowed organizations. + PayloadOrganization + Your Company Name + + + ``` + +2. Change the placeholder `Your Company Name` to the name of your company. + +3. The names of the allowed organizations are stored in the `allowedOrgs` + property. It can contain either the name of a single organization + + ```xml + allowedOrgs + yourcompany + ``` + + or a list of organization names, separated by semicolon: + + + ```xml + allowedOrgs + first_org;second_org + ``` + +4. Use a MDM solution to distribute your modified `.mobileconfig` file to your + macOS clients. Sign-in is now enforced on all of those devices. + + ## plist method (Mac only) > [!NOTE]