From 04a55cd73763e6dcfd33b89ff0b8c9a8108d15ce Mon Sep 17 00:00:00 2001 From: Patrick O'Neil Date: Tue, 10 Dec 2024 08:09:55 -0500 Subject: [PATCH] Replace Chef license agreement. Add more --enhanced --- src/courses/user/06.md | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/src/courses/user/06.md b/src/courses/user/06.md index 6b17a14d4..4fde8a358 100644 --- a/src/courses/user/06.md +++ b/src/courses/user/06.md @@ -87,28 +87,7 @@ inspec exec https://github.com/mitre/nginx-stigready-baseline -t docker://nginx In the above example, we are testing an NGINX server. We get the InSpec profile (all the tests) from GitHub by stating `https://github.com/mitre/nginx-stigready-baseline`. We use the NGINX target (`-t`) that is running via Docker in our Codespace environment by stating `docker://nginx`, and we report the results to the terminal (CLI output) with `enhanced-outcomes` enabled for readability. Not all the metadata generated by `inspec exec` is displayed in the CLI output. Instead, it is included in the results file so that we can explore it in more detail using Heimdall. -_Note: The first time you run InSpec, it will likely ask you to accept Chef's license like this:_ - -```sh -+---------------------------------------------+ - Chef License Acceptance - -Before you can continue, 1 product license -must be accepted. View the license at -https://www.chef.io/end-user-license-agreement/ - -License that need accepting: - * Chef InSpec - -Do you accept the 1 product license (yes/no)? - -> -``` - -You can type `yes` and press enter. This will only happen one time. - -If you are using InSpec in a pipeline, you can silently accept the license. Refer to [Chef's documentation](https://docs.chef.io/licensing/accept/) for more information. - +The SAF training lab environment uses [Cinc Auditor](https://cinc.sh/start/auditor/), an open source distribution of Inspec. When you run `inspec`, the command is redirected to `cinc-auditor` so you won't need to worry about what command to run. If you choose to use Chef Inspec instead of Cinc Auditor in a different environment, you will need to accept Chef's [license agreement](https://docs.chef.io/licensing/accept/). ::: ::: details Transports - Advanced Examples @@ -121,6 +100,7 @@ The `-t` flag (or `--target` flag in long form) specifies **what** target you wa inspec exec https://github.com/mitre/nginx-stigready-baseline -t docker://instance_id --input-file + --enhanced-outcomes --reporter json: ``` @@ -130,6 +110,7 @@ inspec exec https://github.com/mitre/nginx-stigready-baseline inspec exec https://github.com/mitre/nginx-stigready-baseline -t ssh://Username:Password@IP --input-file + --enhanced-outcomes --reporter json: ```