PowerStig icon indicating copy to clipboard operation
PowerStig copied to clipboard

Documentation Update for Exceptions

Open devopsjesus opened this issue 2 years ago • 2 comments

Describe the bug We were attempting to add an exception to a configuration, and followed the documentation for that attribute, however, the documentation needs to be updated to show the desired value is now the actual value required. Using Windows Server 2019 MS resource.

To Reproduce

  1. Add Exception = @{'V-1075'= @{'ValueData'='1'} } to the configuration and the compilation will fail.
  2. Change to Exception = @{'V-1075' = '1'} and the configuration will compile successfully.

devopsjesus avatar Jun 28 '22 22:06 devopsjesus

Also looks like the WindowsServer resource documentation needs updating as well:

  • Exception Parameter in the table at https://github.com/Microsoft/PowerStig/wiki/WindowsServer
  • Example use of Exceptions: https://github.com/Microsoft/PowerStig/wiki/WindowsServer#apply-the-windows-server-stig-to-a-node-but-override-a-rule-value

devopsjesus avatar Jun 28 '22 22:06 devopsjesus

@devopsjesus - Could you please share your entire configuration with us for reproduction. The rule id that you reference is not used in the 2019 MS STIG. I have tested the current documation and the formatting appears to be correct.

Here is a config example that compiles with current codebase - image Resulting mof with exception image

erjenkin avatar Jul 07 '22 16:07 erjenkin