Commit graph

10822 commits

Author SHA1 Message Date
Vasundhara Jagdale
0978c8c274
Merge pull request #6045 from inspec/ss/enhance-host-resource
CFINSPEC-90: Enhance `host` resource
2022-05-17 06:01:15 +00:00
Vasundhara Jagdale
a0fba6d46d
Merge pull request #6018 from inspec/ss/add-x509_private_key-resource
CFINSPEC-84: Add `x509_private_key` resource
2022-05-17 06:00:03 +00:00
Vasu1105
f8ea910f32 Fixed lint errors
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-17 11:25:13 +05:30
Clinton Wolfe
bcdf0c735e
Merge pull request #6061 from inspec/cw/sign-docs-2
CFINSPEC-153 InSpec Sign - Docs take 2
2022-05-17 00:02:05 -04:00
Clinton Wolfe
ef0ec3a245 Fix some grammar issues
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-17 00:01:00 -04:00
Chef Expeditor
c953ca6f9a Bump version to 5.15.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-17 03:23:03 +00:00
Clinton Wolfe
1d4e70ede5
Merge pull request #6057 from inspec/vasundhara/gem-dependency-version-issue
CFINSPEC-252: Fix profile gem dependency installation is failing when  gem version is not specified
2022-05-16 23:21:52 -04:00
Jeremiah Snapp
b4a5f54517
Merge pull request #6062 from inspec/jsnapp/fix-omnibus-test.ps1
Fix omnibus-test.ps1
2022-05-16 22:32:35 -04:00
Jeremiah Snapp
b04760b7f9 Fix omnibus-test.ps1
Use Throw instead of Exit to ensure the CI job fails when a command has
a non-zero exit code.

Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2022-05-16 16:55:16 -04:00
Deepa Kumaraswamy
461c992808 edits
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-05-16 17:58:29 +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
Deepa Kumaraswamy
c66cb3406a Doc Review
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-05-13 20:46:52 +05:30
Deepa Kumaraswamy
d49f3c5f45 doc review
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-05-13 20:26:58 +05:30
Deepa Kumaraswamy
6ef2eae488 doc review
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-05-13 19:55:49 +05:30
Deepa Kumaraswamy
833a437e92 Doc review
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-05-13 19:15:25 +05:30
Clinton Wolfe
3cfbd83974 Add YAML export example
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 08:28:06 -04:00
Clinton Wolfe
19b63c6b82 Rough draft of inspec sign documentation
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-05-13 08:27:53 -04:00
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
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
Vasu1105
163095859d CFINSPEC-252: Fix profile gem dependency installation is failing when gem version is not specified.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-05-13 00:18:03 +05:30
Sonu Saha
e879ef89a5 CFINSPEC-95: Remove redundant code
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-13 00:00:44 +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