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
Add a new registry resource type that validates Windows registry keys
natively using the golang.org/x/sys/windows/registry API. This replaces
the need to shell out to PowerShell for registry checks, providing
significant performance improvements (0.02s vs 44s for 250 checks).
Gossfile syntax:
registry:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName:
exists: true
value: "Windows Server 2025 Datacenter"
type: REG_SZ
For value names containing backslashes (e.g. HardenedPaths UNC entries),
use "::" as an explicit separator:
registry:
HKLM\...\HardenedPaths::\\*\NETLOGON:
exists: true
Supported hives: HKLM, HKCU, HKCR, HKU, HKCC.
Supported types: REG_SZ, REG_EXPAND_SZ, REG_DWORD, REG_QWORD,
REG_BINARY, REG_MULTI_SZ.
On non-Windows platforms, the resource returns an error indicating
it is only supported on Windows, following the NullPackage pattern.
0 commit comments