Commit graph

11321 commits

Author SHA1 Message Date
Chef Expeditor
712dad1278 Bump version to 6.6.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-24 13:03:19 +00:00
Vasundhara Jagdale
ebd3eeca55
CHEF-6412: Fix for virutalization resource undefined method file_read (#6947)
* Fix the undefined method file_read error which is causing virtualizaiton resource to set nil for virtualization platform check

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Adds unit test for virtualization resource detect podman container usind detect_container method.
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2024-01-24 18:32:06 +05:30
Vasundhara Jagdale
dc7631b8ac
Skip audit log test on Windows (#6950)
* Skip audit log test on Windows

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Fix the text in the audit log test

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2024-01-24 14:00:51 +05:30
Chef Expeditor
329eafa8f9 Bump version to 6.6.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-24 06:41:42 +00:00
Chef Expeditor
60e8a17290 Bump version to 6.6.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-24 06:39:33 +00:00
Nikita Mathur
7ac0f3d9d9
Fix to capture all the tests (it/its) within a control (#6912)
Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-01-24 12:09:20 +05:30
Nikita Mathur
7ac8ccf7c1
Unit tests added for enhanced outcomes (#6924)
Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-01-24 12:08:54 +05:30
Nikita Mathur
497fe04328
CHEF-4191 Waivers backward compatibility support with Chef Client (#6919)
* Initial commit to extend backward compatibilty support of waiver with chef client

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Changes in conditional checks using if instead of unless

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-01-24 12:08:29 +05:30
Chef Expeditor
25bbf1fad6 Update CHANGELOG.md with details from pull request #6933
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-24 06:33:28 +00:00
Nikita Mathur
75fe6a0e27
Unit tests added for iaf_file (#6933)
Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-01-24 12:02:31 +05:30
Chef Expeditor
37b2e1ded8 Update CHANGELOG.md with details from pull request #6918
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-24 06:28:20 +00:00
Ian Maddaus
0ea08b8fd8
Reorganize reusable text files (#6918)
* Reorganize reusable text files

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Update text

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* update archetype

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Use text file

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

---------

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
2024-01-24 11:57:22 +05:30
Chef Expeditor
c968237824 Update CHANGELOG.md with details from pull request #6948
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-23 13:51:12 +00:00
Vasundhara Jagdale
e48e0c7786
Fix failing ssh_key test on Windows (#6948)
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2024-01-23 19:20:13 +05:30
Chef Expeditor
5c15769f80 Update CHANGELOG.md with details from pull request #6944
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-22 15:22:31 +00:00
Vasundhara Jagdale
de83f17314
As there won't be more InSpec 4 release turning off dependabot for inspec-4 branch (#6944)
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2024-01-22 20:51:29 +05:30
Chef Expeditor
a4d8d73e1f Bump version to 6.6.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-19 16:27:23 +00:00
Vasundhara Jagdale
b946f5454d
CHEF-3962: Adds ability to verify ssh keys (#6656)
* ssh_key resource file

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Initial commit for unit test for ssh_key resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Fix linting and added resource in resources file

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* extend the ssh key resource to use file resource properties

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Updates the ssh_key resource to get length and type of key.

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Updates unit test for ssh_key resource.

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* ADDS Docs for ssh_key resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Fix Review: Empty file handling

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Fixed review comments and few code refactoring for ssh_key resource

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Doc edits

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Updates test

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
Co-authored-by: Ian Maddaus <ian.maddaus@progress.com>
2024-01-19 21:56:18 +05:30
Chef Expeditor
8af5834774 Update CHANGELOG.md with details from pull request #6945
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-19 09:56:30 +00:00
Vasundhara Jagdale
d1f9be7095
Temporarily turn off fetching of chef-licensing gem from artifactory to address checksum mismatch issue for mixlib-shellout gem.And make verify pipeline to work. (#6945)
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2024-01-19 15:25:29 +05:30
Chef Expeditor
68ca8138bd Bump version to 6.6.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-04 17:26:33 +00:00
Nikita Mathur
565df5073d
CHEF-8990 Remove dependency on active-support function blank? (#6914)
* Removed usage of blank? to solve active-support gem issue (Issue in inspec-core)

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Linting fix

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
2024-01-04 12:25:26 -05:00
Chef Expeditor
b4d235d230 Update CHANGELOG.md with details from pull request #6922
Obvious fix; these changes are the result of automation not creative thinking.
2024-01-04 15:56:57 +00:00
Vasundhara Jagdale
0e45195d9c
Update package download url to use https (#6922)
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2024-01-04 21:25:57 +05:30
Chef Expeditor
bf44ce19f2 Update CHANGELOG.md with details from pull request #6911
Obvious fix; these changes are the result of automation not creative thinking.
2023-12-19 11:10:57 +00:00
Ian Maddaus
b6c5cadb40
Set labeler action version (#6911)
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
2023-12-19 16:39:55 +05:30
Chef Expeditor
070381fc69 Bump version to 6.6.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-12-19 08:18:20 +00:00
Nikita Mathur
18847ac69d
Fix CI test for windows (#6913)
* Skip functional tests to match exit code for mandatory profile signing error in windows

Signed-off-by: Nik08 <nikita.mathur@progress.com>

* Addded comment to clarify skipping exit code matching test in windows

Signed-off-by: Nik08 <nikita.mathur@progress.com>

---------

Signed-off-by: Nik08 <nikita.mathur@progress.com>
2023-12-19 13:47:10 +05:30
Sonu Saha
b79ad46e5a
Fix examples for file resource provided in docs (#6899)
* Update docs and introduce test for file content

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

* TEST: Fix broken test due to changes in fixture

Signed-off-by: Sonu Saha <sonu.saha@progress.com>

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-12-13 18:38:52 +05:30
Chef Expeditor
325c647826 Bump version to 6.6.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-12-13 09:39:22 +00:00
Vasundhara Jagdale
17bd3115b2
Reduce version pinning (#6873)
* Remove pinning of version for dependencies in test environment

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Remove version pinning of minitest and html-proofer

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* html-proofer still breaks the 3.0 ruby verify pipeline so reverting the removal of version pinning for html-proofer

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Revert "Remove version pinning of minitest and html-proofer"

This reverts commit f816289f39.

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Remove the dependency on html-proofer gem as it's only used in single test.

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2023-12-13 15:07:57 +05:30
Chef Expeditor
b7aea02452 Update CHANGELOG.md with details from pull request #6872
Obvious fix; these changes are the result of automation not creative thinking.
2023-12-13 08:29:46 +00:00
Vasundhara Jagdale
bfb6a34ba7
Upgrades openssl version to 3.0.11 (#6872)
Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2023-12-13 13:58:30 +05:30
Chef Expeditor
cb5cbd4f20 Update CHANGELOG.md with details from pull request #6910
Obvious fix; these changes are the result of automation not creative thinking.
2023-12-13 08:24:44 +00:00
Sonu Saha
d5a5813f1f
ci: increase timeout for buildkite (#6910)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-12-13 13:53:28 +05:30
Chef Expeditor
79330432ba Bump version to 6.6.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-12-12 15:25:49 +00:00
Vasundhara Jagdale
f7f35594bc
Upgrade declared minimum ruby version in gemspec from 2.4.0 to 3.0.3 (#6790)
* Upgrade ruby version in gempsec file

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Update to support ruby >= 3.0.3

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
2023-12-12 20:54:28 +05:30
Chef Expeditor
2af7d1205c Bump version to 6.6.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-12-05 07:21:07 +00:00
dependabot[bot]
f6b1e23d52
Bump omnibus-software from d357d5c to f50a2ad in /omnibus (#6904)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `d357d5c` to `f50a2ad`.
- [Commits](d357d5cf84...f50a2ad7ef)

---
updated-dependencies:
- dependency-name: omnibus-software
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 12:49:45 +05:30
Chef Expeditor
150789175d Bump version to 6.6.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-12-04 14:10:05 +00:00
dependabot[bot]
edfc47d7d8
Bump omnibus-software from 4fef367 to d357d5c in /omnibus (#6897)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `4fef367` to `d357d5c`.
- [Commits](4fef36786e...d357d5cf84)

---
updated-dependencies:
- dependency-name: omnibus-software
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 19:38:44 +05:30
Chef Expeditor
690d036f8a Update CHANGELOG.md with details from pull request #6844
Obvious fix; these changes are the result of automation not creative thinking.
2023-11-16 09:35:29 +00:00
Ian Maddaus
9735125ec5
InSpec docs reorganization (#6844)
* Cloud platform docs

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Profiles docs

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Move related tools

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Edit inspec exec

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Rewrite landing page

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Rewrite config page

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* More changes

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Reorganize pages in menu

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Reorganizing profile signing page

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Fix link

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

---------

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
2023-11-16 04:34:17 -05:00
Chef Expeditor
a84498ca5f Update CHANGELOG.md to reflect the promotion of 6.6.0
Obvious fix; these changes are the result of automation not creative thinking.
2023-11-14 13:53:10 +00:00
Chef Expeditor
e9853e10a3 Update CHANGELOG.md with details from pull request #6857
Obvious fix; these changes are the result of automation not creative thinking.
2023-11-14 03:45:45 +00:00
Clinton Wolfe
5fc29f2f0a
Document where to look up the platform list (#6857)
* Document where to look up the platform list

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Update docs-chef-io/content/inspec/profiles.md

Signed-off-by: "clintoncwolfe@gmail.com"

Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>

---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
2023-11-13 22:44:33 -05:00
Chef Expeditor
6118faa7ae Bump version to 6.6.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-11-13 14:42:16 +00:00
Sonu Saha
c245a4cd28
PATCH: Fix for broken integration of reporters for compliance-mode (#6859)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-11-13 09:40:35 -05:00
Chef Expeditor
e3708cfa7d Bump version to 6.6.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-11-09 15:29:34 +00:00
Vasundhara Jagdale
20d0a9dc0d
CHEF-6440: Integrates audit logging feature (#6809)
* Adds cli options to enable audit log and configure the audit log

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Updated code to validate the audit log options. Audit log options are only valid for inspec exec and inspec shell command as those commands use the backend to execute commands and for file operations

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Updates cli options documentation for audit log options

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Disable audit log in test environment unless and until explicitly --enable-audit-log option is provided in test

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Rename enable-audit-log cli option to disable-audit-log

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* CHEF-8210 Enables feature preview flag for audit logging

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Revert "Disable audit log in test environment unless and until explicitly --enable-audit-log option is provided in test"

This reverts commit 50a42f0b44cf2fde6d927a00e444370cdd288a5d.

* Adds functional test for audit logging feature

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Updates cli doc for audit loggin feature flag

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Debug why audit log functional test fails in ci environment

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Revert "Rename enable-audit-log cli option to disable-audit-log"

This reverts commit d5169ec705.

* Revert "Debug why audit log functional test fails in ci environment"

This reverts commit 6f43898ad0.

* Removes the --enable-audit-log option from cli as feature flag will handle the enabling and disabling of audit log feature. And introduces few code changes after reverting renaming of --enable-audit-log option

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Updates the functional test for audit log

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* REVERT THIS ONCE THE TEST IS GREEN: This is just to test implementation of audit log against the train changes made for audit log

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Removes the right one

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Documentation for inspec audit logging feature

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Renames inspec audit log file

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Edits to audit log docs

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>

* Remove --audit-log-rotation and --audit-log-size option to set from CLI

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Make sure we delete audit log file before running each test

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Appends timestamp and process id to generate audit log file per invocation/execution

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Updates functional test for audit logging feature

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Fix typo in audit logging docs

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Appends the timestamp and process id to user provided audit log file so that unique audit log file created per invocation

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Updates the audit log functional test

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Minor code improvements

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Adds exception class for invalid audit log options

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Revert "REVERT THIS ONCE THE TEST IS GREEN: This is just to test implementation of audit log against the train changes made for audit log"

This reverts commit a66137e70b.

* Upgrade train-core version pinning

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

* Docs review

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Fix titles

Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>

* Update the signature for features.yaml file

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Ian Maddaus <ian.maddaus@progress.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Ian Maddaus <ian.maddaus@progress.com>
2023-11-09 10:28:12 -05:00