Commit graph

10932 commits

Author SHA1 Message Date
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
Clinton Wolfe
0af8ceeaa6
Bump rack from 2.2.6.2 to 2.2.6.4 in /omnibus (#6490) (#42)
Bumps [rack](https://github.com/rack/rack) from 2.2.6.2 to 2.2.6.4.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v2.2.6.2...v2.2.6.4)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-17 20:44:42 -04:00
Clinton Wolfe
1ab146d028
fix: ensure Invoke-WebRequest headers can be configured (#6484) (#41)
* fix: ensure Invoke-WebRequest headers can be configured



* fix: use array for custom headers



* test: add unit test for Windows simple HTTP request with headers



---------

Signed-off-by: Adrian Mlodzianowski <amlodzianowski@logicworks.net>
Co-authored-by: amlodzianowski <adrianmlodzianowski@gmail.com>
Co-authored-by: Adrian Mlodzianowski <amlodzianowski@logicworks.net>
2023-05-17 20:44:15 -04:00
Chef Expeditor
396d48570d Bump version to 6.4.9 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-18 00:35:22 +00:00
Chef Expeditor
b91c7bf304 Bump version to 6.4.8 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-18 00:33:56 +00:00
Clinton Wolfe
cfde3f5bd8
CHEF-2438 Add train-kubernetes to inspec gemspec (#6512) (#43)
* Add train-kubernetes to inspec gemspec, fix spacing



* Fix failing test to detect system plugins



---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-05-17 20:33:27 -04:00
Clinton Wolfe
4eb7fe82ef
Clarify key_rsa docs regarding SSH keys (#6507) (#45)
* Clarify that an RSA resource can only work on RSA keypairs



* Update docs-chef-io/content/inspec/resources/key_rsa.md





---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Ian Maddaus <IanMadd@users.noreply.github.com>
2023-05-17 20:32:52 -04:00
Chef Expeditor
9511f41a23 Bump version to 6.4.7 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-12 00:11:00 +00:00
Clinton Wolfe
cf1df33df2
Add ruby-msys2-devkit as dependency and check (#6391) (#37)
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Vasundhara Jagdale <vasundhara.jagdale@chef.io>
2023-05-11 20:09:12 -04:00
Chef Expeditor
381a45ebd6 Bump version to 6.4.6 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-10 05:44:05 +00:00
Sonu Saha
09196e971f
CONFIG: Set chef executable name to display in help messages of chef-licensing (#34)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-05-10 11:13:09 +05:30
Chef Expeditor
917ffde843 Bump version to 6.4.5 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-10 03:49:07 +00:00
Sonu Saha
95c36239f8
ENHANCE: Add license command to list of allowed commands (#35)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-05-10 09:18:08 +05:30
Chef Expeditor
21b7206306 Bump version to 6.4.4 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-05-09 14:37:43 +00:00
Sonu Saha
4386cb1407
UPDATE: Update chef-licesing api call: license_keys to fetch_and_persist (#30)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-05-09 10:36:12 -04:00
Chef Expeditor
86a08ba7e7 Bump version to 6.4.3 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-04-25 13:28:17 +00:00
Sonu Saha
77b7a8ff62
Remove kitchen group from Gemfile (#31)
* KITCHEN: Remove kitchen group from Gemfile,
revert this change when required

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

* LINT: Remove trailing whitespace

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-04-25 09:27:21 -04:00
Chef Expeditor
725f6ee023 Bump version to 6.4.2 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-04-12 14:15:40 +00:00
Sonu Saha
8e26441019
CHEF-52: Add licensing information to help output (#27)
* CHEF-LICENSING: Add licensing flags info in help output

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

* INFO: Add chef-licensing info to help message

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

---------

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2023-04-12 10:14:34 -04:00
Chef Expeditor
7b933b83d4 Bump version to 6.4.1 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-31 07:52:40 +00:00
Sonu Saha
646cbb7bda
Add command to list license information (#10)
* Initial commit to set inspec cli command license

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

* INTEGRATE: Use chef_licensing endpoint to list licenses info

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

* CHORE: Update chef-licensing gem name, update description

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

* CHEF-56 License add command integrated (#11)

* Added license add command in inspec license command plugin

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

* Chef licensing gem changes pointing to url and branch

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

---------

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

* EXEC_NAME is always inspec as set in Dist,
check is not required

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

* DOCS: Update docs for the plugin

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

* DOCS: Update docs for the plugin

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

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Nikita Mathur <Nik08@users.noreply.github.com>
2023-03-31 13:21:44 +05:30
Chef Expeditor
6fb783045c Bump version to 6.4.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-27 14:27:38 +00:00
Vasundhara Jagdale
699d73993c
Licensing - Integrates Software Entitlement (#13)
* CFINSPEC-24:Integrate License Software Entitlment.

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

* CFINSPEC-506 license execution check

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

* Software entitlement call changes and handling of error

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

* Error handling from chef licensing error to standard error

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

* Updated Gemfile to pick the chef licensing changes from git url

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

* Trying with https url

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

* Revert "Trying with https url"

This reverts commit 33f1f4c0ecacf9ba2826e25e55b41219903ea736.

* Adds the license not entitled exit code

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

* Updates the require statement

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

* Fix typo

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

* Set the licensing configure for entitlement id failure

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

* Use ChefLicensing::Error instead of standard error

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

* REFACTOR Move out licensing cong=fig to its own file and make unconditional

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

* FIX TESTS - Add reference to licensing config for places where we call runner explicitly.

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

* Update inputs_test to use license configuration from utils

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

---------

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Nikita Mathur <nikita.mathur@chef.io>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2023-03-27 10:26:35 -04:00
Chef Expeditor
031ec21cce Bump version to 6.3.0 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-24 06:52:35 +00:00
Nikita Mathur
3307ee520c
Integration of chef licensing with inspec (#12)
* Add invocation for chef licensing to fetch and persist license

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

* Flow changes of licensing with EULA acceptance

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

* Changed empty to blank safe check

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

* Exit code changes in case of invalid licenses

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

* Update temporary gempath to use relatiive path

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

* CFINSPEC-506 license execution check

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

* Handling in inspec for invalid licenses

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

* Handling of client error

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

* Replaced subclasses of exceptions with super class error

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

* Chef licensing gem changes pointing to git url

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

* Configured chef licensing with inspec

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

* Local chef licensing gem configuration removed

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

* Removed logger configuration for chef licensing

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

* Require changes for new library chef-licensing

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

---------

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Co-authored-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Co-authored-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-03-24 02:51:27 -04:00
Chef Expeditor
8bb7d2ad1c Bump version to 6.2.49 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-23 18:48:03 +00:00
Clinton Wolfe
d8200f8539
CI - Use License Key and API Key Secrets from Vault (#26)
* Enable secrets mode on verify pipelines, which apparently works on ruby3.0 image anyway on coverage pipeline

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

* Fetch chef licensing server and API key from vault, linux implementation

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

* Fetch chef licensing server and API key from vault, windows implementation

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

* Add diagnostic to test whether API key has been set and exit if not

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

* Secrets missed on two jobs

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

* Add diagnostic to test whether API key has been set on windows

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

* Add license key to env var list and gate verify pipeline on it

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

---------

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
Co-authored-by: Sonu Saha <sonu.saha@progress.com>
2023-03-23 14:47:02 -04:00
Chef Expeditor
efc65b3baf Bump version to 6.2.48 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-16 17:24:19 +00:00
Vasundhara Jagdale
c9f935489e
Try adding artifactory as git source for chef-licensing (#25)
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2023-03-16 13:23:16 -04:00
Chef Expeditor
477db753e8 Bump version to 6.2.47 by Chef Expeditor
Obvious fix; these changes are the result of automation not creative thinking.
2023-03-14 14:32:29 +00:00