Commit graph

5586 commits

Author SHA1 Message Date
Nikita Mathur
fc925afaa4 Added resource id for rabbitmq and windows resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-03 17:07:45 +05:30
Vasu1105
1c66679e46 CFINSPEC-262 Adds resource_id to aide_conf, apache_conf, apt, audit_policy, auditd_conf, bash, bond, bridge, cassandradb_conf, cassandradb_session resources and unit test for the same
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-06-03 13:53:57 +05:30
Nikita Mathur
a57843b8e7 Added resource id for iis and other db resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-03 01:32:49 +05:30
Sonu Saha
d306ceca9a CFINSPEC-272: Add resource_id & unit test: timezone
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:16:03 +05:30
Sonu Saha
26293d656e CFINSPEC-272: Add resource_id: sys_info
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:09:27 +05:30
Sonu Saha
d48811ded2 CFINSPEC-272: Add resource_id: sybase_session
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:08:16 +05:30
Sonu Saha
0bec2ea979 CFINSPEC-272: Add resource_id: sybase_conf
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:06:04 +05:30
Sonu Saha
5fd5e21181 CFINSPEC-272: Add resource_id: ssh_config, sshd_config
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 19:04:36 +05:30
Nikita Mathur
cac93ee152 added name to be used as resource id for docker resource - loosely unique
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-02 17:14:36 +05:30
Nikita Mathur
7b0b98edac Resource id added for filesystem, grub, group, gem and other resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-02 17:11:00 +05:30
Sonu Saha
d012aec0b8 CFINSPEC-266: Add resource_id & unit test: iptables
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:55:55 +05:30
Sonu Saha
a2c9597335 CFINSPEC-266: Add resource_id & unit test: ipnat
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:55:41 +05:30
Sonu Saha
389495793f CFINSPEC-266: Add resource_id & unit test: ipfilter
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:55:18 +05:30
Sonu Saha
56e5a67f97 CFINSPEC-266: Add resource_id & unit test: ip6tables
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:54:50 +05:30
Sonu Saha
3c1c28f3ec CFINSPEC-266: Add resource_id & unit test: interface
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:54:18 +05:30
Sonu Saha
67081c00d4 CFINSPEC-266: Add resource_id & unit test: ini, json, xml, yaml
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:53:37 +05:30
Sonu Saha
978288dd95 CFINSPEC-266: Add resource_id & unit test: inetd_conf
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:52:04 +05:30
Sonu Saha
4853077dfd CFINSPEC-266: Add resource_id & unit test: iis_site
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:51:14 +05:30
Sonu Saha
60f80b9f97 CFINSPEC-274: Add resource_id & unit test: zfs_pool
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:46:45 +05:30
Sonu Saha
84a68668dd CFINSPEC-274: Add resource_id & unit test: zfs_dataset
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:46:36 +05:30
Sonu Saha
c9181db3bc CFINSPEC-274: Add resource_id & unit test: yum
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:46:12 +05:30
Sonu Saha
8e13fb1f36 CFINSPEC-274: Add resource_id & unit test: x509_certificate
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:45:24 +05:30
Sonu Saha
1fb530e739 CFINSPEC-274: Add resource_id & unit test: wmi
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 16:44:41 +05:30
Nikita Mathur
298c83a550 Resource id added for etc, docker and file resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-06-02 16:32:06 +05:30
Sonu Saha
86a96f34f7 CFINSPEC-267: Add resource_id & unit test: mongodb
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:55:50 +05:30
Sonu Saha
b39ab1e5e1 CFINSPEC-267: Add resource_id & unit test: login_defs
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:52:26 +05:30
Sonu Saha
eac4e11b34 CFINSPEC-267: Add resource_id & unit test: limits_conf
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:50:49 +05:30
Sonu Saha
06029220b4 CFINSPEC-267: Add resource_id & unit test: service, launchd_service
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:48:29 +05:30
Sonu Saha
ee8d263b74 CFINSPEC-267: Add resource_id & unit test: ksh
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:31:22 +05:30
Sonu Saha
fb76150b3b CFINSPEC-267: Add resource_id: key_rsa
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:27:02 +05:30
Sonu Saha
c6d6ab334a CFINSPEC-267: Add resource_id: kernel_parameter
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:12:14 +05:30
Sonu Saha
aaca074141 CFINSPEC-267: Add resource_id to kernel_module
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 10:54:58 +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
Chef Expeditor
f2943b7bc8 Bump version to 5.17.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-01 13:37:06 +00:00
Clinton Wolfe
9e52000088
Merge pull request #6041 from inspec/ss/enhance-x509_certificate-resource
CFINSPEC-95: Enhance `x509_certificate` resource
2022-06-01 09:36:05 -04:00
Sonu Saha
4d538f57c2 CFINSPEC-291: Remove byebugs and noise
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-01 13:30:28 +05:30
Sonu Saha
39b4f0a7a5 CFINSPEC-291: Initial fix to consider processes without path on Windows
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-01 13:09:30 +05:30
Chef Expeditor
32ce41a438 Bump version to 5.17.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-06-01 00:57:01 +00:00
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
Chef Expeditor
96036f947d Bump version to 5.17.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-24 14:16:15 +00:00
Chef Expeditor
07fd5253ef Bump version to 5.17.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-23 03:58:23 +00:00
Chef Expeditor
7c91ab87b0 Bump version to 5.17.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-23 03:55:07 +00:00
Chef Expeditor
ed171586eb Bump version to 5.17.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-18 09:06:04 +00:00
Chef Expeditor
d60f7a8c86 Bump version to 5.17.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-17 11:08:12 +00:00
Sonu Saha
a0a6a39bb0 CFINSPEC-81: Add supports platform check
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-17 12:51:42 +05:30
Sonu Saha
f16b948bdc CFINSPEC-81: Handle situation for integer config values
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-17 12:51:42 +05:30
Sonu Saha
7c3cddbc84 CFINSPEC-81: Add php_config resource with value property
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-17 12:51:42 +05:30
Chef Expeditor
bf06bebdff Bump version to 5.16.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-17 06:05:50 +00:00
Chef Expeditor
8cbab96ae7 Bump version to 5.16.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-17 06:03:51 +00:00
Vasundhara Jagdale
b1c1b1bc92
Merge pull request #5991 from inspec/ss/enhance-processes-resource
CFINSPEC-92: Enhance `processes` resource
2022-05-17 06:01:55 +00:00
Chef Expeditor
dcdf9c99c9 Bump version to 5.16.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-05-17 06:01:41 +00:00
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
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
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
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
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
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
d72933a252 CFINSPEC-95: Modify have_purpose matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-05-06 15:54:05 +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
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
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
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
Sonu Saha
c80c55299d CFINSPEC-84: Add documentation for x509_private_key
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-29 12:47:50 +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
55eeef75bb CFINSPEC-84: Add exception handling for has_matching_certificate
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-27 14:58:56 +05:30
Sonu Saha
13f30b2f63 CFINSPEC-84: Clean code and add comments
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-26 14:33:38 +05:30
Sonu Saha
24fa858ca5 CFINSPEC-84: Add have_matching_certificate matcher.
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-26 14:29:55 +05:30
Sonu Saha
2a28a6379e CFINSPEC-84: Add be_encrypted matcher for x509_private_key
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-26 11:55:20 +05:30
Sonu Saha
21bed51bc7 CFINSPEC-84: Add be_valid matcher for x509_private_key
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-25 20:34:46 +05:30
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
Sonu Saha
93236e364f CFINSPEC-92: Add be_running matcher for processes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-20 21:18:27 +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
Sonu Saha
6d8fbbb543 CFINSPEC-78: Add comments for new matchers & property
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-19 09:33:07 +05:30
Sonu Saha
2e243617a5 CFINSPEC-78: Add rules property for the resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-19 09:33:07 +05:30
Sonu Saha
117c9230e9 CFINSPEC-78: Add be_running matcher for the resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-19 09:29:15 +05:30
Sonu Saha
bef163f75b CFINSPEC-78: Add be_enabled matcher for the resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-19 09:29:15 +05:30
Chef Expeditor
1e911232f1 Bump version to 5.13.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-18 22:07:20 +00:00
Clinton Wolfe
bfb02ce8a2
Merge pull request #5987 from inspec/ss/enhance-group-resource
CFINSPEC-89: Enhance `group` resource
2022-04-18 18:06:20 -04:00
Chef Expeditor
bb14bfd5f5 Bump version to 5.13.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-18 22:05:14 +00:00
Clinton Wolfe
7fddb8c772
Merge pull request #5981 from inspec/ss/enhance-service-resource
CFINSPEC-93: Enhance `service` resource
2022-04-18 18:04:16 -04:00
Chef Expeditor
f3346506a0 Bump version to 5.13.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-18 22:00:19 +00:00
Clinton Wolfe
387e3d25c8
Merge pull request #5986 from inspec/ss/enhance-file-resource
CFINSPEC-87: Enhance `file` resource
2022-04-18 17:59:19 -04:00
Chef Expeditor
3ce59700e3 Bump version to 5.13.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-18 21:47:27 +00:00
Vasu1105
07f6793533 CFINSPEC-181: Fix unable to upload inspec compliance profile using to Chef Automate.
Add --with-cookstyle option to inspec check command to disable cookstyle check as default

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-04-14 21:47:10 +05:30
Sonu Saha
598df4a3a8 CFINSPEC-93: Remove redundant methods from child class of MonitoringTool
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-14 10:31:43 +05:30
Sonu Saha
fde99cb651 CFINSPEC-87: Remove redundant methods from child class of ImmutableFlagCheck
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-14 10:24:10 +05:30
Sonu Saha
c4d7b24d25 CFINSPEC-87: Fix typos in exception message
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-14 10:11:26 +05:30
Chef Expeditor
7d1ad0acc3 Bump version to 5.13.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-13 22:00:56 +00:00
Clinton Wolfe
b1d113e986
Merge pull request #5979 from inspec/ss/add-default_gateway-resource
CFINSPEC-75: Add default_gateway resource
2022-04-13 17:59:52 -04:00
Sonu Saha
d4655f5ee4 CFINSPEC-87: Fix typos in error message
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-14 02:03:33 +05:30
Sonu Saha
2f7c65d1a4 CFINSPEC-89: Add have_gid matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-13 16:50:10 +05:30
Sonu Saha
048f0019ae CFINSPEC-87: Extend file resource with content_as_yaml property
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-13 11:49:00 +05:30
Sonu Saha
02c1bcb3f5 CFINSPEC-87: Extend file resource with content_as_json property
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-13 11:28:11 +05:30
Sonu Saha
babf21466c CFINSPEC-87: Extend file resource with be_immutable matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 16:49:58 +05:30
Sonu Saha
50f3026578 CFINSPEC-93: Correct exception message
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 12:40:08 +05:30
Sonu Saha
f5afe10017 CFINSPEC-93: Add comments and exception guard clause for new matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 10:07:25 +05:30
Sonu Saha
f55c3e8190 CFINSPEC-93: Add monitored_by matcher;
Supported monitoring tool: monit & god

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 09:52:47 +05:30
Sonu Saha
ab3fd0bc3e CFINSPEC-93: Add have_start_mode matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-12 09:52:47 +05:30
Chef Expeditor
f00b3341dd Bump version to 5.12.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-12 00:34:25 +00:00
Chef Expeditor
aa32588d1b Bump version to 5.12.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-08 14:01:34 +00:00
Chef Expeditor
74064a93c6 Bump version to 5.12.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-08 13:58:34 +00:00
Sonu Saha
e21445cc4c CFINSPEC-75 Add default_gateway resource logic
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-07 09:12:12 +05:30
Chef Expeditor
d72125401e Bump version to 5.12.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-06 22:41:21 +00:00
Sonu Saha
8201b6acb1 CFINSPEC-83: Add documentation and comments
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-06 21:11:58 +05:30
Sonu Saha
1759912ade CFINSPEC-83: Add unit test and associated changes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-06 21:11:48 +05:30
Sonu Saha
30157e0cd5 CFINSPEC-83: Add routing_table resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-06 21:09:05 +05:30
Chef Expeditor
a59f30bee7 Bump version to 5.11.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-06 13:33:22 +00:00
Clinton Wolfe
5a8e6aaccb
Merge pull request #5961 from inspec/ss/add-mail_alias-resource
CFINSPEC-80: Add mail alias resource
2022-04-06 09:31:08 -04:00
Chef Expeditor
cd448f5f01 Bump version to 5.10.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-06 13:29:36 +00:00
Clinton Wolfe
5b6540c563
Merge pull request #5959 from inspec/ss/enhance-user-resource
CFINSPEC-94: Enhance user resource
2022-04-06 09:28:19 -04:00
Chef Expeditor
440d8a97d9 Bump version to 5.10.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-04-05 14:55:48 +00:00
Sonu Saha
28b92b0f99 CFINSPEC-94: Add comment on why cat/type is used instead of reading the file with inspec.file
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-31 19:53:29 +05:30
Sonu Saha
5ec479fff3 CFINSPEC-94: Remove user specific matchers from universal matchers & include in user
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-31 19:44:30 +05:30
Sonu Saha
853afe2244 CFINSPEC-80: Improve grep to match sentence starting with alias followed by :
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-31 15:07:06 +05:30
Sonu Saha
91ffb07901 CFINSPEC-94: Refactor belongs_to_group
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-31 11:51:36 +05:30
Chef Expeditor
afa46892f7 Bump version to 5.10.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-31 00:17:26 +00:00
Clinton Wolfe
82df8c8a52
Merge pull request #5948 from myii/fix/ensure-installed-true-not-always-returned-for-freebsd-service
fix(service): ensure `installed: true` isn't always returned on FreeBSD
2022-03-30 20:16:19 -04:00
Chef Expeditor
d73e19096f Bump version to 5.10.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-30 23:57:50 +00:00
Clinton Wolfe
b1835bf9f9
Merge pull request #5945 from inspec/ss/enhance-docker-image
CFINSPEC-86: Enhance docker_image resource
2022-03-30 19:56:48 -04:00
Chef Expeditor
8156a66e8d Bump version to 5.10.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-30 23:55:02 +00:00
Clinton Wolfe
a484f3e354
Merge pull request #5944 from inspec/ss/enhance-docker-container
CFINSPEC-85: Enhance docker_container resource with have_volume matcher
2022-03-30 19:53:52 -04:00
Chef Expeditor
3643266dbf Bump version to 5.10.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-30 23:51:32 +00:00
Clinton Wolfe
140a176af5
Merge pull request #5956 from mitre/progress-bar-update
updates to reporting detail on progress bar
2022-03-30 19:50:21 -04:00
Sonu Saha
af7ed7bc15 CFINSPEC-80: Handle comma separated alias values, add documentation
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-30 19:50:45 +05:30
Sonu Saha
65f4766bec CFINSPEC-80: Define aliased_to matcher and add unit test
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-30 17:26:15 +05:30
Sonu Saha
f1f0ecb631 CFINSPEC-80: Skeleton of resource, unit test and doc
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-30 16:11:12 +05:30
Sonu Saha
2d068bee27 CFINSPEC-94: Introduce requested changes after review
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-30 12:58:42 +05:30
Sonu Saha
1a5c6c2772 CFINSPEC-94: Add unit test for introduced matchers and properties
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
95a6ecca6b CFINSPEC-94: Remove old comments that says deprecation for serverspec
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
d4e49c87b7 CFINSPEC-94: Clean code, lint check and add comments
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
6dfa1e23db CFINSPEC-94: encrypted_password works with getent utility on BSD/Solaris
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
96103a8785 CFINSPEC-94: Implement encrypted_password property for linux systems
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
a043008785 CFINSPEC-94: Extend has_authorized_key for windows user
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
6d46e5ab71 CFINSPEC-94: Add has_authorized_key for basic unix case
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
112e8cc061 CFINSPEC-94: Add new matchers belong_to_group/primary_group
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
978e6ea798 CFINSPEC-94: Remove deprecation of minimum_days_between_password_change and maximum_days_between_password_change
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
a0d40a5d9c CFINSPEC-94: Remove deprecation of has_uid? matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
3f294bfbe1 CFINSPEC-94: Remove deprecation of has_login_shell? matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Sonu Saha
50fc284a43 CFINSPEC-94: Remove deprecation of has_home_directory? matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-29 04:53:24 +05:30
Chef Expeditor
4ed3d4bcc7 Bump version to 5.10.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-25 18:18:02 +00:00
Aaron Lippold
4eccdc1b5a removed excessive use of instance variables
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2022-03-25 13:01:14 -04:00
Aaron Lippold
ffd4706608 refactored to remove repeated code.
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2022-03-25 12:54:31 -04:00
Aaron Lippold
1150ef2d30 updates to reporting detail on progress bar
Signed-off-by: Aaron Lippold <lippold@gmail.com>
2022-03-25 12:02:29 -04:00
Chef Expeditor
5492ba69dc Bump version to 5.10.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-24 23:07:36 +00:00
Imran Iqbal
17084b4ad7
fix(service): ensure installed: true isn't always returned on FreeBSD
Fix regression introduced in 41ea0da4a9.

Close #5947.

Signed-off-by: Imran Iqbal <iqbalmy@hotmail.com>
2022-03-24 23:02:21 +00:00
Sonu Saha
f6115c7aeb CFINSPEC-86: Add comments and unit test for invalid keys
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 22:49:01 +05:30
Sonu Saha
e5a79c17d6 CFINSPEC-85: Add comments for the introduced matcher and method
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 22:36:44 +05:30
Sonu Saha
3eba207bcf CFINSPEC-86: Use method_missing and dig to achieve the goal
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 22:05:59 +05:30
Sonu Saha
9a9a5acb7a CFINSPEC-86: Replace def[] and override method_missing of json resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 15:31:58 +05:30
Sonu Saha
bfb78a2d23 CFINSPEC-86: Factorize def[] method
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 12:25:36 +05:30
Sonu Saha
617f1634e3 CFINSPEC-85: Handle multiple mounts for docker container
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-24 10:51:06 +05:30
Chef Expeditor
26e197a3a5 Bump version to 5.10.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 18:41:51 +00:00
Sonu Saha
d66fcd039a CFINSPEC-86: Allow container id to test inspect attributes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 23:21:22 +05:30
Sonu Saha
fbe78d0c93 CFINSPEC-86: Enhance docker_image with image inspect information
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 23:12:09 +05:30
Sonu Saha
20895030fa CFINSPEC-85: Allow have_volume to test with container id
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 23:08:29 +05:30
Sonu Saha
327d193a06 CFINSPEC-85: Handle exception for no mounted volumes
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 22:35:08 +05:30
Sonu Saha
e3295743f1 CFINSPEC-85: Extend docker_container with have_volume? matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 22:35:08 +05:30
Chef Expeditor
4f691564e4 Bump version to 5.10.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 14:25:15 +00:00
Chef Expeditor
0d2f6760eb Bump version to 5.10.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 14:15:34 +00:00
Clinton Wolfe
818f3dc6dc
Merge pull request #5938 from inspec/nm/oracle-empty-case
CFINSPEC-156 Oracle query fix when empty result
2022-03-23 10:13:57 -04:00
Chef Expeditor
9a77b1d5e5 Bump version to 5.10.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 13:50:19 +00:00
Clinton Wolfe
22f8e1a6e7
Merge pull request #5936 from inspec/nm/plugin-search-list-description
CFINSPEC-118 Description added in plugin list and search command
2022-03-23 09:48:36 -04:00
Chef Expeditor
b681a6e9aa Bump version to 5.10.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 13:45:22 +00:00
Clinton Wolfe
a15280fcc5
Merge pull request #5937 from inspec/vasundhara/fix-postgres-session-resource
CFINSPEC-154: postgres_session resource allow query errors to be treat as failures.
2022-03-23 09:44:06 -04:00
Chef Expeditor
829b9acf45 Bump version to 5.10.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 13:40:48 +00:00
Clinton Wolfe
03d0f2374b
Merge pull request #5935 from inspec/ss/resource-cgroup
CFINSPEC-73: Add cgroup resource
2022-03-23 09:39:32 -04:00
Chef Expeditor
1a75dcdcdd Bump version to 5.9.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-23 13:38:02 +00:00
Clinton Wolfe
4c351b00c8
Merge pull request #5931 from inspec/ss/resource-ppa
CFINSPEC-82: Add ppa resource
2022-03-23 09:36:48 -04:00
Sonu Saha
4f151bd72c CFINSPEC-73: Add unit test and relevant files for cgroup
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 08:40:34 +05:30
Sonu Saha
023f4275da CFINSPEC-73: Implement param match logic on dynamic valid queries
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 07:54:11 +05:30
Clinton Wolfe
d4aa361a83 Make cgroup work by using a static list. Also adjust cmd processing.
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-23 07:54:11 +05:30
Sonu Saha
c5a66f58a6 CFINSPEC-73: Initial draft of cgroup resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-23 07:54:11 +05:30
Nikita Mathur
0f4ccee07e Oracle session resource fix when empty results and zero rows
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-22 17:05:31 +05:30
Nikita Mathur
a8716f8dda More build fixes and pr review changes
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-22 15:52:45 +05:30
Vasu1105
2d0d972d65 CFINSPEC-154: Updates postgres_session resource to raise exception only in case of connection and authentication error and allow any errors in query to be fetched using output property(keeping earlier behaviour).
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-22 15:12:44 +05:30
Nikita Mathur
7442ef1941 Description fetch logic added for user plugin listing and test cases
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-21 15:04:33 +05:30
Nikita Mathur
e2d8ee1167 Text case fixes for plugin list/search
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-21 14:01:43 +05:30
Chef Expeditor
14203c6243 Bump version to 5.8.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-19 20:37:25 +00:00
Clinton Wolfe
aaad62e362
Merge pull request #5921 from inspec/ss/resource-lxc
CFINSPEC-79: Add linux container resource
2022-03-19 16:36:16 -04:00
Chef Expeditor
44c1d524e4 Bump version to 5.7.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-19 20:28:04 +00:00
Clinton Wolfe
55fe4b21f4
Merge pull request #5796 from inspec/vasundhara/virtualization_resource
CFINSPEC-1 Adds the ability to detect the Kubernetes container and Podman container.
2022-03-19 16:26:47 -04:00
Nikita Mathur
0cf44d324e Comment added for description in inspec status
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-18 17:37:01 +05:30
Nikita Mathur
bcc71df9dd Test cases for plugin listing and search added
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-18 17:27:45 +05:30
Nikita Mathur
9ecfad0122 Added gemspec file to core plugins to be used in plugin listing for description
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-18 17:27:11 +05:30
Nikita Mathur
9ae93eef34 Logic to add description in plugin listing and search
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-18 17:25:49 +05:30
Sonu Saha
def72decc2 CFINSPEC-82: RuboCup lint check
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-17 22:59:16 +05:30
Sonu Saha
dfb1ef817e CFINSPEC-82: Remove ppa resource deprecation for backward compatibility
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-17 22:59:16 +05:30
Chef Expeditor
273a081247 Bump version to 5.7.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-17 15:53:29 +00:00
Chef Expeditor
d6c0c3b76b Bump version to 5.7.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-16 16:33:51 +00:00
Sonu Saha
73920f76bc CFINSPEC-79: Raise exceptions and add relevant unit test for unsupported os
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-16 16:47:55 +05:30
Deepa Kumaraswamy
fe8a8b0016 doc review changes
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-03-16 16:46:14 +05:30
Deepa Kumaraswamy
e473693690 doc review changes
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
2022-03-16 16:44:06 +05:30
Sonu Saha
36bf43f350 CFINSPEC-79: Add unit test and its related changes for lxc resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-16 15:34:47 +05:30
Sonu Saha
41ddceaa85 CFINSPEC-79: RuboCop linting for lxc.rb
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-16 15:34:47 +05:30
Sonu Saha
24b8f13708 CFINSPEC-79: Initial draft for lxc resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-16 15:34:47 +05:30
Chef Expeditor
be0b8fd109 Bump version to 5.7.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-11 19:41:06 +00:00
Clinton Wolfe
02f97ac845
Merge pull request #5916 from inspec/RESOURCE-312-extend-filter-table
RESOURCE-312 extend filter table to lazy loading for resource instances
2022-03-11 14:39:54 -05:00
Chef Expeditor
04758a5fd2 Bump version to 5.7.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-11 19:37:48 +00:00
Clinton Wolfe
2241f49cca Default node_uuid to target_id like we did in 2018
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-11 11:29:28 -05:00
Clinton Wolfe
6f74a8ccfc Stylin
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-11 11:09:36 -05:00
Vasu1105
6e930303a4 Fix test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-11 17:31:08 +05:30
Vasu1105
adfe38c161 CFINSPEC-137: Set the target_id to blank string if unable to fetch it from train
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-11 15:47:50 +05:30
Vasu1105
ab01652ee2 CFINSPEC-137: Fix the failing test and lint for the --target-option deprication changes
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-11 15:47:50 +05:30
Vasu1105
8e85e2005b CFINSPEC-137: Deprecate --target-id option
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-11 15:47:50 +05:30
Chef Expeditor
a658bac10d Bump version to 5.7.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-11 09:56:06 +00:00
Sonu Saha
e070d0cbf3 Rename methods for cli_resource due to ambiguity with cli_plugin leading to test failure for plugin
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-11 13:08:58 +05:30
Sonu Saha
dc46fe9a73 Remove file.exists? deprecation in favor of file.exist?
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-11 13:07:55 +05:30
Chef Expeditor
dc99737283 Bump version to 5.7.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-10 20:41:28 +00:00
Clinton Wolfe
63a5fd26a6
Merge pull request #5597 from mitre/firewalld_update
Firewalld update -- exposed more fields, updated docs, added custom matchers
2022-03-10 15:40:17 -05:00
Chef Expeditor
56f81ee53c Bump version to 5.7.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-10 20:26:10 +00:00
Clinton Wolfe
b6b2fd385b
Merge pull request #5915 from inspec/nm/remove-cloud-resources
CFINSPEC-129 Removed cloud resources ( AWS & Azure ) from inspec-core
2022-03-10 15:24:59 -05:00
Chef Expeditor
b1f06ea35f Bump version to 5.7.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-10 19:17:00 +00:00
Clinton Wolfe
17c6010092
Merge pull request #5895 from inspec/vasundhara/support-generating-target-id
CFINSPEC-68 Adds target_id in the reporter.
2022-03-10 14:15:45 -05:00
Clinton Wolfe
9b78625b2f Fix some bugs found in lazy_instance implementation
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 13:51:39 -05:00
Chef Expeditor
a7903574a2 Bump version to 5.7.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-10 17:23:47 +00:00
Clinton Wolfe
06c30ac536
Merge pull request #5913 from inspec/ss/feature-resource-generator
CFINSPEC-128 : Create a resource generator
2022-03-10 12:22:21 -05:00
Vasu1105
72ba700669 CFINSPEC-68 Fix test
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 20:45:23 +05:30
Vasu1105
2561fd3b43 CFINSPEC-68 Adds target_id in the reporter under platform data.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 20:45:23 +05:30
Chef Expeditor
9fe26f4bc9 Bump version to 5.7.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-10 14:42:42 +00:00
Clinton Wolfe
571d84fabd
Merge pull request #5914 from inspec/vasundhara/add-entitlement-id-to-profile-metadata-file
CFINSPEC-26: Adds entitlement_id field in metadata file
2022-03-10 09:41:18 -05:00
Chef Expeditor
118a032b84 Bump version to 5.7.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-10 14:39:00 +00:00
Sonu Saha
2c4ea72a36 CFINSPEC-128 : Modify warning message for existing directory case
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
d78acc03ba Linting
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
bbdbc5c6b7 Remove old TODO message
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
c39329b82f Add a plural resource template
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
ed4fffe8d3 Add template option to control which template set to use
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
22f7e7c222 Add a layout option to control core vs resource pack layout
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
1160716a12 Cleanup - remove DS_Store files, unused functional test template
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
638522f0e0 Working unit tests, holey moley
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
6a39ed74a1 Enable overwrite mode
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
d54c52a932 Noninteractive mode works
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
3061d48fc2 Add path option
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
c4a98e6a6d Update doc template with property and matcher
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
f013e29eb0 Add properties and matchers to resource template; add wishlist
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-10 20:07:32 +05:30
Sonu Saha
81a04aacd5 CFINSPEC-128 Initial draft of resource generator
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-10 20:07:32 +05:30
Clinton Wolfe
e3108aabf0
Merge pull request #5891 from inspec/vasundhara/add-cron-resource
CFINSPEC-74 Adds the cron resource.
2022-03-10 09:37:23 -05:00
Chef Expeditor
270ad5fa4b Bump version to 5.6.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-10 14:36:30 +00:00
Sathish
07545a8058
assume lazy caller always resonds to resource instance
Signed-off-by: Sathish <sbabu@progress.com>
2022-03-10 20:04:57 +05:30
Nikita Mathur
9e1ef742f8 Test cases fixed and new test cases added
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-10 19:24:52 +05:30
Nikita Mathur
39081c51ba Docs removed of inspec-core and some changes
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-10 19:24:52 +05:30
Nikita Mathur
41ba05f901 Removed aws and azure resources, unit and integration tests
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-10 19:24:52 +05:30
Nikita Mathur
7f4271e216 Error handling for deprecated aws and azure resources
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-10 19:24:52 +05:30
Sathish
b082a5cabf
Merge branch 'main' of github.com:inspec/inspec into RESOURCE-312-extend-filter-table 2022-03-10 19:24:28 +05:30
Sathish
ec47508fbd
execute lazy instance fields
Signed-off-by: Sathish <sbabu@progress.com>
2022-03-10 19:18:27 +05:30
Sathish
77de4644c5
execute filter table for populate lazy instance fields
Signed-off-by: Sathish <sbabu@progress.com>
2022-03-10 19:17:43 +05:30
Sathish
33d54348dc
populate lazy instance fields
Signed-off-by: Sathish <sbabu@progress.com>
2022-03-10 19:16:48 +05:30
Sathish
047d54994a
find lazy instance callbacks
Signed-off-by: Sathish <sbabu@progress.com>
2022-03-10 19:16:19 +05:30
Sathish
d2bdac6ff4
find lazy instance fields
Signed-off-by: Sathish <sbabu@progress.com>
2022-03-10 19:15:51 +05:30
Vasu1105
195de004e1 CFINSPEC-26: Adds entitlement_id field in metadata file
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-10 13:26:13 +05:30
Chef Expeditor
438daafb4b Bump version to 5.6.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-10 00:45:31 +00:00
Clinton Wolfe
4a63319840
Merge pull request #5871 from inspec/vasundhara/support-profile-gem-dependency
CFINSPEC-13:  Adds support for specifying gem dependencies in the metadata file of InSpec Profile.
2022-03-09 19:44:05 -05:00
Chef Expeditor
c72ddefbf3 Bump version to 5.5.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-10 00:40:37 +00:00
Chef Expeditor
2042299520 Bump version to 5.5.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-09 23:03:47 +00:00
Clinton Wolfe
a7fc842255 Doc edits
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-09 15:36:32 -05:00
Chef Expeditor
d9db9df4d7 Bump version to 5.5.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-09 17:51:34 +00:00
Will Dower
23d1749ee8 merging in master
Signed-off-by: Will Dower <wdower@mitre.org>
2022-03-07 15:53:10 -05:00
Chef Expeditor
4fef4dc950 Bump version to 5.5.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-07 15:30:01 +00:00
Clinton Wolfe
32c9f567f4
Merge pull request #5863 from inspec/nm/progress-bar
CFINSPEC-10 Added Progress Bar streaming reporter plugin
2022-03-07 10:28:39 -05:00
Vasu1105
28143592d2 Fixed minor docs typos.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-07 12:10:38 +05:30
Chef Expeditor
5874c19900 Bump version to 5.4.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-06 16:09:12 +00:00
Clinton Wolfe
924c0a24c8
Merge pull request #5903 from inspec/nm/resource_id-3
CFINSPEC-70 resource_id support take 3
2022-03-06 11:07:52 -05:00
Chef Expeditor
4bb6423886 Bump version to 5.4.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-04 22:16:38 +00:00
Chef Expeditor
88d5a6a92e Bump version to 5.4.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-04 22:00:47 +00:00
Vasu1105
c73dec70a7 CFINSPEC-13 Added exception handling for Gem BadRequirement error.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 21:16:18 +05:30
Clinton Wolfe
4594719be5 Fix for broken resource_id fetch when resource_title turns out, horrifyingly, to be a string
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 09:16:32 -05:00
Clinton Wolfe
3d8f5f9553 Revert "Revert "CFINSPEC-70 Added resource_id attribute for the custom resources in the base class""
This reverts commit 302bccf732.
2022-03-04 09:15:52 -05:00
Clinton Wolfe
c32f48ca88 Linting, sigh
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 00:34:46 -05:00
Clinton Wolfe
524aa15af0 Add validation and testing for the same
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 00:34:46 -05:00
Clinton Wolfe
84e25c2dbe Issue warning for inspec archive when profiles contain gem deps
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2022-03-04 00:34:46 -05:00
Vasu1105
9e15ebac1a CFINSPEC-13: Added option --auto-install-gems to work with both inspec exec and inspec check command.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
30f44b0462 CFINSPEC-13: Resolved the Unable to resolve gem dependency error on linux, Adds code to handle the loading of gems in the inspec check and fixed the test.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
9a561bce54 CFINSPEC-13: Adds code to handle all kinds of version constraint and improved installed gem search logic for the version constraint.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
b3f4c9c70a CFINSPEC-13 Added check so that the adding gem to vendor set block will get called on Windows. Renamed the metadata file parameter name to provide gem dependencies.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
dbdc1223c4 CFINSPEC-13: Adds venendor gem in the managed gem set which partially fix the issue of resolving dependecies on Windows.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
fa1d08c792 Updated the default version string.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
b1ce116ebb CFINSPEC-13: Adds the support to load the gem dependencies from dependent profiles.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Vasu1105
e3ef2cb912 CFINSPEC-13: Adds the ability to install and load the gem depedencies specified in the metadata file of profile/resource pack.
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2022-03-04 00:34:46 -05:00
Chef Expeditor
c5ac267ab4 Bump version to 5.4.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-04 05:34:14 +00:00
Clinton Wolfe
302bccf732
Revert "CFINSPEC-70 Added resource_id attribute for the custom resources in the base class" 2022-03-03 23:48:32 -05:00
Chef Expeditor
f769b7019d Bump version to 5.4.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-03 18:55:37 +00:00
Sonu Saha
f4f70f55ed CFINSPEC-66 : Add condition to skip ipfilter resource for darwin instead of failure
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:38:22 -05:00
Sonu Saha
7c0ff452b1 CFINSPEC-66 : Add ipfilter to resources.rb
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:38:22 -05:00
Sonu Saha
a854374b66 CFINSPEC-66 : Correct supports platform for ipfilter
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:37:35 -05:00
Sonu Saha
da875f7083 CFINSPEC-66 : Fix to_s method for ipfilter
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:37:35 -05:00
Sonu Saha
d07773f742 CFINSPEC-66 : Fix variable name for ipfilter
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:37:34 -05:00
Sonu Saha
f4efe5d0c3 CFINSPEC-66 : Fix RuboCop lint for ipfilter.rb
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:37:34 -05:00
Sonu Saha
7c874e67df CFINSPEC-66 : Add Ipfilter resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:37:34 -05:00
Chef Expeditor
136a805c1e Bump version to 5.3.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-03 18:31:27 +00:00
Sonu Saha
f7bff9b1b5 CFINSPEC-77 : Add condition to skip ipnat resource for darwin instead of failure
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:16:28 -05:00
Sonu Saha
832cb3582b CFINSPEC-77 : Add ipnat to resources.rb
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:16:28 -05:00
Sonu Saha
36f6206424 CFINSPEC-77 : Correct supports platform for ipnat
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:16:28 -05:00
Sonu Saha
7b2d076899 CFINSPEC-77 : Add Ipnat resource-cleanup
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:16:28 -05:00
Sonu Saha
dbfb5418fc CFINSPEC-77 : Fix RuboCop lint for ipnat.rb
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:16:28 -05:00
Sonu Saha
437abc866c CFINSPEC-77 : Add ipnat resource
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-03-03 13:16:28 -05:00
Chef Expeditor
96832435ae Bump version to 5.2.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-03 17:33:29 +00:00
Nikita Mathur
bb410b812c resource_id key added in json-automate/json reporter and exec-json schema
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-03 12:30:14 -05:00
Nikita Mathur
607d765d16 Subtle fix in resource_id definition and documentation updated
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-03 12:26:13 -05:00
Nikita Mathur
1e292900bd Resource id method changed to instance method and documentation added
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-03 12:26:13 -05:00
Nikita Mathur
8b8b4db2b2 Resource id attribute added for the resources in the base class
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2022-03-03 12:26:13 -05:00
Chef Expeditor
f9914628dc Bump version to 5.1.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2022-03-03 16:36:54 +00:00