Commit graph

10420 commits

Author SHA1 Message Date
Clinton Wolfe
fca941fdab Merge branch 'vasundhara/sign-profile-binary-format' of github.com:inspec/inspec into vasundhara/sign-profile-binary-format 2022-05-13 08:27:13 -04:00
Vasu1105
a78164927f Fixes lint failure and test failures which was causing as it's enable to modify the Frozen String literal.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Clinton Wolfe
0b587a98af Add ability to export metadata and README
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 00:31:32 +05:30
Clinton Wolfe
0553b7a359 Add validation options for --what and --format, add (failing) tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 00:31:32 +05:30
Vasu1105
81b05dfc2d CFINSPEC-191: export profile in yaml format with basic information
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
b64857358a CFINSPEC-192: Alias inspec json command to inspec export --format json
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
28f6eec56a Fix failing test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Clinton Wolfe
47bc41cd2c Several small bugs and usability fixes
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 00:31:32 +05:30
Vasu1105
3f22d899fb Fixed failing test and adds test for signed dependent profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
56b8306e34 Fix for test failure
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Clinton Wolfe
913e6215d4 Fetch validation keys from GitHub if possible
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 00:31:32 +05:30
Clinton Wolfe
0ec4461756 Look for signing and validation keys in user and source directories
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 00:31:32 +05:30
Clinton Wolfe
29034b6b9d Fix log output, don't use temp dir
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 00:31:32 +05:30
Vasu1105
9c2fa3f012 Fixed typo
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
6da6c85e54 Refactored code to use existing archive command to archive the file.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
c937573763 Adds test to execute signed profile.
Fixes failing test.

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
9ef83bfce8 Updated to generate binary format of the signed profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
6bb06eee5f Adds class iaf_file to validate the signed profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
d7b0d69e29 CFINSPEC-146: Enable direct execution of signed profiles
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
f0c868759d Renamed the method for validating header
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
9454821d7c CFINSPEC-183: Rename artifact commands to inspec sign
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
bfa781b8ec CFINSPEC-167: Adds profile version check for signed profiles
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Vasu1105
cd5fde279a CFINSPEC-167: Store the signed profile in binary format
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:31:32 +05:30
Chef Expeditor
bcd99943d7 Bump version to 5.15.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-12 14:49:54 +00:00
Clinton Wolfe
673000d64c
Merge pull request #6056 from inspec/vasundhara/fix-json-output-inputs
CFINSPEC-250: Fix for inspec json command does not populate the inputs for the profile
2022-05-12 10:48:38 -04:00
Vasu1105
e5e9bb0608 CFINSPEC-250: Fix for inspec json command does not populate the attribues/inputs for the profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-12 13:34:32 +05:30
Vasu1105
c0b55cd609 Fixes lint failure and test failures which was causing as it's enable to modify the Frozen String literal.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-10 14:54:31 +05:30
Vasundhara Jagdale
194401fae4
Merge pull request #6039 from inspec/vasundhara/alias-inspec-json-to-inspec-export
CFINSPEC-192  Alias inspec json command to inspec export --format json or yaml
2022-05-10 06:43:49 +00:00
Vasundhara Jagdale
abb3857660
Merge pull request #6048 from inspec/cw/export-readme-and-metadata
InSpec Sign: Export README and Metadata
2022-05-10 06:26:08 +00:00
Jeremiah Snapp
e1a1360bfc
Merge pull request #6049 from inspec/jsnapp/IPACK-192-use-new-windows-builders
Update omnibus and omnibus-software in Gemfile.lock
2022-05-09 20:39:09 -04:00
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
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
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
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