Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSPEC: VMCH-70-Multiple not filtering vCLS #129

Open
pbarrette opened this issue Feb 2, 2023 · 1 comment
Open

INSPEC: VMCH-70-Multiple not filtering vCLS #129

pbarrette opened this issue Feb 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@pbarrette
Copy link

Describe the bug

Executing a scan against all VMs results in failures on multiple controls for vCLS-X VMs.

My understanding is that the configuration of the vCLS machines is not supposed to be changed. Additionally, attempting to modify them results in an error.

Reproduction steps

  1. Execute an inspec scan against VMCH controls.

Expected behavior

The STIG should be updated to note that vCLS machines are exempt from the failing controls.

If they should not be exempt, VMware should be creating the vCLS machines with the proper controls already applied.

The inspec controls should be updated to ignore the vCLS VMs and produce a compliant scan.

Additional context

I've changed the following line in all VMCH controls from:
vms = powercli_command('Get-VM | Sort-Object Name | Select -ExpandProperty Name').stdout.gsub("\r\n", "\n").split("\n")

To:
vms = powercli_command('Get-VM | Where-Object { $_.Folder -notmatch "vCLS" } | Sort-Object Name | Select -ExpandProperty Name').stdout.gsub("\r\n", "\n").split("\n")

This ignores all VMs in the vCenter created "vCLS" folder.

@pbarrette pbarrette added the bug Something isn't working label Feb 2, 2023
@rlakey
Copy link
Contributor

rlakey commented Feb 2, 2023

Yea we technically can't fix these VMs in 7 but they aren't necessarily excluded from being compliant either the way things are currently written (they didn't exist until later versions of 7). We'll have to reconsider this in a future update after the official STIG is out.

In 8.0 this won't be an issue as these VMs are all compliant with the guidance when that comes out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants