From 6b493031368849d47d389ab93b756ef83e6c004f Mon Sep 17 00:00:00 2001 From: Adam Leff Date: Mon, 3 Apr 2017 17:21:15 -0400 Subject: [PATCH] Add warning to the http resource documentation Currently, the `http` resource only operates on the node on which `inspec exec` is run, even if the user uses the `--target` flag. This has caused some confusion in the community. Until this can be fixed, this change adds a warning to the documentation. Signed-off-by: Adam Leff --- docs/resources/http.md.erb | 4 ++++ www/source/stylesheets/_settings.scss | 1 + www/source/stylesheets/_typography.scss | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/docs/resources/http.md.erb b/docs/resources/http.md.erb index 0871daad5..f55e404b2 100644 --- a/docs/resources/http.md.erb +++ b/docs/resources/http.md.erb @@ -6,6 +6,10 @@ title: About the http Resource Use the `http` InSpec audit resource to test an http endpoint. +

Currently, this resource always executes on the host on which inspec exec is run, even if you use the --target option to remotely scan a different host.
+
+This will be corrected in a future version of InSpec. New InSpec releases are posted in the Release Announcements Category in Discourse.

+ ## Syntax An `http` resource block declares the configuration settings to be tested: diff --git a/www/source/stylesheets/_settings.scss b/www/source/stylesheets/_settings.scss index 6c9fd3970..0e3ba7681 100644 --- a/www/source/stylesheets/_settings.scss +++ b/www/source/stylesheets/_settings.scss @@ -12,6 +12,7 @@ $color_purple_shade: rgba(151,110,229,0.4); $color_blue_shade: rgba(91, 201, 163, 1); $color_blue_shade_2: rgba(58, 142, 206, 1); $color_lt_blue: #eaf8f9; +$color_lt_yellow: #fff7d5; //fonts diff --git a/www/source/stylesheets/_typography.scss b/www/source/stylesheets/_typography.scss index e713c538b..a3327c5f9 100644 --- a/www/source/stylesheets/_typography.scss +++ b/www/source/stylesheets/_typography.scss @@ -121,3 +121,10 @@ hr { .t-purple > a { //trigger for side bar LI color: $color_purple !important; } + +.warning { + padding: 10px; + margin-bottom: 1em; + background: $color_lt_yellow; + border: 1px solid rgba(255,147,0,0.3); +}