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
Extract constants and improve Windows posture collector
- Add constants for Windows-specific strings and patterns
- Replace hardcoded OS name with windowsOSName constant
- Extract service names, command keywords, and firewall patterns into named constants
- Use constants for antivirus detection, disk encryption checks, and password policy
- Maintain consistency with Linux collector improvements
- Use existing optimized strings.ToLower() pattern
Constants added:
- windowsOSName, windowsDefenderFirewall
- firewallStateOn, antivirusEnabled, protectionOn, fullyEncrypted
- minPasswordLength, ruleNamePrefix
Co-authored-by: Amp <[email protected]>
Amp-Thread-ID: https://ampcode.com/threads/T-5be4213f-26eb-400c-bb7b-d4c79b7ee6fe
0 commit comments