You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows Server 2019 DC (Guest)
Mac 10.15.7 (Host)
Test Kitchen version 2.8.0
Scenario:
I am using the following disable UAC Remote Restrictions which is outlined here.
When working on servers joined to a domain with domain service accounts (usually added to the Local Administrators Group), and are connecting via WinRM, this is a lever that has to be tweaked.
This triggers the "Actual Result" even though the windows_uac resource does not have a property that manages that value inside of the registry.
Steps to Reproduce:
Running Windows 2019 with the following registry resource works for the cinc-client run, but raises cookstyle error in my pre-commit hooks.
recipes/default.rb:67:1: R: Chef/Modernize/WindowsRegistryUAC: Chef Infra Client 15.0 and later includes a windows_uac resource that should be used to set Windows UAC values instead of setting registry keys directly.
registry_key 'HKLM\software\Microsoft\Windows\CurrentVersion\Policies\system' do
The text was updated successfully, but these errors were encountered:
# These regkey changes are needed along with patches to help mitigate CVE-2018-0886/RDP MITM Vuln
# WARNING: These require a reboot to apply
registry_key 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters' do
values [{
name: 'AllowEncryptionOracle',
type: :dword,
data: '1',
}]
action :create
recursive true
end
recipes/registry_cve2018_0886.rb:12:1: R: Chef/Modernize/WindowsRegistryUAC: Chef Infra Client 15.0 and later includes a windows_uac resource that should be used to set Windows UAC values instead of setting registry keys directly. (https://docs.chef.io/workstation/cookstyle/chef_modernize_windowsregistryuac)
registry_key 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters' do
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Version:
$ be cookstyle -v
Cookstyle 7.3.11
Environment:
Windows Server 2019 DC (Guest)
Mac 10.15.7 (Host)
Test Kitchen version 2.8.0
Scenario:
I am using the following disable UAC Remote Restrictions which is outlined here.
When working on servers joined to a domain with domain service accounts (usually added to the Local Administrators Group), and are connecting via WinRM, this is a lever that has to be tweaked.
This triggers the "Actual Result" even though the windows_uac resource does not have a property that manages that value inside of the registry.
Steps to Reproduce:
Running Windows 2019 with the following registry resource works for the cinc-client run, but raises cookstyle error in my pre-commit hooks.
Expected Result:
I would have expected cookstyle to not complain because the resource to modernize towards does not support the specific value being set. https://docs.chef.io/resources/windows_uac#properties
Actual Result:
The text was updated successfully, but these errors were encountered: