inspec/examples/profile-sensitive
Kevin Formsma 94c2e8181c Add sensitive flag to resources to restrict logging output (#2017)
* Filter check output based on sensitive flag
-Updated check in formatters to filter check output during failures based on
sensitive metadata flag
-Added functional test of output filtering
-Updated documentation with blerb on usage
* Update output format for sensitive resources

Signed-off-by: Kevin Formsma <kevin.formsma@gmail.com>

* Update color output on new test

Update the color output to match the newly-expected non-color format if there are no tests that match.

Signed-off-by: Adam Leff <adam@leff.co>
2017-08-25 16:21:49 -04:00
..
controls Add sensitive flag to resources to restrict logging output (#2017) 2017-08-25 16:21:49 -04:00
inspec.yml Add sensitive flag to resources to restrict logging output (#2017) 2017-08-25 16:21:49 -04:00
README.md Add sensitive flag to resources to restrict logging output (#2017) 2017-08-25 16:21:49 -04:00

Example InSpec Profile with Sensitive failures

This profile demostrates resources flagged as sensitive

Usage

$ inspec exec examples/profile-sensitive
....

  bob should
   ∅  eq "billy"

   expected: "billy"
        got: "bob"

   (compared using ==)

  sensitivepassword should
     ∅  eq "secret"
     *** sensitive output suppressed ***
  bob should
     ✔  eq "bob"
  sensitivepassword should
     ✔  eq "sensitivepassword"

Test Summary: 2 successful, 2 failures, 0 skipped