Commit graph

10822 commits

Author SHA1 Message Date
Jeremiah Snapp
9c4b2e1921 Update omnibus and omnibus-software in Gemfile.lock
Uses new omnibus Windows builders.

Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2022-05-09 19:58:14 -04:00
Clinton Wolfe
5592f22e78 Add ability to export metadata and README
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-09 15:08:07 -04:00
Clinton Wolfe
a83dae4a2a Add validation options for --what and --format, add (failing) tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-09 14:17:05 -04:00
Chef Expeditor
1d672feca4
UNIT_TESTS: update yaml reporter test for Ruby 3+
Signed-off-by: Marijus Ravickas <marijus.ravickas@gmail.com>
2022-05-09 10:15:15 +03:00
Sonu Saha
e34708e3b1 CFINSPEC-90: Add documentation for new properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-07 00:40:31 +05:30
Sonu Saha
601df86d41 CFINSPEC-90: Add unit test for new properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-07 00:32:23 +05:30
Sonu Saha
72a986ace3 CFINSPEC-90: Correct existing unit test for windows to include ipv6 address
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-07 00:22:12 +05:30
Sonu Saha
1200638c84 CFINSPEC-90: Handle scenario when ipaddress is array of hashes in windows
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-07 00:21:04 +05:30
Sonu Saha
205a96abd1 CFINSPEC-90: Add ipv4_address and ipv6_address properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 23:13:05 +05:30
Sonu Saha
9d7c468fa5 CFINSPEC-90: Extend existing ipaddress property for windows
to include the ipv6 addresses as well

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 22:41:08 +05:30
Chef Expeditor
172ab5e49a Bump version to 5.15.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-06 13:29:04 +00:00
Clinton Wolfe
e62d10fabc
Merge pull request #6004 from inspec/ss/enhance-zfs-resource
CFINSPEC-96: Add `zfs` resource
2022-05-06 09:28:01 -04:00
Vasu1105
39375af741 CFINSPEC-191: export profile in yaml format with basic information
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-06 16:56:30 +05:30
Sonu Saha
3b03d6eb70 CFINSPEC-95: Add doc for new matchers & properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 16:30:17 +05:30
Sonu Saha
7fd4e76efb CFINSPEC-95: Extend unit test for have_purpose matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 16:21:19 +05:30
Sonu Saha
0bbea5eac5 CFINSPEC-95: Fix indentation
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 15:57:27 +05:30
Sonu Saha
82b86064d6 CFINSPEC-95: Add unit test for new matchers & properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 15:55:16 +05:30
Sonu Saha
d72933a252 CFINSPEC-95: Modify have_purpose matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 15:54:05 +05:30
Vasu1105
29def55515 CFINSPEC-192: Alias inspec json command to inspec export --format json
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-06 12:48:23 +05:30
Sonu Saha
b6f40113d5 CFINSPEC-95: Modify subject_alt_names property
to use existing code

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 12:13:29 +05:30
Sonu Saha
d759dd258c CFINSPEC-95: Add subject_alt_names property
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 11:53:22 +05:30
Vasu1105
637f6e263f Fix failing test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-06 11:36:33 +05:30
Vasundhara Jagdale
b7db4b438e
Merge pull request #6035 from inspec/cw/sign-misc-fixes-2
InSpec Sign: Several small bugs and usability fixes
2022-05-06 02:09:18 +00:00
Clinton Wolfe
de87080987 Several small bugs and usability fixes
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-05 19:33:19 -04:00
Vasu1105
cdb7cc5bdb Fixed failing test and adds test for signed dependent profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:52 +05:30
Vasu1105
49924f793b Fix for test failure
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:52 +05:30
Clinton Wolfe
bd60d1f2bc Fetch validation keys from GitHub if possible
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-05 22:00:52 +05:30
Clinton Wolfe
80eab84944 Look for signing and validation keys in user and source directories
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-05 22:00:52 +05:30
Clinton Wolfe
348de371f9 Fix log output, don't use temp dir
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-05 22:00:52 +05:30
Vasu1105
f908361f11 Fixed typo
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:52 +05:30
Vasu1105
f028ebf88d Refactored code to use existing archive command to archive the file.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:52 +05:30
Vasu1105
d2f41d2ba3 Adds test to execute signed profile.
Fixes failing test.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:52 +05:30
Vasu1105
07c21c53c9 Updated to generate binary format of the signed profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:52 +05:30
Vasu1105
6b7041376a Adds class iaf_file to validate the signed profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:52 +05:30
Vasu1105
89aaa621d4 CFINSPEC-146: Enable direct execution of signed profiles
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:52 +05:30
Vasu1105
e46a0af425 Renamed the method for validating header
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:51 +05:30
Vasu1105
c7d902875a CFINSPEC-183: Rename artifact commands to inspec sign
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:51 +05:30
Vasu1105
967dbfca56 CFINSPEC-167: Adds profile version check for signed profiles
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:51 +05:30
Vasu1105
46c497eaa1 CFINSPEC-167: Store the signed profile in binary format
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-05 22:00:51 +05:30
Sonu Saha
0cd343a3cc CFINSPEC-95: Alias keylength to key_length
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-05 15:37:39 +05:30
Sonu Saha
597a8d9177 CFINSPEC-95: Add exception handling for have_purpose matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-05 15:32:42 +05:30
Sonu Saha
322e057f05 CFINSPEC-95: Add have_purpose matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-05 15:26:19 +05:30
Sonu Saha
95c864092d CFINSPEC-95: Add email property
email property is an alias of subject.emailAddress property

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-05 13:10:42 +05:30
Chef Expeditor
79f11561fb Bump version to 5.14.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-05 00:17:10 +00:00
Clinton Wolfe
175370818a
Merge pull request #6030 from inspec/cw/add-source-keys
Add a sample validation key, to be used in testing key fetching
2022-05-04 20:15:18 -04:00
Clinton Wolfe
f584fbef9e Add a sample validation key, to be used in testing key fetching
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-04 20:14:03 -04:00
Deepa Kumaraswamy
a63f4049e3 review changes
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-05-04 16:14:35 +05:30
Deepa Kumaraswamy
ca952c00bb review-wip
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-05-04 16:14:35 +05:30
Sonu Saha
875e99099e CFINSPEC-92: Extend be_running matcher
to consider sleep state to be running

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-03 10:47:40 +05:30
Chef Expeditor
709372bac2 Bump version to 5.14.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-03 00:42:33 +00:00