Commit graph

5214 commits

Author SHA1 Message Date
Vasu1105
8f995a3c8f CFINSPEC-340 Handle inspec exec to work with change in the headers and fixes the failing test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 11:10:34 +05:30
Vasu1105
04d93db068 CFINSPEC-340 Adds usage header line in the signed profile
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-08 10:35:16 +05:30
Vasu1105
078d1ce898 Updated sign and verify command to directly accept the path of the profile instead of additional option to provide those. Updated docs for the same.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-02 10:36:50 +05:30
Clinton Wolfe
6d4211ccaf
Merge pull request #6060 from inspec/vasundhara/profile-content-id-option
CFINSPEC-255 Add --profile-content-id option to inspec sign profile command
2022-06-01 13:16:54 -04:00
Vasu1105
fdb4d5c3ca Fix the --profile-content-id option not to overwrite the existing profile_content_id value in the metadata file
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-01 22:14:53 +05:30
Vasu1105
12b73a6609 Only adds or updates the profile_content_id without modifying the existing contents of the metadata file.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-30 14:37:39 +05:30
Vasu1105
16353af6e3 Fixed the profile content id option description.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-30 12:11:23 +05:30
Vasu1105
f8ea910f32 Fixed lint errors
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-17 11:25:13 +05:30
Vasu1105
4893472322 Handle the exception in case the keyname is not in proper format for signed profile.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-16 15:33:38 +05:30
Vasu1105
bee69410ca CFINSPEC-255: Add --profile-content-id option to inspec sign profile command
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 16:34:48 +05:30
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
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
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
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
Sonu Saha
8ea7a2ae41 CFINSPEC-96: Fix typo and modify classname appropriately
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-01 12:22:31 +05:30
Chef Expeditor
f32cd8ee4c Bump version to 5.14.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-28 01:00:50 +00:00
Clinton Wolfe
fa19d29bc8
Merge pull request #5998 from inspec/ss/fix-service-resource-for-amazon-linux-issue-5809
Fix for issue 5809 Service checks failing on Amazon linux 2022
2022-04-27 20:59:27 -04:00
Chef Expeditor
9f8a6282cc Bump version to 5.14.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-28 00:49:45 +00:00
Chef Expeditor
be0e7ad233 Bump version to 5.14.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-28 00:46:47 +00:00
Sonu Saha
96d9b2fcdb CFINSPEC-96: Add documentation for zfs resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-21 21:42:16 +05:30
Sonu Saha
ada1eaefcc CFINSPEC-96: Handle corner case and add comments
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-21 21:17:27 +05:30
Sonu Saha
3449285273 CFINSPEC-96: Add zfs resource with new matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-21 20:36:46 +05:30
Chef Expeditor
b98a802be3 Bump version to 5.14.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-20 13:24:55 +00:00
Sonu Saha
a8fb7bba1d Issue-5809: Fix for service resource on amazon linux
Commented out unit test for Amazon 1 Linux

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-20 16:52:07 +05:30
Sonu Saha
d9b527201b Issue-5809: Initial fix for service resource on amazon linux
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-20 15:26:22 +05:30