Commit graph

10961 commits

Author SHA1 Message Date
Clinton Wolfe
1d8a2fcaa2 Sync changes from inspec-6 CI adjustments
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-07 15:39:51 -04:00
Sonu Saha
50aabd06d3
CHEF-3895: Prevent Stacktrace in STDOUT by handling Invalid License exception during license add (#77)
* FIX: Handle invalid license exception as handled in base_cli:57

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

* Use 174 error code when exiting with license subsystem error from license add

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-06 23:23:43 -04:00
Chef Expeditor
c4ba48b36f Bump version to 6.4.33 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-07 01:25:07 +00:00
Vasundhara Jagdale
dfb0172992
Adds test for licensing_config (#57)
* Adds test for licensing_config

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Fix lint

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

Read the value of license server url from env for test

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Spell InSpec corrrectly in test

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

* Linting

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

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-06 21:24:05 -04:00
Chef Expeditor
efdfc6f390 Bump version to 6.4.32 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-06 23:57:27 +00:00
Sonu Saha
20a4586ae8
LOGGER: Configure chef-licensing to use InSpec Logger (#67)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-07-06 19:56:33 -04:00
Chef Expeditor
b15da2312d Bump version to 6.4.31 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-06 23:30:46 +00:00
Chef Expeditor
c1d5d326a2 Bump version to 6.4.30 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-06 23:29:22 +00:00
Clinton Wolfe
e998658b7b
Drop testing on EOL ruby 2.7, and run linter on Ruby 3.1 (#76)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-07-06 19:29:16 -04:00
Sonu Saha
8323ecd5c5
CHORE: Casing correction of product name from Inspec to InSpec (#78)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-07-06 19:28:23 -04:00
Chef Expeditor
427fab3f6c Bump version to 6.4.29 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-04 20:06:27 +00:00
Clinton Wolfe
a3028b1fc8
For #6493 : Add postgres_session support for custom port with a socket connection (#6494) (#40)
* Add support for custom port with a socket connection



* Add tests for the postgres_session with custom port



---------

Signed-off-by: Pg <pg.developper.fr@gmail.com>
Co-authored-by: Pg <pg.developper.fr@gmail.com>
2023-07-04 16:05:25 -04:00
Chef Expeditor
40c5b91677 Bump version to 6.4.28 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-04 20:00:49 +00:00
dependabot[bot]
28150d632c
Bump omnibus-software from 88169e3 to 4b08f0b in /omnibus (#73)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `88169e3` to `4b08f0b`.
- [Commits](88169e3905...4b08f0bc06)

---
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-07-04 15:59:46 -04:00
Chef Expeditor
07776239a6 Bump version to 6.4.27 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-07-04 19:59:03 +00:00
Clinton Wolfe
1ecf6bdae0
CHEF-3759 Crossport public 6540 Fix for inspec parallel on windows crashing due to error log rename (#74)
* Error logging changes to fix renaming of files in windows

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Parallel rename, delete and logging fix for windows

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Log path changes reverted after testing with static logs directory

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fix lint

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>

* Logic to rename error log files on interrupt

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* An attempt to reduce the delay on control c interrupt by killing child process instantly

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Only rename existing file of the child process to avoid conficts in renaming

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fix in renaming with control-c interrupt by invoking from command library itself

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Added logic to wait for processes to die after process kill, to fix error on interrupt

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Removed idle inititation on status super reporter for parallel - needs future improvements

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Fileutils Mkdir usage refactoring

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-07-04 15:58:04 -04:00
Chef Expeditor
781642cbe7 Update CHANGELOG.md with details from pull request #64
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:11:31 +00:00
Sonu Saha
cbea295028
Foreports #6526 and #6541: Update Docker base image to be ubuntu 22.04 (#64)
* Update Docker base image to be ubuntu 22.04

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

* SUPPORT: Update dockerfile for m1 support

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

---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-06-27 22:10:31 -04:00
Chef Expeditor
a07c15e6a8 Bump version to 6.4.26 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:09:37 +00:00
Chef Expeditor
227ea5c3c6 Bump version to 6.4.25 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:08:04 +00:00
Clinton Wolfe
b9bc201ced
CHEF-3806 Fix for InSpec Parallel hangs for cetain CIS profile on Windows. (#71)
Sending EOF Marker at the end of of the whole suit run here instead of depending on the controls count

Signed-off-by: Vasu1105 <vasundhara.jagdale@progress.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@progress.com>
2023-06-27 22:07:39 -04:00
dependabot[bot]
28031ae7ff
Bump omnibus from 15122f2 to 9c0643a in /omnibus (#70)
Bumps [omnibus](https://github.com/chef/omnibus) from `15122f2` to `9c0643a`.
- [Release notes](https://github.com/chef/omnibus/releases)
- [Commits](15122f2565...9c0643a3a4)

---
updated-dependencies:
- dependency-name: omnibus
  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-06-27 22:07:02 -04:00
Chef Expeditor
a68c0f5760 Bump version to 6.4.24 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:03:14 +00:00
Chef Expeditor
095e7ef247 Bump version to 6.4.23 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-28 02:01:40 +00:00
dependabot[bot]
cb8d6994f1
Bump berkshelf from 8.0.2 to 8.0.7 in /omnibus (#63)
Bumps [berkshelf](https://github.com/chef/berkshelf) from 8.0.2 to 8.0.7.
- [Changelog](https://github.com/chef/berkshelf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chef/berkshelf/compare/v8.0.2...v8.0.7)

---
updated-dependencies:
- dependency-name: berkshelf
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-27 22:00:37 -04:00
Sonu Saha
e6d5dc2b9a
Update rspec to 3.12 (#6523) (#65)
Update RSpec dependency. There are some fixes and no breaking changes in 3.12

Signed-off-by: Phil Pirozhkov <hello@fili.pp.ru>
Co-authored-by: Phil Pirozhkov <pirj@users.noreply.github.com>
2023-06-27 22:00:04 -04:00
Chef Expeditor
38c4346da6 Bump version to 6.4.22 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-23 15:54:37 +00:00
dependabot[bot]
58db4fccaa
Bump omnibus from cf97613 to 15122f2 in /omnibus (#62)
Bumps [omnibus](https://github.com/chef/omnibus) from `cf97613` to `15122f2`.
- [Release notes](https://github.com/chef/omnibus/releases)
- [Commits](cf97613115...15122f2565)

---
updated-dependencies:
- dependency-name: omnibus
  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-06-23 11:53:37 -04:00
Chef Expeditor
a2e0baafe6 Bump version to 6.4.21 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-23 15:51:31 +00:00
dependabot[bot]
c02150e246
Bump omnibus-software from 225e357 to 88169e3 in /omnibus (#61)
Bumps [omnibus-software](https://github.com/chef/omnibus-software) from `225e357` to `88169e3`.
- [Commits](225e3576c4...88169e3905)

---
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-06-23 11:50:26 -04:00
Chef Expeditor
a4ea6578c7 Bump version to 6.4.20 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-22 15:02:58 +00:00
Nikita Mathur
f031999218
CHEF-3704 Modify help for local licensing service mode and other distros (#59)
* Update license commands description to be updated for local mode

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* To hide licensing information in help for CINC & other distros

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2023-06-22 11:01:46 -04:00
Chef Expeditor
6d122efcbf Bump version to 6.4.19 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-21 13:09:00 +00:00
Sathish Babu
feaf67d9bf
restrict license commands only to inspec distro (#58)
Signed-off-by: Sathish <sbabu@progress.com>
2023-06-21 18:37:55 +05:30
Chef Expeditor
5183057e5d Bump version to 6.4.18 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-21 08:13:23 +00:00
Nikita Mathur
68af725b6d
CHEF-3184 Error handling for inspec license add command - disabled in local mode (#52)
* Error handling for inspec license add command

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* License generation disabled exit code introduced for ui exit

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Removed the phrase something went wrong since error msgs will be changes and meaningful

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Renamed license generation error status name

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* Error handling using specific error class

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

* License exit code - license not set added

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
2023-06-21 13:42:19 +05:30
Chef Expeditor
933d1c5f30 Bump version to 6.4.17 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-08 13:18:29 +00:00
Sonu Saha
81f299ea50
CONFIG: Update licensing config to set default server url (#50)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-06-08 18:47:21 +05:30
Chef Expeditor
b9c8a056ff Bump version to 6.4.16 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-06-07 14:13:05 +00:00
Sonu Saha
dbcde74724
CI: Remove fetching of bearer auth token from vault (#48)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-06-07 10:11:56 -04:00
Chef Expeditor
d614e57875 Bump version to 6.4.15 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-30 14:40:53 +00:00
Sathish Babu
4ec735d09d
CHEF 83 Revert attestations changes (#47)
* revert attestation related files

Signed-off-by: Sathish <sbabu@progress.com>

* revert attestation changes to existing files

Signed-off-by: Sathish <sbabu@progress.com>

* update signature

Signed-off-by: Sathish <sbabu@progress.com>

---------

Signed-off-by: Sathish <sbabu@progress.com>
2023-05-30 20:09:29 +05:30
Chef Expeditor
3b9ca4fe18 Bump version to 6.4.14 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-18 00:50:57 +00:00
Chef Expeditor
4d7a62e9bc Bump version to 6.4.13 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-18 00:49:29 +00:00
Chef Expeditor
81caf6dfb7 Bump version to 6.4.12 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-18 00:48:07 +00:00
Sonu Saha
b4648e0193
CHEF-1458 Multiple values changes in SimpleConfig library (#6489) (#28)
* Simple config changes to return array of values with multiple values opt



* New option added to split multiple values with a delimiter regex



---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
2023-05-17 20:47:02 -04:00
Chef Expeditor
617cabf5c7 Bump version to 6.4.11 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-18 00:46:47 +00:00
Clinton Wolfe
4fce6845e5
Add nftables resources (#6499) (#44)
* Fix systemd path for Leap image



* Use vhef client version 17 as doocker cookbook do not support >= 18



* Add nftables resource



* Add nftables tests



* Add fixtures for nftables tests



* enable nftables only when attr is true - then disable iptables



* By default test iptables, not nftables



* Fix tests and lint errors



* Increase unit test coverage for nftables



* Do not use -nn nft option as behaviour changes based on nft version



* Base nft params identification on its version, not os version

    Signed-off-by: Jeremy JACQUE <jeremy.jacque@algolia.com>

* Make test more human friendly by reversing unless/if logic

    Signed-off-by: Jeremy JACQUE <jeremy.jacque@algolia.com>

* Update mocked cmds with nft params

    Signed-off-by: Jeremy JACQUE <jeremy.jacque@algolia.com>

* Fix quoting issue with rubocop



* Fix uninitiallized class vars



* Fix unit test by adding nft version mocking



* Clean nftables doc



---------

Signed-off-by: Jeremy JACQUE <jeremy.jacque@algolia.com>
Co-authored-by: jjacque <jeremy.jacque@algolia.com>
2023-05-17 20:45:57 -04:00
Chef Expeditor
f51da83bf9 Bump version to 6.4.10 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-18 00:45:17 +00:00
Clinton Wolfe
dd9dccd84e
Update host resource to resolve all ipaddresses (#6481) (#39)
Signed-off-by: Alan Foster <alan@alanfoster.me>
Co-authored-by: Alan Foster <alan@alanfoster.me>
2023-05-17 20:45:04 -04:00