Configuring Patch Zero Touch Automation using Patch Lists

Zero Touch and Self-Service Patching Video

Configure Computer Groups

Tanium Computer Groups form the foundational building blocks for patch automation. It is essential to properly define which endpoints will be assigned to which maintenance windows and rings of deployment. It recommended that the naming of your computer groups is clear and consistent to make the mapping of computer group to deployment and maintenance window simple to understand.

Ring-based Computer Groups

To deploy patches in phased rings we first must define computer groups for targeting each phase. The number of rings will depend on your organization's goals, but we will use three rings for this runbook. Ring 1 should be relatively small, generally less than a few hundred endpoints or around 1% of endpoints. Ring 2 should be larger, from hundreds to thousands of endpoints or up to 10% of the entire enterprise. Lastly, Ring 3 is the remainder of the endpoints in production throughout the entire enterprise. It is recommended to specify different rings for workstations and servers.

Tip:

TIP You can define ring computer groups for both Windows and Linux endpoints.

The phased deployments are critical for identifying issues in patches before deploying enterprise-wide, so consider which systems would be best to include in the various groups. Attempt to identify a good representation of the differing operating systems and system roles in the earlier rings.

Tip:

TIP Well-defined ring-based deployments can be used beyond patch automation. You can re-use your rings to deploy software changes, third-party updates, policy configurations, etc.

For your ring-based computer groups, you can use existing organizational structures such as computer naming schemes, Active Directory Organizational Units, Active Directory security groups, IP subnets, or a combination of these and/or other Tanium sensors to include/exclude endpoints into appropriate groups. For this runbook, we will be using Tanium Custom Tags to opt endpoints into the various ring-based computer groups.

Create Computer Groups with Custom Tags

  1. Go to Administration, Permissions, Computer Groups.

  2. Click New Computer Group.

    1. Name: Patch - Ring 1

    2. Enable Filter: Default Filter Groups (or desired content set)

    3. Filter: Custom Tags matches PatchRing1

    4. Click Save.

  3. Click New Computer Group.

    1. Name: Patch - Ring 2

    2. Enable Filter: Default Filter Groups (or desired content set)

    3. Filter: Custom Tags matches PatchRing2

    4. Click Save.

  4. Click New Computer Group.

    1. Name: Patch - Ring 3

    2. Enable Filter: Default Filter Groups (or desired content set)

    3. Filter: Custom Tags matches PatchRing3

    4. Click Save.


Configuring Patch Zero Touch

Assign Tags to Endpoints

Deploy the custom tags to endpoints to opt them into the appropriate patch ring.

For more information on how to apply custom tags, refer to the article How to Group Computers Based on Your Organization's Needs Using Custom Tags (6/2020 update).

Create and Enforce Maintenance Windows

Maintenance Windows are used to specify when endpoints are allowed to patch and reboot. If an endpoint does not have a Maintenance Window assigned, it can patch any time there is an active Deployment. Leverage the built-in maintenance windows, [Blocking Maintenance Window] - Windows and/or [Blocking Maintenance Window] - Linux, to ensure that systems only patch during a configured and active Maintenance Window. Verify in your environment that these maintenance windows are enforced on the All Windows or All Windows Servers and All Linux, respectively.

Maintenance Windows can be as open or restrictive as business needs require. Configure the maintenance windows with the appropriate schedules and then enforce them on the targeted computer groups. For example, you could create a maintenance window for the fourth Friday of the month from 10:00 PM to 2:00 AM, and then enforce the maintenance window on your Production Servers computer group.

Ensure your maintenance windows fall within the appropriate deployment ring. For example, if an endpoint in ring 2 is supposed to install patches 10 days after patches have been released, the endpoint should have a maintenance after that time of the month and BEFORE the ring 3 threshold. You can use relative maintenance windows to align maintenance windows with patch release deferral. As an example, you can use the "Monthly, relative to another day" reoccurrence option within maintenance windows to ensure your windows always opens a set number of days after Patch Tuesday.


Configuring Patch Zero Touch
Tip:

Use endpoint local time for maintenance window time zones to ensure endpoints install patches in their own time zone and adjust properly for any daylight-saving time shifts.

Tip:

It is generally advisable for workstations to have a very broad Maintenance Window to ensure that patches are applied. End User Notifications can be utilized to allow workstations to be patched at any time while also allowing the end user to have control over when the system reboots.

Once your maintenance windows have been created, enforce the maintenance windows on the relevant computer groups.

Create Patch Lists

For zero touch patch automation, you will define a patch list that automatically approves patches after a certain threshold of days for each ring. Each organization must decide how much to defer each ring after patches are released. For this runbook, we will use the following schedule:

  • Ring 1 - patches are immediately approved upon release

  • Ring 2 - patches are approved three days after release (i.e. Friday after Patch Tuesday)

  • Ring 3 - patches are approved ten days after release (i.e. Second Friday after Patch Tuesday)

Example for Ring 2


Configuring Patch Zero Touch

Verify Global Block List

Block Lists are used to create a list of patches that should not be deployed in the environment. Block Lists can contain individual patches or patches based on rules. For this runbook, the built-in [Global Block List] - Windows block list will be used to add any patches determined to negatively affect your endpoints.

Verify the block list exists and is enforced on Patch Supported Systems

  1. Go to Modules, Patch, Block Lists.

  2. Find the block listed named [Global Block List] - Windows. By default, this list will exclude Security Only updates and will be enforced on Patch Supported Systems.


Configuring Patch Zero Touch

Block Bad Patches

The phased approach outlined in this runbook allows your organization to respond quickly should any patches negatively impact your endpoints. Ideally identifying a bad patch will occur in ring 1 or ring 2 before it can affect your greater population. At any point in time, you can add a bad patch to a block list and roll back the patch on the affected endpoints.

  1. Go to Modules, Patch, Block Lists.

  2. Select [Global Block List] - Windows

  3. Click Edit

  4. Click Add Rule

  5. Rule Name: KB5034441

  6. Conditions: KB Articles equals KB5034441

  7. Click the blue check to apply.

  8. Click Show Preview to Continue

  9. Click Update Block List

Tip:

TIP: Add contextual information to your block list rule names, so it is clear why it was blocked. Example: KB5034441 - 2023-01 - CBS_E_INSUFFICIENT_DISK_SPACE Error on Small WinRE partition

Example


Configuring Patch Zero Touch

Create Deployment Templates

In this section you will configure one or more Patch deployment templates and the accompanying notification messages displayed to the user prior to restarting.

This example provides some commonly used settings for requiring a restart following patch application. Many customers will restart immediately or significantly reduce the Deadline for Restart for their lower ring groups. You can also have different deployment templates for Windows servers and Linux endpoints.

  1. Go to Modules, Patch, Deployment Templates.

  2. Click Create Deployment Template.

  3. Click Create Install Template.

    1. Name: Zero Touch Patch Automation with Restart and Notification

    2. Platform: Windows

    3. Content Set: Patch Content Set (or desired content set)

    4. Deployment Frequency: Ongoing Deployment

    5. Endpoint Local Time: Enabled

    6. Download Immediately: Enabled

    7. Distribute Over Time: Enabled, 2 Hours

    8. Override Maintenance Windows: Disabled

    9. Override Block Lists: Disabled

    10. Restart: Enabled

    11. Notify User: Enabled

    12. Duration of Notification Period: 8 hours (or desired value)

    13. Final Countdown to Deadline: 15 minutes

    14. Allow User to Postpone: Enabled

      1. 1 hour

      2. 2 hours

      3. 4 hours

    15. Title: Restart Required

    16. Title Icon: Upload your own logo

    17. Body: Please restart your computer to finish applying security updates.

    18. Body Image: Upload your own logo

    19. Click Save.


Configuring Patch Zero Touch

Configuring Patch Zero Touch

Configuring Patch Zero Touch

Create Deployments

Create the three deployments using the appropriate ring patch list, deployment template, and ring-based computer group.

Go to Modules, Patch, Deployments.

Create Patch - Ring 1 Deployment

  1. Click Create Deployment.

  2. Click Install Deployment.

  3. From the top-right, click Apply Deployment Template, and select the deployment template Zero Touch Patch Automation with Restart and Notification.

    1. Name: Patch - Ring 1

    2. Description: Ring 1 phased patch deployment

    3. Platform: Windows

    4. Content Set: Patch Content Set (or desired content set)

  4. Click Add Patch List: Select Patch - Ring 1.

    1. Version: Latest

  5. Under Endpoints to Target click Computer Groups: select Patch - Ring 1.

  6. Review the rest of the deployment options which have been set by your deployment template.

  7. Click Preview to Continue.

  8. Click Deploy.

Create Patch - Ring 2 Deployment

  1. Click Create Deployment.

  2. Click Install Deployment.

  3. From the top-right, click Apply Deployment Template, and select the deployment template Zero Touch Patch Automation with Restart and Notification.

    1. Name: Patch - Ring 2

    2. Description: Ring 2 phased patch deployment

    3. Platform: Windows

    4. Content Set: Patch Content Set (or desired content set)

  4. Click Add Patch List: Select Patch - Ring 2.

    1. Version: Latest

  5. Under Endpoints to Target click Computer Groups: select Patch - Ring 2.

  6. Review the rest of the deployment options which have been set by your deployment template.

  7. Click Preview to Continue.

  8. Click Deploy.

Create Patch - Ring 3 Deployment

  1. Click Create Deployment.

  2. Click Install Deployment.

  3. From the top-right, click Apply Deployment Template, and select the deployment template Zero Touch Patch Automation with Restart and Notification

    1. Name: Patch - Ring 3

    2. Description: Ring 3 phased patch deployment

    3. Platform: Windows

    4. Content Set: Patch Content Set (or desired content set)

  4. Click Add Patch List: Select Patch - Ring 3.

    1. Version: Latest

  5. Under Endpoints to Target click Computer Groups: select Patch - Ring 3.

  6. Review the rest of the deployment options which have been set by your deployment template.

  7. Click Preview to Continue.

  8. Click Deploy.

Example from Ring 1


Configuring Patch Zero Touch

Configuring Patch Zero Touch

Review Patch Deployments

You have successfully configured zero-touch three-ring phased patch automation. You can review your ring-based deployments statuses.

  1. Go to Modules, Patch, Deployments.

  2. Select deployment Patch - Ring 1.

  3. Review the deployment statuses.

  4. Review deployment errors for any failed patches.


Configuring Patch Zero Touch