Skip to content

Commit ae231bc

Browse files
committed
Restrict Windows app labels to x86 hosts
Rename Brave and Visual Studio Code labels to indicate x86-only and add an arch check (exclude ARM) in their queries in it-and-security/lib/all/labels/windows-with-fleet-maintained-apps-installed.yml. Update patch-fleet-maintained-apps.yml to reference the new x86 label names so policies target the correct hosts.
1 parent 0334d8b commit ae231bc

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

it-and-security/lib/all/labels/windows-with-fleet-maintained-apps-installed.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
query: SELECT 1 FROM programs WHERE name = 'Zoom Workplace (X64)' AND EXISTS (SELECT 1 FROM os_version WHERE arch NOT LIKE 'ARM%');
2424
label_membership_type: dynamic
2525
platform: windows
26-
- name: Windows hosts with Brave Browser installed
27-
description: Windows hosts with Brave Browser installed
28-
query: SELECT 1 FROM programs WHERE name = 'Brave';
26+
- name: x86 Windows hosts with Brave Browser installed
27+
description: x86 Windows hosts with Brave Browser installed
28+
query: SELECT 1 FROM programs WHERE name = 'Brave' AND EXISTS (SELECT 1 FROM os_version WHERE arch NOT LIKE 'ARM%');
2929
label_membership_type: dynamic
3030
platform: windows
31-
- name: Windows hosts with Visual Studio Code installed
32-
description: Windows hosts with Visual Studio Code installed
33-
query: SELECT 1 FROM programs WHERE name LIKE 'Microsoft Visual Studio Code%';
31+
- name: x86 Windows hosts with Visual Studio Code installed
32+
description: x86 Windows hosts with Visual Studio Code installed
33+
query: SELECT 1 FROM programs WHERE name LIKE 'Microsoft Visual Studio Code%' AND EXISTS (SELECT 1 FROM os_version WHERE arch NOT LIKE 'ARM%');
3434
label_membership_type: dynamic
3535
platform: windows
3636
- name: x86 Windows hosts with Docker Desktop installed

it-and-security/lib/windows/policies/patch-fleet-maintained-apps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@
4545
fleet_maintained_app_slug: brave-browser/windows
4646
install_software: false
4747
labels_include_any:
48-
- Windows hosts with Brave Browser installed
48+
- x86 Windows hosts with Brave Browser installed
4949
- name: Windows - Visual Studio Code up to date
5050
description: The host may have an outdated version of Visual Studio Code, potentially risking security vulnerabilities or compatibility issues.
5151
resolution: "Download the latest version from Self-service or check for updates using Visual Studio Code's built-in update functionality. You can also uninstall Visual Studio Code if you are no longer using it."
5252
type: patch
5353
fleet_maintained_app_slug: visual-studio-code/windows
5454
install_software: false
5555
labels_include_any:
56-
- Windows hosts with Visual Studio Code installed
56+
- x86 Windows hosts with Visual Studio Code installed
5757
- name: Windows - Docker Desktop up to date
5858
description: The host may have an outdated version of Docker Desktop, potentially risking security vulnerabilities or compatibility issues.
5959
resolution: "Download the latest version from Self-service or check for updates using Docker Desktop's built-in update functionality. You can also uninstall Docker Desktop if you are no longer using it."

0 commit comments

Comments
 (0)