Manage Risk in Client Deployments and Change Actions at Scale, with a Mapped Change Control Policy
With the power of Tanium, you can very quickly deploy packages and applications across your environment. However, as with any rapid deployment tool, consideration should be given towards the particular client needs within your enterprise. Care and testing should always be taken to root out and address any unforeseen endpoint requirements that could cause issues during a rollout. This article suggests ways that Tanium can help make production deployment rollouts and change actions as smooth as possible.
Before You Start
Consider first testing in a Lab/Dev staging environment or a UAT (User Acceptance Testing) environment before moving to a production deployment. By having a sample of your OS types in a development environment, you greatly reduce your risk of tipping over a critical workstation or server.
Testing in your dev is usually the first requirement of documenting your change steps for CAB approval (Change Advisory Board). Once change is approved, the next step in staging the deployment is to “slow-roll” the package following a defined change control policy.
Common Deployment Methodologies
There are a number of ways to segment out a package deployment, but the most common we see across enterprises are either “Crawl/Walk/Run” or “Ring” deployment methodologies to phase a rollout. In larger enterprises, it is often a hybrid of both. Initial Ring based deployments are targeted for testing, Canary and Early Adopter rollouts. The User Ring is then pivoted to use a random sampling as the package or application is slow-rolled to end users.
Crawl/Walk/Run (and sometimes Fly) Deployment Methodology
Although this approach can vary among a 3 or more step phased deployment matrix, the concept is the same.
Customers that use this methodology typically have a robust testing environment that accurately reflects what is in production.
In our example, we use a random sampling based on a percentage of the enterprise managed by Tanium. We then gradually increase percentages as our confidence solidifies.
How to do this
Every client, when it registers, is given a unique Computer ID. A Tanium sensor is used to query the Computer ID. That is in turn used to create a targetable Computer Group in 10% increments using a Regular Expression match to validate the targeting requirements:
Crawl: For a 10% deployment, we simply target clients whose Computer ID ends in 0.
Get Online from all machines with Computer ID matches "^\d+0$"
If all you need is 10%, you could also use a simpler question:Get Online from all machines with Computer ID ends with 0
Walk: Adding to the prior deployment phase, we now want to add another 30% for an encompassing, 40% targetable range. We query for Computer ID that ends in 4 numbers (i.e., 0-3)
Get Online from all machines with Computer ID matches "^\d+[0-3]$"
Run: This is the remaining environment. How you target is based on the organization’s preference. The following query will typically suffice to target 100%:
Get online from all machines
This deployment method is common and actively used in enterprises with an excess of 500k active Tanium clients.
Ring Based Deployment Methodology
This form of deployment methodology is very subjective to how your change management team requires targeting. The gist is to create computer groups in expanding rings of inclusion from Canaries, to Early Adopters, to Users. This may consist of targeting a select group or department that is least affected by disruptive change.
For example, we might target a segment of our IT department in order to monitor the crawl phase. This is typically referred to as “eating our own dog food”. We then gradually expand the inclusion of lesser-tolerant rings, and finally to full production rollout.
How to do this
These Computer Group definitions can be things like:
-
Computer naming conventions (RegEx is your friend here)
Get Online from all machines with Computer Name matches “^(dev|tst|it|mkt).*$”Most enterprises use a naming standard that identifies the endpoint by location, department, purpose and/or identification number.
-
AD Container (OU, DC, etc) ...caveat, Windows only
Get AD Organizational Unit matches "^.*OU=InfoSec.*$" from all machines
-
IP Subnets
Get online from all machines with ( In Subnet[10.10.5.0/24] equals true or In Subnet[10.200.70.0/24] equals true )
-
or, some other predefined computer group that already defines your rings
Get online from “Ring1”
Free Disk Space
Regardless of which deployment methodology you use, a final consideration is limited disk space. If your deployment methodology requires you to additionally target clients with greater than a defined limit of free disk space, the following can be used to additionally limit the target group:
Get Online from all machines with Disk Free Space matches "^(\: |[Cc]: )([3-9]|[1-9]\d+).*(G|GB)$"
This Regular Expression match will pull back clients with 3GB+ of free disk space. Non-Win: ^\: ([3-9]|[1-9]\d+).*G$ Windows: ^[Cc]: ([3-9]|[1-9]\d+).*GB$
Combining the methodology and free disk would result in something like:
If using Crawl/Walk/Run/Fly:
Get Online from all machines with ( Disk Free Space matches "(\: |[Cc]: )([3-9]|[1-9]\d+).*(G|GB)$" and Computer ID matches "\d+0$" )
This will return a "True" targetable option that fits the above criteria: 10% and 3GB+ Disk Free Space
Or, if using a predefined Ring-based Computer Group:
Get Online from “Ring1” with Disk Free Space matches "^(\: |[Cc]: )([3-9]|[1-9]\d+).*(G|GB)$"
This will fill in the sensor used to define “Ring1” and limit the target segment to 3GB+ Disk Free Space.
Other related reference articles
-
The Importance of Testing: The Importance of Testing (tanium.com)
-
Advanced Question Syntax: Reference: Advanced question syntax (tanium.com)No Content found for /db/organizations/tanium/repositories/master/content/documents/userguides/interact/example_advanced_questions.dita
-
If you are unfamiliar with targeting by Computer Group rather than “All Machines”, reference this article for Advanced Parser: Using the Tanium 7.2 Advanced Parser: New Syntax Features and Shortcuts in the Question Bar and Question Builder