Commit graph

2854 commits

Author SHA1 Message Date
Chef Expeditor
df6350f6a0 Bump version to 2.2.106 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-18 17:10:15 +00:00
Jared Quick
40e024fa97
Move habitat to v2 plugin. (#3404)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-18 13:10:07 -04:00
Chef Expeditor
b8adedeb3a Bump version to 2.2.105 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-18 04:01:03 +00:00
Clinton Wolfe
50ff9f6a24
Plugins: Add support for 'bundles' migration (#3384)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-18 00:00:54 -04:00
Chef Expeditor
7aa2283943 Bump version to 2.2.104 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-18 00:59:41 +00:00
Kayleigh Doores
9c1b7eb6a2 Added db_name flag (#3383)
* Added db_name flag
* removed trailing whitespace
* Added comment to disable metrics

Signed-off-by: Kayleigh <kayleigh.doores@gmail.com>
2018-09-17 20:59:31 -04:00
Chef Expeditor
3c93de9a3a Bump version to 2.2.103 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-17 21:41:55 +00:00
Chef Expeditor
6a61b6455d Bump version to 2.2.102 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-17 20:20:44 +00:00
Jared Quick
8caca9be43
Add json-automate to the report structure (#3401)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-17 16:20:32 -04:00
Chef Expeditor
e898cd3585 Bump version to 2.2.101 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-14 00:19:13 +00:00
Jerry Aldrich
bbc4002b53 Fix profile vendoring on Windows (#3378)
* Fix profile vendoring on Windows

This fixes vendoring on Windows by doing the following:
  - Expanding relative paths (handles `\\`)
  - Ensuring archives after closed after reading (prevents locking)

This also does the following:
  - Removes extra file from testing tar archive
  - Ensures fetching dirs/archives in the local fetcher behaves the same

* Fix profile vendoring on Windows

This fixes vendoring on Windows by doing the following:
  - Expanding relative paths (handles `\\`)
  - Ensuring archives after closed after reading (prevents locking)

This also does the following:
  - Removes extra file from testing tar archive
  - Ensures fetching dirs/archives in the local fetcher behaves the same

* Add vendoring to fuctional testing and fix the tmp path for windows

* Add tests for relative paths and backslashes

* Remove backslashes support in filenames on Linux

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-09-13 20:19:02 -04:00
Chef Expeditor
ec7f0f5a4e Bump version to 2.2.100 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-13 23:09:45 +00:00
Chef Expeditor
b4290fb0c7 Bump version to 2.2.99 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-13 19:47:55 +00:00
Chef Expeditor
94a560b85b Bump version to 2.2.98 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-13 19:45:09 +00:00
Chef Expeditor
8fa56fae2f Bump version to 2.2.97 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-13 19:36:26 +00:00
Jared Quick
927720998c
Add platforms schema command (#3346)
* Add platforms schema command.
* Add functional test.
* Update tests with sorted export.
* Bump train version.
* Fix syntax in tests.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-13 15:36:17 -04:00
Chef Expeditor
4e9bae7d57 Bump version to 2.2.96 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-13 18:14:20 +00:00
Jared Quick
1c12a544c7
Add string impact options for controls (#3359)
* Add impact class which contains all cvss scores.
* Add testing for impact changes.
* Change symbols to strings for impact.
* Update error messages to be more clear.
* Fix test with new sha

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-13 14:14:05 -04:00
Chef Expeditor
a79b3cf08f Bump version to 2.2.95 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-13 17:28:11 +00:00
Chef Expeditor
bb3c882a2b Bump version to 2.2.94 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-13 17:08:32 +00:00
Jared Quick
3da7511d36
Fix the compliance target error checks. (#3392)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-13 13:06:02 -04:00
Chef Expeditor
80c1c07771 Bump version to 2.2.93 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-13 17:05:19 +00:00
Jared Quick
527571750d
Prevent logs from showing up when running inspec json (#3391)
* Prevent logs from showing up when running inspec json.
* Update it test text.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-13 13:05:10 -04:00
Chef Expeditor
9cb3b1e7dd Bump version to 2.2.92 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-12 22:05:54 +00:00
Jared Quick
6445e2c6d5
Add windows functional tests (#3385)
* Add windows functional tests.
* Fix tests for 2012 server.
* Fix windows build script
* Add more functional tests for windows.
* Update comment with TODO.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-12 18:04:16 -04:00
Chef Expeditor
6b3ee3b52f Bump version to 2.2.91 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-12 22:02:35 +00:00
Jared Quick
4eaf2fc540
Populate code for inspec json inheritance (#3386)
* Add a code fallback for inherited profiles.
* Add functional testing.
* Push lint fixes
* Fix inspec.lock file
* Fix lint and break from loop

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-12 18:02:24 -04:00
Chef Expeditor
f644f3fb91 Bump version to 2.2.90 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-12 21:06:00 +00:00
Jared Quick
475eafb46e
Revert uuid change from A2 report. (#3387)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-12 17:05:48 -04:00
Chef Expeditor
6cce7fa1ef Bump version to 2.2.89 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-12 20:45:04 +00:00
Jared Quick
ac106a090e
Implement InSpec global attributes (#3318)
* Add yml attribute option.
* Add type matching.
* Add testing profile for global attributes testing all types.
* Allow attributes to be called within a control block.
* Fix attribut test issues and allow value to be set at runtime.
* Allow setting attr value after creation.
* Move attributes to global namespace.
* Move attributes to a singleton object.
* Add unit and updated functional testing.
* Rename attributes to attributes_test so the testhelper picks it up.
* Add attribute object tests and error types.
* Update with feedback changes.
* Remove extra line.
* Move attribute registry class file.
* Add documentation for attributes
* Rename rspec_extensions.
* Add some failing functional tests.
* Update docs and fix typos.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-12 16:42:58 -04:00
Chef Expeditor
7351b61f4b Bump version to 2.2.88 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-12 20:41:28 +00:00
Chef Expeditor
7bce297cd9 Bump version to 2.2.87 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-10 18:41:30 +00:00
Chef Expeditor
4a4ea333af Bump version to 2.2.86 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-10 18:37:57 +00:00
Christoph Hartmann
0e0b808e9b enforce utf encoding for cli output (#3376)
* enforce utf encoding for cli output
* add profile with wrong character set

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-10 14:37:43 -04:00
Chef Expeditor
2afe1bc937 Bump version to 2.2.85 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-10 14:15:29 +00:00
Chef Expeditor
f6ecb4c842 Bump version to 2.2.84 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-07 21:03:36 +00:00
Chef Expeditor
aa9dc7ba2c Bump version to 2.2.83 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-07 21:00:12 +00:00
Christoph Hartmann
df9036f6e4 inspec compliance: use multipart upload to support upload on windows (#3369)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-07 14:25:31 -04:00
Christoph Hartmann
d6110ed162 inspec compliance: ensure we use the mock backend when we upload profiles (#3370)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-07 14:19:06 -04:00
Chef Expeditor
541b20599d Bump version to 2.2.82 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-07 18:08:09 +00:00
Christoph Hartmann
0c0ad2e5b2 inspec-compliance - do not show success message on failure (#3366)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-07 14:07:48 -04:00
Chef Expeditor
9d175279ca Bump version to 2.2.81 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-07 03:28:21 +00:00
Jerry Aldrich
9d031053ea Various improvements to vendor command (#3286)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-09-06 23:28:08 -04:00
Chef Expeditor
7976ea4333 Bump version to 2.2.80 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-06 14:56:36 +00:00
Christoph Hartmann
0cd1c21ade handle errors from automate report and display them to the user (#3360)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-09-06 10:56:26 -04:00
Chef Expeditor
75719fd933 Bump version to 2.2.79 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-09-05 19:07:42 +00:00
Jared Quick
76b453eee9
Allow target-id passthrough (#3320)
* Allow uuid passthrough
* Update flag to be target-id.
* Updated to use proper formatting for header.
* Fix empty line after cli banner.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-05 15:07:34 -04:00
Chef Expeditor
4158c0fec9 Bump version to 2.2.78 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 21:10:24 +00:00
Chef Expeditor
2f1567284c Bump version to 2.2.77 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 17:04:30 +00:00
Noel Georgi
34ae5aac40 Add HTTP basic auth for URL based inspec deps (#3341)
* Add HTTP basic auth for URL based inspec deps
* Add tests

Signed-off-by: Noel Georgi <git@frezbo.com>
2018-08-30 12:57:50 -04:00
Chef Expeditor
d37f6a22f4 Bump version to 2.2.76 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 16:56:21 +00:00
Noel Georgi
9b5aaa4f87 Support erb rendering (#3338)
* Support erb rendering

Fixes: https://github.com/inspec/inspec/issues/3337

* Add UT's and docs

Signed-off-by: Noel Georgi <git@frezbo.com>
2018-08-30 12:56:06 -04:00
Chef Expeditor
86ca580d76 Bump version to 2.2.75 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 13:16:36 +00:00
Chef Expeditor
ef5878ebe2 Bump version to 2.2.74 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-30 13:12:07 +00:00
Jared Quick
6120497db1
Convert legacy supports to their platform counterparts (#3333)
* Convert legacy supports to their platform counterparts.
* Fix rubocop lint.
* Update json schema for platform supports.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-30 09:11:55 -04:00
Chef Expeditor
6e48478701 Bump version to 2.2.73 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-29 17:32:31 +00:00
Noel Georgi
0d951e1fd1 fix skip message not being passed for merge (#3329)
* fix skip message not being passed for merge
* Fix calling method twice

Signed-off-by: Noel Georgi <git@frezbo.com>
2018-08-29 13:32:22 -04:00
Chef Expeditor
4e60ecb0f0 Bump version to 2.2.72 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2018-08-28 19:53:27 +00:00
Chef Expeditor
39d60b1d0c Bump version to 2.2.71 by Chef Expeditor 2018-08-28 13:11:51 +00:00
Josh Hudson
2d44b6e5e0 Cached profiles with Compliance Fetcher (#3221)
* Leverage existance check in Compliance::Fetcher.resolve to not re-download locally cached profiles
* Move logic from Compliance::API.exist? to Compliance::API.profiles to reuse code in cases where we need to access profiles' metadata directly.
* Declare @upstream_sha256 if target is a string
* Handle other fetchers that don't support upstream_sha256 within Inspec::CachedFetcher.initialize
* Add initialize for Compliance::Fetcher to not pollute Fetchers::Url with its logic
* Add Compliance::Fetcher.sha256 to leverage upstream_sha256 instead of relying on inherited method from Fetchers::Url
* Revert changes to cached fetcher that are unnecessary after refactor
* Pacify the god of ruby syntax
* Move Compliance::API.profiles filtering logic to end of method to leverage normalization of mapped_profiles
* Add and update unit tests to support caching with Compliance::Fetcher.upstream_sha256

Signed-off-by: Josh Hudson <jhudson@chef.io>
2018-08-28 09:11:38 -04:00
Chef Expeditor
36319d0f04 Bump version to 2.2.70 by Chef Expeditor 2018-08-23 21:04:21 +00:00
Chef Expeditor
43570ad409 Bump version to 2.2.69 by Chef Expeditor 2018-08-23 17:54:40 +00:00
Chef Expeditor
19f8ffc0f0 Bump version to 2.2.68 by Chef Expeditor 2018-08-23 17:51:11 +00:00
Chef Expeditor
ac1484ca0d Bump version to 2.2.67 by Chef Expeditor 2018-08-23 17:47:40 +00:00
Jerry Aldrich
7098631d3e Infer --sudo when --sudo-password is used (#3313)
This does the following:
  - Adds `--sudo` if using `--sudo-password`
  - Warns the user if using `--sudo-password` without `--sudo`
  - Adds unit tests for `Inspec::BaseCLI#opts`

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-08-23 13:47:26 -04:00
Noel Georgi
741ad8a2fb Fix skip hash being passed instead of boolean value (#3323)
Fixes: https://github.com/inspec/inspec/issues/3322

Signed-off-by: Noel Georgi <git@frezbo.com>
2018-08-23 13:47:10 -04:00
Chef Expeditor
74525d82bc Bump version to 2.2.66 by Chef Expeditor 2018-08-23 17:44:00 +00:00
Jared Quick
9f3e1c33a8
Suppress logs for json-automate reporter (#3324)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-23 13:43:48 -04:00
Chef Expeditor
0767ffc6f5 Bump version to 2.2.65 by Chef Expeditor 2018-08-22 19:58:47 +00:00
Vern Burton
a7ab4b8b5f Add cloudlinux under redhat family (#2935)
* adding cloudlinux into the mocker under the redhat family as it is found inside of train, and creating tests for cloudlinux that mirror the centos/redhat tests.
* adding cloudlinux under the select_service_mgmt method so that it can be matched.

Signed-off-by: Vern Burton <me@vernburton.com>
2018-08-22 15:58:38 -04:00
Chef Expeditor
a88f929e27 Bump version to 2.2.64 by Chef Expeditor 2018-08-17 15:08:31 +00:00
Kris Shannon
53e5814f74 Allow apache_conf include files to be empty (#3294)
In the `read_file` method we can call `read_file_content` with the second
argument `true` to avoid skipping on an empty file.

We will still skip the control if the main configuration file is empty
as there is still an explicit call to `read_file_content` without this
argument in the `read_content` method.

Signed-off-by: Kris Shannon <k.shannon@amaze.com.au>
2018-08-16 20:22:55 -04:00
Clinton Wolfe
d24e0f0ec9 Plugins V2 API: CLI Command Plugin Type, Again (#3296)
Plugins V2 API: CLI Command Plugin Type

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-08-16 20:22:28 -04:00
Clinton Wolfe
811318f2f8 Plugins API v2: Loader, Base API, and Test Harness (#3278)
* Functional tests for userdir option
* Accepts --config-dir CLI option
* Actually loads a config file from the config dir, more cases to test
* Able to load config and verify contents from config-dir
* Functional tests to ensure precedence for config options
* Enable setting config dir via env var
* .inspec, not .inspec.d
* Begin converting PluginCtl to PluginLoader/Registry
* Able to load and partially validate the plugins.json file
* More work on the plugin loader
* Break the world, move next gen stuff to plugin/
* Be sure to require base cli in bundled plugins
* Move test file
* Revert changes to v1 plugin, so we can have a separate one
* Checkpoint commit
* Move v2 plugin work to v2 area
* Move plugins v1 code into an isolated directory
* rubocop fixes
* Rip out the stuff about a user-dir config file, just use a plugin file
* Two psuedocode test file
* Working base API, moock plugin type, and loader.
* Adjust load path to be more welcoming
* Silence circular depencency warning, which was breaking a unit test
* Linting
* Fix plugin type registry, add tests to cover
* Feedback from Jerry

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-08-16 18:16:32 -04:00
Chef Expeditor
1bd6ab08e5 Bump version to 2.2.63 by Chef Expeditor 2018-08-15 00:08:09 +00:00
Jared Quick
34ac059972
Allow the jsonAutomate report to be executed from cli (#3285)
* Allow the jsonMerged report to be executed from cli.
* Renamed reporter to json-automate and added in comments.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-14 20:07:59 -04:00
Chef Expeditor
f18bcc34ee Bump version to 2.2.62 by Chef Expeditor 2018-08-10 16:39:10 +00:00
Miah Johnson
3a9ed68c72
Merge pull request #3267 from inspec/miah/3158-3
Update `only_if` to allow user specified messages.
2018-08-10 09:38:55 -07:00
Miah Johnson
6823d7287d Create a new variable 'msg' to store the message string returned when
skipped.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-08-09 13:00:57 -07:00
Miah Johnson
e710b5b633 Remove conditional checks for true and reverse if conditional on
Inline if_false_message into test.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-08-09 12:12:47 -07:00
Chef Expeditor
a83ae6ac5d Bump version to 2.2.61 by Chef Expeditor 2018-08-09 13:24:46 +00:00
Chef Expeditor
6c30858ff1 Bump version to 2.2.60 by Chef Expeditor 2018-08-09 13:21:34 +00:00
Robert Van Kleeck
5264cb5fdf add iis_app_pool resource (#2400)
* add iis_app_pool resource
* add sign off
* remove training whitespace
* code cleanup and simplify timeout checks
* add mock tests

Signed-off-by: Rob Van Kleeck <rvankleeck@salesforce.com>
2018-08-09 09:19:49 -04:00
Henry Muru Paenga
f605051f53 Add new resource: aws_ecs_cluster (#3213)
Signed-off-by: Henry Muru Paenga <meringu@gmail.com>
2018-08-09 09:19:27 -04:00
Chef Expeditor
447732f43c Bump version to 2.2.59 by Chef Expeditor 2018-08-09 13:18:23 +00:00
Jared Quick
71003cd564
Error cleanly if a reporter errors while rendering (#3280)
* Error cleanly if a reporter error while rendering.
* Add functional test for automate reporter.
* Remove authors.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-09 09:18:10 -04:00
Chef Expeditor
ac596dc015 Bump version to 2.2.58 by Chef Expeditor 2018-08-09 12:20:39 +00:00
Noel Georgi
9d3beb8d41 Adding docker plugin support (#3074)
* Fixing tests and squashing
* Updating as per some PR comments
* PR comments

Signed-off-by: Noel Georgi <18496730+frezbo@users.noreply.github.com>
2018-08-09 08:20:32 -04:00
Chef Expeditor
b872e9135a Bump version to 2.2.57 by Chef Expeditor 2018-08-09 12:16:11 +00:00
Ksenia
d2ae5c0d68 Fix issue#3269. Add 17 hexadecimal characters support aws_route_table (#3277)
Add support in aws_route_table to allow 17 hexadecimal characters
2018-08-09 08:16:03 -04:00
Miah Johnson
782be81807 Allow passing a message to set_skip_rule. Previously, the value passed
to set_skip_rule could be a boolean, or a message. Now value should
always be a boolean, and if a message is needed one can be passed and
will be set.
Allow only_if to take a message during control_eval DSL.
Add test for only_if(message).

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-08-07 11:37:59 -07:00
Chef Expeditor
5ce44b4d4b Bump version to 2.2.56 by Chef Expeditor 2018-08-07 16:12:51 +00:00
pete higgins
4ed7362f0c Enable inspec archive, check, and json to run as unpriveleged user (#3263)
* Add --vendor-cache flag for archive, check, and json commands.
* Remove unused ignore_supports flag for Inspec::Runner.

This flag was only set in two code paths that did not call
Inspec::Runner so setting it did not have any effect.

Signed-off-by: Pete Higgins <pete@peterhiggins.org>
2018-08-07 12:12:41 -04:00
Miah Johnson
2057ccbe5a Correct rubocop issue
Set {:result} on skip_rule instance variable.
check for msg[:result]

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-08-06 14:03:34 -07:00
Chef Expeditor
66bd4942f9 Bump version to 2.2.55 by Chef Expeditor 2018-08-03 14:07:26 +00:00
Jared Quick
73a40139a6 Add a merged json report for A2 (#3261)
* Provide a json_merge report used by A2 that merges all child profiles.

Signed-off-by: Jared Quick <jquick@chef.io>

* Merge profile controls from child up until we find something usable.

Signed-off-by: Jared Quick <jquick@chef.io>

* Add testng for json_merged report.

Signed-off-by: Jared Quick <jquick@chef.io>

* Push the profile population to be later in the report.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-03 16:07:01 +02:00
Chef Expeditor
94428711ec Bump version to 2.2.54 by Chef Expeditor 2018-08-02 18:42:23 +00:00
Noel Georgi
b93da53237 Escaping package names for windows packages (#3259)
* Escaping package names for windows packages
* Fixing missed package_name ref
* Updating Mock SHA
* Removing unwanted file
* Linting fix

Signed-off-by: Noel Georgi <18496730+frezbo@users.noreply.github.com>
2018-08-02 14:40:14 -04:00
Chef Expeditor
1c1b967d48 Bump version to 2.2.53 by Chef Expeditor 2018-08-02 18:39:23 +00:00
Jared Quick
6e59ef176b
Populate report code for merged controls (#3264)
* Populate the code section for all profiles where we merge controls.
* Fix rubocop issues.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-08-02 14:39:11 -04:00
Chef Expeditor
2ca2994cd6 Bump version to 2.2.52 by Chef Expeditor 2018-08-02 18:30:03 +00:00
Chef Expeditor
342c55d224 Bump version to 2.2.51 by Chef Expeditor 2018-08-02 15:44:03 +00:00
Miah Johnson
ca1746debb This commit updates only_if to allow a user to specify a message to say
why it was skipped. If the user does not supply a message the default
message is used.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-08-01 15:14:58 -07:00
Chef Expeditor
fa45c7d12c Bump version to 2.2.50 by Chef Expeditor 2018-07-26 18:13:45 +00:00
Bill (William) O'Neill
b349e7ae1d Since /proc/xen is an empty dir in Amazon Linux, inspec falsely detects docker instances as platform='xen' (#3243)
* Since /proc/xen is an empty dir in Amazon Linux, inspec falsely detects docker instances as platform='xen'
* Remove unnecessary rubocop comment

Signed-off-by: Bill ONeill <woneill@pobox.com>
2018-07-26 14:13:33 -04:00
Chef Expeditor
cc2acc1524 Bump version to 2.2.49 by Chef Expeditor 2018-07-26 17:49:34 +00:00
devoptimist
05da909ba1 Fix for profile version not being included in the compliance upload cli exist check (#3252)
Signed-off-by: devoptimist <sbrown@chef.io>
2018-07-26 13:49:23 -04:00
Chef Expeditor
aadc7fe97a Bump version to 2.2.48 by Chef Expeditor 2018-07-25 20:14:26 +00:00
Chef Expeditor
4c8d2a168e Bump version to 2.2.47 by Chef Expeditor 2018-07-25 20:10:54 +00:00
Chef Expeditor
2cdf3c61d4 Bump version to 2.2.46 by Chef Expeditor 2018-07-25 20:05:30 +00:00
Chef Expeditor
f2edb7a285 Bump version to 2.2.45 by Chef Expeditor 2018-07-25 20:01:53 +00:00
Jerry Aldrich
f2d64938b7 windows_feature resource: Add DISM support (#3224)
* windows_feature resource: Add DISM support

This modifies the `windows_feature` resource to fallback to DISM when
the `Get-WindowsFeature` command is not available.

* Allow specifying `:dism` or `:powershell`
* Replace stacktrace with smaller error message
* Add notes/todo about raise behavior
* Remove duplicated platform check

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-07-25 16:00:06 -04:00
Jerry Aldrich
2245bba021 cli: Downcase supermarket tool name to match URL (#3242)
* cli: Downcase supermarket tool name to match URL

This downcases the user provided tool name. Without this fetching the
profile will fail because the Supermarket API downcases in the URL.

* Add another downcase
* Add handling for `supermarket://owner_but_no_name`

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-07-25 15:59:19 -04:00
Jerry Aldrich
c1d7b2cfa3 alpine resource: Fix small style issues (#3238)
* Constrain RuboCop disables to single method
* Add comment to Alpine package command
* Use single quotes for Alpine package command
* Change `it` statement to be readable

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-07-25 15:57:51 -04:00
Chef Expeditor
c647ac9469 Bump version to 2.2.44 by Chef Expeditor 2018-07-25 19:57:27 +00:00
James Stocks
fb0a8989db Add extra fault checking to git fetcher (#3239)
Raise with the stderr from `git ls-remote` if stderr is not empty.
This is useful when inspec runs in CI and you do not have direct control/troublshooting options.

Signed-off-by: James Stocks <jstocks@chef.io>
2018-07-25 15:57:03 -04:00
Chef Expeditor
3c0abf7774 Bump version to 2.2.43 by Chef Expeditor 2018-07-25 17:08:23 +00:00
Chef Expeditor
b8928aca74 Bump version to 2.2.42 by Chef Expeditor 2018-07-23 08:45:31 +00:00
Chef Expeditor
9d36e1b61a Bump version to 2.2.41 by Chef Expeditor 2018-07-19 19:07:50 +00:00
Dan Webb
a0fffa5286 Add Alpine package provider (#3215)
- Add Alpine tests
- Stub apk grep command for alpine
- Resolve (disable for now) rubocop ABC/CyclomaticComplexity/PerceivedComplexity

Signed-off-by: Dan Webb <dan.webb@damacus.io>
2018-07-19 15:07:36 -04:00
James Stocks
ca833afacf Generate describe code for an array of strings (#3227)
Context:
When testing a Windows registry key with a period character in it e.g. `explorer.exe` it is not possible to use `its("explorer.exe")` because the period would be interpreted as method chaining.
In this case, you must instead use `its(["explorer", "exe"])`
See https://github.com/inspec/inspec/issues/1281

This commit fixes `to_ruby`in `Inspec::Describe` so that it produces an array in the generated Inspec code instead of a string.

Signed-off-by: James Stocks <jstocks@chef.io>
2018-07-19 15:00:21 -04:00
Chef Expeditor
9581176633 Bump version to 2.2.40 by Chef Expeditor 2018-07-19 12:17:08 +00:00
Miah Johnson
bfd569fe99 Ensure resources fail that target something that isn't supported (#3231)
* Use fail_resource rather than skip_resource when the platform is not
supported by the resource.

* Update tests to handle failing on unsupported platforms.
Update functional tests.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-07-19 08:16:54 -04:00
Chef Expeditor
60177faa24 Bump version to 2.2.39 by Chef Expeditor 2018-07-18 20:55:41 +00:00
Chef Expeditor
d95ccadac7 Bump version to 2.2.38 by Chef Expeditor 2018-07-17 15:42:47 +00:00
Clinton Wolfe
02cb93ec23 Refactor 'inspec init profile' into a reusable component. (#3214)
* Refactor 'inspec init profile' into a reusable component.

base_cli.rb had several methods used internally, these are exposed so
lib/bundles/inspec-init/profile.rb can act as a library for anything
that needs to create new Inspec profiles programatically

* Move output methods to be public instance methods; and make Init::Profile into a working renderer.  Functional tests pass but could use some refactoring to be easier to use.
* Refactor, renaming vars to be clearer
* Move puts and exit calls into basecli
* Add comment about simplified ERB rendering in ruby 2.5.0+

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-07-17 11:42:36 -04:00
Chef Expeditor
fee139bafb Bump version to 2.2.37 by Chef Expeditor 2018-07-16 12:21:12 +00:00
Jerry Aldrich
706493f2f3 command resource: Allow redacting #to_s (#3207)
* command resource: Allow redacting `#to_s`
* Respond to feedback

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-07-16 08:20:57 -04:00
Chef Expeditor
409a71b28e Bump version to 2.2.36 by Chef Expeditor 2018-07-13 19:54:25 +00:00
Chef Expeditor
54a9b7a97e Bump version to 2.2.35 by Chef Expeditor 2018-07-09 17:57:56 +00:00
Stanislav Voroniy
a16877f427 A number of bug fixes and new features for oracledb_session resource (#3170)
Signed-off-by: Stanislav Voroniy <stas@voroniy.com>
2018-07-09 13:57:45 -04:00
Chef Expeditor
1eb31e1c31 Bump version to 2.2.34 by Chef Expeditor 2018-07-05 20:39:09 +00:00
Stanislav Voroniy
4112085ff7 fix for apache_conf to handle quoted Includes (#3193)
Signed-off-by: Stanislav Voroniy <stas@voroniy.com>
2018-07-05 16:38:58 -04:00
Chef Expeditor
eb40d23fb0 Bump version to 2.2.33 by Chef Expeditor 2018-07-05 19:44:41 +00:00
Clinton Wolfe
92e96ebedb Accept regexes for --controls option to inspec exec (#3179)
* Functional tests for regex control selection
* Implementation for regex-based control filtering

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-07-05 15:44:30 -04:00
Chef Expeditor
dc0c8b7cc0 Bump version to 2.2.32 by Chef Expeditor 2018-07-05 19:37:28 +00:00
Miah Johnson
a084187b21 When a profile is created with init, the last item after a / is the (#3175)
profile name. eg "with/slash" would result in a profile created in the
"with" directory named "slash"

Add test for inspec init, and updated other for new output.

Clean up profiles created during testing and place them in temporary
directories.

Describe our test a bit better.
Check that the profile was created in the right location.
Check that the profile is named correctly.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-07-05 15:37:18 -04:00
Noel Georgi
6fe13ce1eb Updating inspec with bastion options (#3180)
* Updating inspec with bastion options as per https://github.com/inspec/train/pull/310
* Updating train pin
* Adding --password to pass the test
* Revert "Updating train pin"
* PR changes

Signed-off-by: Noel Georgi <18496730+frezbo@users.noreply.github.com>
2018-07-05 15:37:04 -04:00
Chef Expeditor
b94eec74fe Bump version to 2.2.31 by Chef Expeditor 2018-07-05 18:54:11 +00:00
Jerry Aldrich
b4c5475f26 cli: Add --insecure option for exec and shell (#3195)
* cli: Add `--insecure` option to `exec` and `shell`
* Move `--insecure` to target options

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-07-05 14:53:58 -04:00
Chef Expeditor
3fb1108c4d Bump version to 2.2.30 by Chef Expeditor 2018-07-05 18:20:25 +00:00
Chef Expeditor
30acc75ea5 Bump version to 2.2.29 by Chef Expeditor 2018-07-05 17:55:05 +00:00
Chef Expeditor
58bc7b78a5 Bump version to 2.2.28 by Chef Expeditor 2018-07-05 13:12:30 +00:00
Jared Quick
b31427673c
Update the node platform info to warn if we cannot find something. (#3186)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-07-05 09:12:18 -04:00
Chef Expeditor
311b906227 Bump version to 2.2.27 by Chef Expeditor 2018-06-29 12:43:45 +00:00
Clinton Wolfe
2ac5581d32 Document exit codes for 'inspec exec' and add --no-distinct-exit option (#3178)
* Add long description to inspec exec command, mentioning exit codes
* Modify website doc builder code to use long description if available
* Functional test for --distinct-exit flag
* Implement --distinct-exit option
* Inspec shell also needs the option

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-29 08:43:34 -04:00
Chef Expeditor
f09d115296 Bump version to 2.2.26 by Chef Expeditor 2018-06-26 19:14:36 +00:00
Clinton Wolfe
8683c54510 Update core resources with filtertable API changes (#3117)
* Search and replace filtertable methods to use new names, and rely on automatic methods
* Remove spurious exists? matchers - see https://relishapp.com/rspec/rspec-expectations/docs/built-in-matchers/exist-matcher
* Revert removing exists? - we'll do it on a separate PR
* Gah, didn't save before resolving conflict
* Add back name column on aws cloudtrail trails

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-26 15:14:21 -04:00
Chef Expeditor
d59f432986 Bump version to 2.2.25 by Chef Expeditor 2018-06-26 17:04:45 +00:00
Jared Quick
52694d4031 Add parent_profile field in json output (#3164)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-06-26 13:04:31 -04:00
Chef Expeditor
f9017b8467 Bump version to 2.2.24 by Chef Expeditor 2018-06-26 11:57:21 +00:00
Chef Expeditor
b85da4fb27 Bump version to 2.2.23 by Chef Expeditor 2018-06-26 11:54:00 +00:00
Chef Expeditor
639267adab Bump version to 2.2.22 by Chef Expeditor 2018-06-26 11:50:32 +00:00
Jerry Aldrich
737df411ef apache_conf resource: Strip quotes from values (#3142)
* apache_conf resource: Strip quotes from values
* Update regex to capture all vars between quotes
* Change `x` and `y` to proper variable names

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-06-26 07:48:48 -04:00
Clinton Wolfe
1d976921e3 Detect inspec-core mode and do not attempt to load cloud resources (#3163)
* Do not load AWS resources if SDK version mismatches
* Detect if we are running ins inspec-core mode, and do not attempt loading AWS or Azure if so.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-26 07:47:33 -04:00
Chef Expeditor
e680896f19 Bump version to 2.2.21 by Chef Expeditor 2018-06-26 11:47:11 +00:00
Colin Hebert
7deed13425 Add support for shallow link paths (#3168)
* Add support for shallow link paths
* Improve documentation of the

Signed-off-by: Colin Hebert <hebert.colin@gmail.com>
2018-06-26 07:47:00 -04:00
Chef Expeditor
0a0a7b7fe9 Bump version to 2.2.20 by Chef Expeditor 2018-06-21 18:20:07 +00:00
Clinton Wolfe
44c0fd2e4f
Accept symbols and downcased criteria in aws_iam_policy have_statement matcher (#3129)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-21 14:19:56 -04:00
Chef Expeditor
03b6dd8324 Bump version to 2.2.19 by Chef Expeditor 2018-06-21 17:38:00 +00:00
Jared Quick
12890408bb
Fix control merging when overriding child controls (#3155)
* Fix the control merging issues when overriding child controls.
* Fix rubocop issue and vendor compression.
* Add in lock file for vendor profile

Signed-off-by: Jared Quick <jquick@chef.io>
2018-06-21 13:37:47 -04:00
Chef Expeditor
8f7c118d6b Bump version to 2.2.18 by Chef Expeditor 2018-06-21 01:28:08 +00:00
Jerry Aldrich
cf9ce1bfdc auditd resource: Add handling for sudo/no command (#3151)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-06-20 21:27:53 -04:00
Chef Expeditor
4d3113c47e Bump version to 2.2.17 by Chef Expeditor 2018-06-19 12:54:26 +00:00
Jeremy Miller
6a0bf8b24d updated skip message to reflect accurate version of audit support (#3153)
Signed-off-by: Jeremy J. Miller <jm@chef.io>
2018-06-19 08:54:15 -04:00
Chef Expeditor
8eb559b293 Bump version to 2.2.16 by Chef Expeditor 2018-06-15 12:44:29 +00:00
Christoph Hartmann
b2e0bccea8 deprecate azure_generic_resource (#3132)
* deprecate azure_generic_resource

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-06-15 08:44:19 -04:00
Chef Expeditor
7fa616a2ed Bump version to 2.2.15 by Chef Expeditor 2018-06-14 19:26:14 +00:00
Chef Expeditor
6fc288ebb7 Bump version to 2.2.14 by Chef Expeditor 2018-06-14 18:05:35 +00:00
Jared Quick
7db83446ba
Add insecure option to the automate report json (#3124)
* Add insecure option to the automate report json.
* Add in automate and compliance json documentation.
* Fix typo.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-06-14 14:05:21 -04:00
Chef Expeditor
a4ad7dd809 Bump version to 2.2.13 by Chef Expeditor 2018-06-14 17:42:13 +00:00
Clinton Wolfe
7aa60852e6 Add list properties back to shadow (#3140)
* Un-deprecate plural properties on shadow; deprecate the singular versions
* Update filtertable interface to current
* A weak attempt at making the docs coherent
* Doc feedback per Jerry

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-14 13:42:00 -04:00
Chef Expeditor
b329b08aa6 Bump version to 2.2.12 by Chef Expeditor 2018-06-11 15:26:05 +00:00
Chef Expeditor
28fae56501 Bump version to 2.2.11 by Chef Expeditor 2018-06-11 12:12:59 +00:00
Jerry Aldrich
0b46fe1ac6 Translate auditd -s RHEL output to match CentOS (#3114)
This translates the output of `auditctl -s` on RHEL to match CentOS.

This is based on the details from issue #3113. I could not find a test
box that would give me the output to match what was reported.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-06-11 08:12:44 -04:00
Chef Expeditor
b354be0342 Bump version to 2.2.10 by Chef Expeditor 2018-06-08 01:32:24 +00:00
Chef Expeditor
630d83a5c2 Bump version to 2.2.9 by Chef Expeditor 2018-06-07 22:48:19 +00:00
Chef Expeditor
728dd4098c Bump version to 2.2.8 by Chef Expeditor 2018-06-07 19:06:27 +00:00
Clinton Wolfe
6f46d52242
Add aws_elb and aws_elbs resources (#3079)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-07 15:06:05 -04:00
Chef Expeditor
500688ae24 Bump version to 2.2.7 by Chef Expeditor 2018-06-07 18:42:00 +00:00
Miah Johnson
ab32446213 Adds a aws_flow_log resource with unit and integration testing. (#2906)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-07 14:41:46 -04:00
Chef Expeditor
e834d91d19 Bump version to 2.2.6 by Chef Expeditor 2018-06-06 18:15:32 +00:00
Chef Expeditor
e48de7cb79 Bump version to 2.2.5 by Chef Expeditor 2018-06-06 18:11:02 +00:00
Chef Expeditor
ce37657cce Bump version to 2.2.4 by Chef Expeditor 2018-06-06 16:14:38 +00:00
Samuel Boucher
27995f37e8 Update junit reporter to add failures attribute (#3086)
Signed-off-by: Samuel Boucher <boucher.samuel.c@gmail.com>
2018-06-06 12:14:24 -04:00
Chef Expeditor
cd44ce6775 Bump version to 2.2.3 by Chef Expeditor 2018-06-06 15:57:02 +00:00
Jared Quick
06e1aa5379 Allow custom resources to access all other resources (#3108)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-06-06 11:56:51 -04:00
Chef Expeditor
b1fa538521 Bump version to 2.2.2 by Chef Expeditor 2018-06-06 02:35:24 +00:00
Clinton Wolfe
f9dd82f2f6
Add common methods to FilterTable automatically (#3104)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-05 22:35:09 -04:00
Chef Expeditor
f19352c211 Bump version to 2.2.1 by Chef Expeditor 2018-06-05 21:33:07 +00:00
Clinton Wolfe
ca6556e0fe
Add lazy-loading to FilterTable (#3093)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-05 17:32:52 -04:00
Chef Expeditor
10183aca1a Bump version to 2.2.0 by Chef Expeditor 2018-06-05 04:46:47 +00:00
Clinton Wolfe
4cd6cc07cc
Two fixes to FilterTable where criteria handling (#3045)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-05 00:46:32 -04:00
Chef Expeditor
87ce26f50b Bump version to 2.1.88 by Chef Expeditor 2018-06-05 00:21:12 +00:00
Clinton Wolfe
8c274daaa9
Refactor: Perform internal rename and add comments to FilterTable (#3047)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-06-04 20:20:59 -04:00
Chef Expeditor
8f57ec7824 Bump version to 2.1.87 by Chef Expeditor 2018-06-04 22:52:57 +00:00
Chef Expeditor
9f5614e041 Bump version to 2.1.86 by Chef Expeditor 2018-06-01 14:39:41 +00:00
Jared Quick
06ff747cfc
Detect windows packages with trailing spaces. (#3106)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-06-01 10:39:26 -04:00
Chef Expeditor
d187f0d010 Bump version to 2.1.85 by Chef Expeditor 2018-06-01 08:52:57 +00:00
Dominik Richter
ebd1d36600 support local npm package searches (#3105)
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2018-06-01 10:52:46 +02:00
Chef Expeditor
b70910255f Bump version to 2.1.84 by Chef Expeditor 2018-05-31 21:12:05 +00:00
Jared Quick
924349b88b Fix the git fetcher to vendor correctly (#3097)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-31 13:53:14 -04:00
Noel Georgi
4888f4216a Fixing wrong attribute reference for rspec output (#3080)
Signed-off-by: Noel Georgi <18496730+frezbo@users.noreply.github.com>
2018-05-31 13:47:59 -04:00
Tor Magnus Rakvåg
34b393ed3c mssql_session default port and local_mode (#3031)
* set port default to nil, introduce local_mode
* raise instead of warning
* restore default port, allow explicit nil

Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
2018-05-31 13:47:28 -04:00
Noel Georgi
317a6d1953 Adding YAML reporter (#3081)
* Adding YAML reporter
* Updating yaml o/p
* Removing comment
* Adding UT for YAML reporter, adding missing reporters
* This PR takes care of the following:
 - Fixes the YAML reporter UT
 - Adds the report method to YAML reporter to support code example as in #3085
 - Disables the cyclomatic complexity Metric for reporter

Signed-off-by: Noel Georgi <18496730+frezbo@users.noreply.github.com>
2018-05-31 13:42:09 -04:00
Tor Magnus Rakvåg
71ba5018d2 Enhance groups resource with members property (#3029)
* implement members property
* flatten groups entry, extract flatten helper
* lints
* more idiomatic spec, add example of members testing

Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
2018-05-31 13:37:44 -04:00
Tor Magnus Rakvåg
367f91ea31 handle nil properties in iis_site (#3040)
* return nil instead of trying to index into nil
* fix typo
* add spec for deleted site

Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
2018-05-31 13:36:15 -04:00
Julian C. Dunn
1046a77027 Remove unneeded "-a" from the RPM query for performance improvement (#3077)
Signed-off-by: Julian C. Dunn <jdunn@chef.io>
2018-05-31 12:11:41 -04:00
Chef Expeditor
82e7eba197 Bump version to 2.1.83 by Chef Expeditor 2018-05-18 00:05:16 +00:00
Chef Expeditor
e77d96c957 Bump version to 2.1.82 by Chef Expeditor 2018-05-17 21:58:43 +00:00
Chef Expeditor
02097f2383 Bump version to 2.1.81 by Chef Expeditor 2018-05-17 18:41:09 +00:00
Chef Expeditor
c2d7caa9c6 Bump version to 2.1.80 by Chef Expeditor 2018-05-17 13:33:05 +00:00
Chef Expeditor
72ac8ea8bf Bump version to 2.1.79 by Chef Expeditor 2018-05-17 13:24:52 +00:00
Jared Quick
7e95bb2765 Add job_uuid passthrough for automate report. (#3064)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-17 15:24:38 +02:00
Chef Expeditor
19f2c45bf8 Bump version to 2.1.78 by Chef Expeditor 2018-05-16 19:20:41 +00:00
Chef Expeditor
a9f5aff7aa Bump version to 2.1.77 by Chef Expeditor 2018-05-16 19:04:42 +00:00
Chef Expeditor
9b44cd933d Bump version to 2.1.76 by Chef Expeditor 2018-05-16 18:07:47 +00:00
Chef Expeditor
6328f0a9b5 Bump version to 2.1.75 by Chef Expeditor 2018-05-16 17:33:28 +00:00
Jared Quick
da203a258b Add a passthrough for report_uuid in 'automate' reporter (#3057)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-16 13:33:17 -04:00
Chef Expeditor
7ee4177baa Bump version to 2.1.74 by Chef Expeditor 2018-05-16 17:21:33 +00:00
Chef Expeditor
f6ccfc9da7 Bump version to 2.1.73 by Chef Expeditor 2018-05-16 17:17:08 +00:00
Clinton Wolfe
a765afdbe6 Turns out we were deleting the hash args in the validation loop without dup'ing (#3044)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-05-16 13:16:57 -04:00
Chef Expeditor
e34dd65f58 Bump version to 2.1.72 by Chef Expeditor 2018-05-10 18:54:47 +00:00
Clinton Wolfe
af72574b34 Skeletal aws_ec2_instances resource (#3023)
* Add integration and unit tests for aws_ec2_instances
* Basic docs for aws_ec2_instances
* Add basic aws_ec2_instances resource

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-05-10 14:54:33 -04:00
Chef Expeditor
d1bc01f7d2 Bump version to 2.1.71 by Chef Expeditor 2018-05-10 18:49:59 +00:00
Chef Expeditor
cf1030c645 Bump version to 2.1.70 by Chef Expeditor 2018-05-10 17:53:49 +00:00
Jared Quick
08867e2f46 Include the profile dependency data in json reporter - 2.x release (#3033)
* Add depends section back to json profiles.
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-10 13:53:37 -04:00
Chef Expeditor
5d5f85b1a3 Bump version to 2.1.69 by Chef Expeditor 2018-05-09 19:16:01 +00:00
Chef Expeditor
71940514e4 Bump version to 2.1.68 by Chef Expeditor 2018-05-04 16:25:53 +00:00
Jared Quick
dabb1aa142
Fix the A2 vendoring with depends on the A2 server. (#3022)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-04 12:25:40 -04:00
Chef Expeditor
c4444cc1d9 Bump version to 2.1.67 by Chef Expeditor 2018-05-03 18:08:04 +00:00
Jared Quick
54c1ed62f9
Add A2 support for profile compliance depends. (#3014)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-03 14:07:53 -04:00
Jared Quick
7a11c51297
Fix the A2 compliance ssl flag (#3011)
* Fix the A2 compliance ssl flag.
* Add a2 fetcher tests.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-05-03 14:07:38 -04:00
Chef Expeditor
a905dc8133 Bump version to 2.1.66 by Chef Expeditor 2018-05-03 14:53:55 +00:00
Chef Expeditor
a5a7ddd538 Bump version to 2.1.65 by Chef Expeditor 2018-05-03 14:30:15 +00:00
Miah Johnson
67bbbb6ecf Split inspec into a core gem. (#3008)
* Split inspec into a core gem.
* Include inspec-core.gemspec, not inspec.gemspec.
* Only load aws and azure when the gems are installed.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-05-03 10:30:01 -04:00
Chef Expeditor
dd63d10a10 Bump version to 2.1.64 by Chef Expeditor 2018-05-03 13:57:50 +00:00
Jeremy
1407e681fc #2810 - Add check if aws s3 bucket is encrypted. (#2937)
* Add check if aws s3 bucket is encrypted.
Required terraform aws provider >= 1.6
Fix indentation issue in aws_s3_bucket.rb

* Implement most changes recommended by @TrevorBramble, and refactored other methods to align with recommendations (except Terraform nitpick; preference is to keep coding style consistent until full refactor).

Signed-off-by: Jeremy Phillips <github@uranusbytes.com>
2018-05-03 09:55:29 -04:00
Chef Expeditor
9c7192cb47 Bump version to 2.1.63 by Chef Expeditor 2018-05-03 13:53:30 +00:00
Jerry Aldrich
9e8724ca6e nginx_conf resource: Fix include paths with quotes (#2726)
* nginx_conf resource: Fix include paths with quotes
* Move quote removal to `NginxParser`
* Add parsers/tests for quotes in quotes

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-05-03 09:53:20 -04:00
Chef Expeditor
d4dc1bad69 Bump version to 2.1.62 by Chef Expeditor 2018-05-02 14:20:09 +00:00
James Stocks
b42bfeb77d cmp should recognise a string being a negative int (#3007)
Signed-off-by: James Stocks <jstocks@chef.io>
2018-05-02 10:19:57 -04:00
Chef Expeditor
91a92abf4b Bump version to 2.1.61 by Chef Expeditor 2018-04-29 18:00:24 +00:00
Chef Expeditor
7442804687 Bump version to 2.1.60 by Chef Expeditor 2018-04-27 14:57:25 +00:00
Chef Expeditor
e817dbc7bb Bump version to 2.1.59 by Chef Expeditor 2018-04-26 19:44:28 +00:00
Clinton Wolfe
1a00853cd8
Catch exceptions in control blocks and fail the control (#2987)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-26 15:44:16 -04:00
Chef Expeditor
39f9503915 Bump version to 2.1.58 by Chef Expeditor 2018-04-26 19:10:26 +00:00
Omar J. Irizarry
2495fd8196 extend os_env resource to select between Machine and User vars on Windows (#2945)
Signed-off-by: Omar J Irizarry <irizarry_omar_j@network.lilly.com>
2018-04-26 15:10:14 -04:00
Chef Expeditor
befbf5308c Bump version to 2.1.57 by Chef Expeditor 2018-04-26 16:29:23 +00:00
Christoph Hartmann
6b0c67e485 Fix case where res is nil in etc_group for inspec check (#2984)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2018-04-26 12:29:12 -04:00
Chef Expeditor
1466fd3c96 Bump version to 2.1.56 by Chef Expeditor 2018-04-26 15:54:30 +00:00
David Alexander
72925a7145 Makes JSON resource enumerable, despite method_missing magic (#2910)
Signed-off-by: David Alexander <opensource@thelonelyghost.com>
2018-04-26 11:54:16 -04:00
Chef Expeditor
29573f7c37 Bump version to 2.1.55 by Chef Expeditor 2018-04-26 12:53:57 +00:00
Miah Johnson
709647c7c7 The #to_s method should return the @path rather than a hardcoded /etc/shadow. (#2978)
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-04-26 08:53:42 -04:00
Chef Expeditor
a3f4833069 Bump version to 2.1.54 by Expeditor 2018-04-19 17:51:21 +00:00
Chef Expeditor
bbaf315ce1 Bump version to 2.1.53 by Expeditor 2018-04-19 17:09:35 +00:00
Clinton Wolfe
8934352935 Make names for AWS Config service objects optional (#2928)
* Update tests and docs to assume one recorder per region
* Config recorder supports singleton fetch
* Docs and tests for singleton mode delivery_channel
* Implementation for singleton delivery channel, and some other code cleanup
* Implement some feedback, and fix a bug in traversing the struct in looking for empty results

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-19 13:08:16 -04:00
Chef Expeditor
3ef40016cc Bump version to 2.1.52 by Expeditor 2018-04-19 17:06:29 +00:00
Chef Expeditor
6428abfd4e Bump version to 2.1.51 by Expeditor 2018-04-19 17:03:38 +00:00
Jared Quick
33fc15582a
Add A2 support to the inspec-compliance toolset (#2963)
* Add A2 support to the inspec-compliance toolset.
* Add json-config option for login.

Signed-off-by: Jared Quick <jquick@chef.io>
2018-04-19 13:01:54 -04:00
Chef Expeditor
768dde71a7 Bump version to 2.1.50 by Expeditor 2018-04-19 17:00:54 +00:00
Henry Muru Paenga
a9e3b8d8d0 Amazon linux service mgmt detection (#2970)
Signed-off-by: Henry Muru Paenga <meringu@gmail.com>
2018-04-19 13:00:39 -04:00
Chef Expeditor
6d3ffb610d Bump version to 2.1.49 by Expeditor 2018-04-19 16:55:20 +00:00
Chef Expeditor
1a1f973471 Bump version to 2.1.48 by Expeditor 2018-04-17 17:24:41 +00:00
Clinton Wolfe
73b7b6942c
Inline and attached policies for aws_iam_user and aws_iam_users (#2947)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-17 13:22:28 -04:00
Chef Expeditor
a0a10e672c Bump version to 2.1.47 by Expeditor 2018-04-17 17:21:41 +00:00
Clinton Wolfe
146b60556d
Policy statement search: don't stacktrace on missing field (#2962)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-17 13:21:29 -04:00
Chef Expeditor
2e2346ff0c Bump version to 2.1.46 by Expeditor 2018-04-17 15:42:47 +00:00
Chef Expeditor
8426659bf2 Bump version to 2.1.45 by Expeditor 2018-04-16 14:04:13 +00:00
Clinton Wolfe
6853f232fa aws_iam_policy statement search fix for degenerate policies (#2958)
* Bug replication tests, unit and integration
* Fixes statement_count
* Fixes statement_count and have_statement
* rubocop trim whitespace

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-16 10:04:00 -04:00
Chef Expeditor
4931c5ace8 Bump version to 2.1.44 by Expeditor 2018-04-13 21:26:06 +00:00
Nathan Haneysmith
1c58202dbc updating output for aws_iam_role to match other AWS resources (#2960)
Signed-off-by: Nathan Haneysmith <nathan@chef.io>
2018-04-13 17:25:53 -04:00
Chef Expeditor
b0cd9316d5 Bump version to 2.1.43 by Expeditor 2018-04-12 21:58:07 +00:00
Jerry Aldrich
096481363d powershell resource: Add support line for Unix (#2952)
This allows the `powershell` resource to work on Linux/Unix/OSX

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-04-12 17:57:56 -04:00
Chef Expeditor
c82424b1cc Bump version to 2.1.42 by Expeditor 2018-04-12 20:18:49 +00:00
Jerry Aldrich
e33619264f Add Cisco IOS enable_password support (#2905)
* Add IOS transport and `enable_password` support
* Remove Cisco IOS connection swap (moving to Train)
* Pin to Train 1.4.0

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-04-12 16:18:34 -04:00
Chef Expeditor
9940dec0d7 Bump version to 2.1.41 by Expeditor 2018-04-12 20:15:19 +00:00
Omar J. Irizarry
a278ae921b Require a key attribute for the key_rsa resource (#2891)
Bug Fix #2865
* Defining an attribute without a default value generates a stacktrace
* Fix string quotes
* Moved logic out of the initilize method.
* Refactoring for better clarity.
* Fixing trailing white spaces
Signed-off-by: Omar J Irizarry <irizarry_omar_j@network.lilly.com>
2018-04-12 16:15:04 -04:00
Chef Expeditor
0c3bec2634 Bump version to 2.1.40 by Expeditor 2018-04-12 19:49:07 +00:00
Clinton Wolfe
745ff32c80 Basic fields for aws_vpcs (#2930)
* Update singular implementation to avoid use of inner object
* Update docs and tests for 3 new filters and properties on aws_vpcs
* Implement new filters and properties; one failing test due to odd FilterTable behavior
* changes to avoid bug 2929

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-12 15:48:55 -04:00
Chef Expeditor
b0f34ffd21 Bump version to 2.1.39 by Expeditor 2018-04-12 19:37:36 +00:00
Miah Johnson
b40e553f15 Ensure @params in shadow resource always has a valid value. (#2939)
* Add tests for method chained shadow resource with readable and
unreadable shadow files.

Ensure @params always has a safe value, otherwise we may stacktrace when
unable to read /etc/shadow and invoked with method chaining.

* Wrap deprecation notices with a proc/must_output to clean up test
output.

Added some missing newlines.

Catch deprecation notice on `lines`.

* Resolve the majority of the issues pointed out by @tbramble.

Deprecate `lines`; its really only used internally but it was 'exposed'
through tests and who knows if there is external use. `lines` is not
documented as a property at least..

`#set_params` is much better now =)

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-04-12 15:37:22 -04:00
Bj Maldonado
eff4de6784 Fixed Docs asking for instead of (#2933)
Signed-off-by: Bj Maldonado <bj@maldonado.io>
2018-04-12 15:26:32 -04:00
Chef Expeditor
b0ce734035 Bump version to 2.1.38 by Expeditor 2018-04-12 18:31:16 +00:00
Clinton Wolfe
7130a77c06
Policy Statement Search capability for aws_iam_policy (#2918)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-12 14:31:02 -04:00
Chef Expeditor
c83b887785 Bump version to 2.1.37 by Expeditor 2018-04-12 13:59:49 +00:00
Piotr Gospodarek
41c3dfccfe Add target attribute to test results for JUnit reporter. (#2839)
Signed-off-by: Piotr Gospodarek <pgospodarek@outlook.com>
2018-04-12 09:59:34 -04:00
Chef Expeditor
7173a8f66c Bump version to 2.1.36 by Expeditor 2018-04-11 19:13:49 +00:00
Chef Expeditor
eb3ae2aca4 Bump version to 2.1.35 by Expeditor 2018-04-11 19:11:14 +00:00
Trevor Bramble
6bfe741625 Add warning when returning DEFAULT_ATTRIBUTE (#2934)
When the anonymous DEFAULT_ATTRIBUTE class is used, log a warning.

We now pass in the attribute name to that class so it can be used in the
log message.

Signed-off-by: Trevor Bramble <tbramble@chef.io>
2018-04-11 15:11:01 -04:00
Chef Expeditor
ed625d22a1 Bump version to 2.1.34 by Expeditor 2018-04-11 08:24:58 +00:00
Chef Expeditor
1153d226d9 Bump version to 2.1.33 by Expeditor 2018-04-06 18:22:35 +00:00
Clinton Wolfe
4200fdd779 AWS Security Group Rules properties and matchers (#2876)
Provides low-, and mid-level properties and matchers for examining rules on aws_security_group.

* Second draft of docs for SG rules interface; need to clarify semantics of reject
* First cut at unit tests
* Cleanup test fixtures
* Implementation for allow, with plausible unit tests
* Doc updates based on reality
* Add integration tests; move allow to allow_ / out; several docs updates
* Add be_open_to_the_world and be_open_to_the_world_on_port
* Update docs to reflect adding allow_only
* Update docs to reflect use of position to allow multiple rules with 'only'
* Implement allow_only with unit tests; still need integration tests
* Add integration tests for allow_only

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-04-06 14:22:25 -04:00
Chef Expeditor
4a80cf936e Bump version to 2.1.32 by Expeditor 2018-04-06 18:07:42 +00:00
Matthew Dromazos
b5a0007851 aws_cloudtrail_trail feature: test how many days ago logs were delivered (#2887)
* * Adds new property to test how many days ago the CloudTrail delivered logs to the CloudWatch Logs.

* * Changes query for selected cloud trail in unit test
* Changes uses Time.now explicitly instead of making a variable in the unit test

Signed-off-by: Matthew Dromazos <dromazmj@dukes.jmu.edu>
2018-04-06 14:04:57 -04:00
Chef Expeditor
8fa93587c0 Bump version to 2.1.31 by Expeditor 2018-04-06 18:04:28 +00:00
Matthew Dromazos
74076bc44a aws_iam_group feature: test users in an iam group (#2888)
* Adds new property to test the users in an aws_iam_group
* Adds terraform code to add the recall_hit user to the administrator group

Signed-off-by: Matthew Dromazos <dromazmj@dukes.jmu.edu>
2018-04-06 14:04:13 -04:00
Chef Expeditor
c9be74ba86 Bump version to 2.1.30 by Expeditor 2018-04-05 16:52:28 +00:00
Matthew Dromazos
c04a98c9f8 New Skeletal Resource aws_route_tables (#2643)
* Initial commit of skeletal resource aws_route_tables
* Fixes issues with documentation
* Renames route table terraform resources to be more conventional
* Removes tags terraform resources
* Changes aws_route_table and aws_route_tables integration tests to use new terraform names
* Removes unneeded data given in unit tests

Signed-off-by: Matthew Dromazos <dromazmj@dukes.jmu.edu>
2018-04-05 12:51:22 -04:00