inspec-core 5.24.24 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Chef-EULA +9 -0
- data/Gemfile +25 -36
- data/etc/deprecations.json +0 -3
- data/etc/features.sig +6 -0
- data/etc/features.yaml +94 -0
- data/inspec-core.gemspec +21 -19
- data/lib/inspec/archive/tar.rb +0 -1
- data/lib/inspec/backend.rb +2 -0
- data/lib/inspec/base_cli.rb +80 -14
- data/lib/inspec/cached_fetcher.rb +24 -3
- data/lib/inspec/cli.rb +292 -235
- data/lib/inspec/config.rb +24 -11
- data/lib/inspec/dependencies/cache.rb +33 -0
- data/lib/inspec/dependencies/dependency_set.rb +2 -2
- data/lib/inspec/dsl.rb +1 -1
- data/lib/inspec/enhanced_outcomes.rb +1 -0
- data/lib/inspec/errors.rb +5 -0
- data/lib/inspec/exceptions.rb +1 -0
- data/lib/inspec/feature/config.rb +75 -0
- data/lib/inspec/feature/runner.rb +26 -0
- data/lib/inspec/feature.rb +34 -0
- data/lib/inspec/fetcher/git.rb +6 -21
- data/lib/inspec/fetcher/url.rb +7 -29
- data/lib/inspec/file_provider.rb +0 -1
- data/lib/inspec/globals.rb +6 -0
- data/lib/inspec/input_registry.rb +1 -5
- data/lib/inspec/plugin/v1/plugin_types/fetcher.rb +7 -0
- data/lib/inspec/plugin/v2/plugin_types/streaming_reporter.rb +30 -2
- data/lib/inspec/profile.rb +49 -13
- data/lib/inspec/reporters/cli.rb +1 -1
- data/lib/inspec/reporters/json.rb +2 -12
- data/lib/inspec/reporters.rb +67 -54
- data/lib/inspec/resources/audit_policy.rb +2 -8
- data/lib/inspec/resources/groups.rb +0 -52
- data/lib/inspec/resources/mssql_session.rb +1 -13
- data/lib/inspec/resources/nftables.rb +1 -14
- data/lib/inspec/resources/oracledb_session.rb +11 -72
- data/lib/inspec/resources/package.rb +2 -9
- data/lib/inspec/resources/postgres_session.rb +5 -9
- data/lib/inspec/resources/sybase_session.rb +2 -11
- data/lib/inspec/resources/virtualization.rb +1 -1
- data/lib/inspec/rule.rb +13 -29
- data/lib/inspec/run_data.rb +7 -5
- data/lib/inspec/runner.rb +35 -6
- data/lib/inspec/runner_rspec.rb +12 -9
- data/lib/inspec/secrets/yaml.rb +5 -1
- data/lib/inspec/shell.rb +10 -0
- data/lib/inspec/ui.rb +4 -0
- data/lib/inspec/utils/licensing_config.rb +9 -0
- data/lib/inspec/utils/profile_ast_helpers.rb +12 -39
- data/lib/inspec/utils/waivers/csv_file_reader.rb +1 -1
- data/lib/inspec/utils/waivers/excel_file_reader.rb +1 -1
- data/lib/inspec/version.rb +1 -1
- data/lib/inspec/waiver_file_reader.rb +18 -35
- data/lib/inspec.rb +2 -1
- data/lib/matchers/matchers.rb +3 -3
- data/lib/plugins/inspec-compliance/README.md +1 -11
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/cli.rb +188 -173
- data/lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb +10 -3
- data/lib/plugins/inspec-init/lib/inspec-init/cli.rb +1 -0
- data/lib/plugins/inspec-init/lib/inspec-init/cli_plugin.rb +23 -21
- data/lib/plugins/inspec-init/lib/inspec-init/cli_profile.rb +15 -13
- data/lib/plugins/inspec-init/lib/inspec-init/cli_resource.rb +15 -13
- data/lib/plugins/inspec-license/README.md +16 -0
- data/lib/plugins/inspec-license/inspec-license.gemspec +6 -0
- data/lib/plugins/inspec-license/lib/inspec-license/cli.rb +26 -0
- data/lib/plugins/inspec-license/lib/inspec-license.rb +14 -0
- data/lib/plugins/inspec-parallel/README.md +27 -0
- data/lib/plugins/inspec-parallel/inspec-parallel.gemspec +6 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel/child_status_reporter.rb +61 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel/cli.rb +39 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb +219 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel/runner.rb +265 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/base.rb +24 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/silent.rb +7 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/status.rb +124 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/text.rb +23 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel/validator.rb +170 -0
- data/lib/plugins/inspec-parallel/lib/inspec-parallel.rb +18 -0
- data/lib/plugins/inspec-sign/lib/inspec-sign/base.rb +10 -11
- data/lib/plugins/inspec-sign/lib/inspec-sign/cli.rb +11 -4
- data/lib/plugins/inspec-streaming-reporter-progress-bar/lib/inspec-streaming-reporter-progress-bar/streaming_reporter.rb +6 -13
- data/lib/source_readers/inspec.rb +1 -1
- metadata +53 -65
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inspec-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chef InSpec Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chef-telemetry
|
|
@@ -59,7 +59,7 @@ dependencies:
|
|
|
59
59
|
version: '0.20'
|
|
60
60
|
- - "<"
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: 1.
|
|
62
|
+
version: 1.3.0
|
|
63
63
|
type: :runtime
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -69,7 +69,7 @@ dependencies:
|
|
|
69
69
|
version: '0.20'
|
|
70
70
|
- - "<"
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: 1.
|
|
72
|
+
version: 1.3.0
|
|
73
73
|
- !ruby/object:Gem::Dependency
|
|
74
74
|
name: method_source
|
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -99,7 +99,7 @@ dependencies:
|
|
|
99
99
|
version: 1.2.2
|
|
100
100
|
- - "<"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '
|
|
102
|
+
version: '3.0'
|
|
103
103
|
type: :runtime
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -109,7 +109,7 @@ dependencies:
|
|
|
109
109
|
version: 1.2.2
|
|
110
110
|
- - "<"
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
|
-
version: '
|
|
112
|
+
version: '3.0'
|
|
113
113
|
- !ruby/object:Gem::Dependency
|
|
114
114
|
name: rspec
|
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -119,7 +119,7 @@ dependencies:
|
|
|
119
119
|
version: '3.9'
|
|
120
120
|
- - "<="
|
|
121
121
|
- !ruby/object:Gem::Version
|
|
122
|
-
version: '3.
|
|
122
|
+
version: '3.12'
|
|
123
123
|
type: :runtime
|
|
124
124
|
prerelease: false
|
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -129,27 +129,21 @@ dependencies:
|
|
|
129
129
|
version: '3.9'
|
|
130
130
|
- - "<="
|
|
131
131
|
- !ruby/object:Gem::Version
|
|
132
|
-
version: '3.
|
|
132
|
+
version: '3.12'
|
|
133
133
|
- !ruby/object:Gem::Dependency
|
|
134
134
|
name: rspec-its
|
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
|
136
136
|
requirements:
|
|
137
|
-
- - "
|
|
137
|
+
- - "~>"
|
|
138
138
|
- !ruby/object:Gem::Version
|
|
139
139
|
version: '1.2'
|
|
140
|
-
- - "<"
|
|
141
|
-
- !ruby/object:Gem::Version
|
|
142
|
-
version: '3.0'
|
|
143
140
|
type: :runtime
|
|
144
141
|
prerelease: false
|
|
145
142
|
version_requirements: !ruby/object:Gem::Requirement
|
|
146
143
|
requirements:
|
|
147
|
-
- - "
|
|
144
|
+
- - "~>"
|
|
148
145
|
- !ruby/object:Gem::Version
|
|
149
146
|
version: '1.2'
|
|
150
|
-
- - "<"
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: '3.0'
|
|
153
147
|
- !ruby/object:Gem::Dependency
|
|
154
148
|
name: pry
|
|
155
149
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -191,9 +185,6 @@ dependencies:
|
|
|
191
185
|
- - "~>"
|
|
192
186
|
- !ruby/object:Gem::Version
|
|
193
187
|
version: '3.0'
|
|
194
|
-
- - "<"
|
|
195
|
-
- !ruby/object:Gem::Version
|
|
196
|
-
version: '3.2'
|
|
197
188
|
type: :runtime
|
|
198
189
|
prerelease: false
|
|
199
190
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -201,9 +192,6 @@ dependencies:
|
|
|
201
192
|
- - "~>"
|
|
202
193
|
- !ruby/object:Gem::Version
|
|
203
194
|
version: '3.0'
|
|
204
|
-
- - "<"
|
|
205
|
-
- !ruby/object:Gem::Version
|
|
206
|
-
version: '3.2'
|
|
207
195
|
- !ruby/object:Gem::Dependency
|
|
208
196
|
name: sslshake
|
|
209
197
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -320,34 +308,14 @@ dependencies:
|
|
|
320
308
|
requirements:
|
|
321
309
|
- - "~>"
|
|
322
310
|
- !ruby/object:Gem::Version
|
|
323
|
-
version: '2.
|
|
311
|
+
version: '2.4'
|
|
324
312
|
type: :runtime
|
|
325
313
|
prerelease: false
|
|
326
314
|
version_requirements: !ruby/object:Gem::Requirement
|
|
327
315
|
requirements:
|
|
328
316
|
- - "~>"
|
|
329
317
|
- !ruby/object:Gem::Version
|
|
330
|
-
version: '2.
|
|
331
|
-
- !ruby/object:Gem::Dependency
|
|
332
|
-
name: public_suffix
|
|
333
|
-
requirement: !ruby/object:Gem::Requirement
|
|
334
|
-
requirements:
|
|
335
|
-
- - ">="
|
|
336
|
-
- !ruby/object:Gem::Version
|
|
337
|
-
version: 2.0.2
|
|
338
|
-
- - "<"
|
|
339
|
-
- !ruby/object:Gem::Version
|
|
340
|
-
version: '7.0'
|
|
341
|
-
type: :runtime
|
|
342
|
-
prerelease: false
|
|
343
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
344
|
-
requirements:
|
|
345
|
-
- - ">="
|
|
346
|
-
- !ruby/object:Gem::Version
|
|
347
|
-
version: 2.0.2
|
|
348
|
-
- - "<"
|
|
349
|
-
- !ruby/object:Gem::Version
|
|
350
|
-
version: '7.0'
|
|
318
|
+
version: '2.4'
|
|
351
319
|
- !ruby/object:Gem::Dependency
|
|
352
320
|
name: parslet
|
|
353
321
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -357,7 +325,7 @@ dependencies:
|
|
|
357
325
|
version: '1.5'
|
|
358
326
|
- - "<"
|
|
359
327
|
- !ruby/object:Gem::Version
|
|
360
|
-
version: '
|
|
328
|
+
version: '2.0'
|
|
361
329
|
type: :runtime
|
|
362
330
|
prerelease: false
|
|
363
331
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -367,7 +335,7 @@ dependencies:
|
|
|
367
335
|
version: '1.5'
|
|
368
336
|
- - "<"
|
|
369
337
|
- !ruby/object:Gem::Version
|
|
370
|
-
version: '
|
|
338
|
+
version: '2.0'
|
|
371
339
|
- !ruby/object:Gem::Dependency
|
|
372
340
|
name: semverse
|
|
373
341
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -397,53 +365,53 @@ dependencies:
|
|
|
397
365
|
- !ruby/object:Gem::Version
|
|
398
366
|
version: '2.0'
|
|
399
367
|
- !ruby/object:Gem::Dependency
|
|
400
|
-
name:
|
|
368
|
+
name: train-core
|
|
401
369
|
requirement: !ruby/object:Gem::Requirement
|
|
402
370
|
requirements:
|
|
403
371
|
- - ">="
|
|
404
372
|
- !ruby/object:Gem::Version
|
|
405
|
-
version:
|
|
373
|
+
version: 3.11.0
|
|
406
374
|
type: :runtime
|
|
407
375
|
prerelease: false
|
|
408
376
|
version_requirements: !ruby/object:Gem::Requirement
|
|
409
377
|
requirements:
|
|
410
378
|
- - ">="
|
|
411
379
|
- !ruby/object:Gem::Version
|
|
412
|
-
version:
|
|
380
|
+
version: 3.11.0
|
|
413
381
|
- !ruby/object:Gem::Dependency
|
|
414
|
-
name:
|
|
382
|
+
name: chef-licensing
|
|
415
383
|
requirement: !ruby/object:Gem::Requirement
|
|
416
384
|
requirements:
|
|
417
|
-
- - "~>"
|
|
418
|
-
- !ruby/object:Gem::Version
|
|
419
|
-
version: '3.16'
|
|
420
385
|
- - ">="
|
|
421
386
|
- !ruby/object:Gem::Version
|
|
422
|
-
version:
|
|
387
|
+
version: 0.7.5
|
|
423
388
|
type: :runtime
|
|
424
389
|
prerelease: false
|
|
425
390
|
version_requirements: !ruby/object:Gem::Requirement
|
|
426
391
|
requirements:
|
|
427
|
-
- - "~>"
|
|
428
|
-
- !ruby/object:Gem::Version
|
|
429
|
-
version: '3.16'
|
|
430
392
|
- - ">="
|
|
431
393
|
- !ruby/object:Gem::Version
|
|
432
|
-
version:
|
|
433
|
-
description:
|
|
434
|
-
You can use it for integration or even compliance testing. Create fully portable
|
|
435
|
-
test profiles and use them in your workflow to ensure stability and security. Integrate
|
|
436
|
-
InSpec in your change lifecycle for local testing, CI/CD, and deployment verification.
|
|
394
|
+
version: 0.7.5
|
|
395
|
+
description: |+
|
|
396
|
+
InSpec provides a framework for creating end-to-end infrastructure tests. You can use it for integration or even compliance testing. Create fully portable test profiles and use them in your workflow to ensure stability and security. Integrate InSpec in your change lifecycle for local testing, CI/CD, and deployment verification.
|
|
437
397
|
This has local support only. See the `inspec` gem for full support.
|
|
398
|
+
|
|
399
|
+
Packaged distributions of Progress® Chef® products obtained from RubyGems are made available pursuant to the Progress Chef EULA at https://www.chef.io/end-user-license-agreement, unless there is an executed agreement in effect between you and Progress that covers the Progress Chef products ("Master Agreement"), in which case the Master Agreement shall govern.
|
|
400
|
+
|
|
401
|
+
Source code obtained from the Chef GitHub repository is made available under Apache-2.0, a copy of which is included.
|
|
402
|
+
|
|
438
403
|
email:
|
|
439
404
|
- inspec@chef.io
|
|
440
405
|
executables: []
|
|
441
406
|
extensions: []
|
|
442
407
|
extra_rdoc_files: []
|
|
443
408
|
files:
|
|
409
|
+
- Chef-EULA
|
|
444
410
|
- Gemfile
|
|
445
411
|
- LICENSE
|
|
446
412
|
- etc/deprecations.json
|
|
413
|
+
- etc/features.sig
|
|
414
|
+
- etc/features.yaml
|
|
447
415
|
- etc/keys/progress-2022-05-04.pem.pub
|
|
448
416
|
- etc/plugin_filters.json
|
|
449
417
|
- inspec-core.gemspec
|
|
@@ -486,6 +454,9 @@ files:
|
|
|
486
454
|
- lib/inspec/errors.rb
|
|
487
455
|
- lib/inspec/exceptions.rb
|
|
488
456
|
- lib/inspec/expect.rb
|
|
457
|
+
- lib/inspec/feature.rb
|
|
458
|
+
- lib/inspec/feature/config.rb
|
|
459
|
+
- lib/inspec/feature/runner.rb
|
|
489
460
|
- lib/inspec/fetcher.rb
|
|
490
461
|
- lib/inspec/fetcher/git.rb
|
|
491
462
|
- lib/inspec/fetcher/local.rb
|
|
@@ -762,6 +733,7 @@ files:
|
|
|
762
733
|
- lib/inspec/utils/install_context.rb
|
|
763
734
|
- lib/inspec/utils/json_log.rb
|
|
764
735
|
- lib/inspec/utils/json_profile_summary.rb
|
|
736
|
+
- lib/inspec/utils/licensing_config.rb
|
|
765
737
|
- lib/inspec/utils/modulator.rb
|
|
766
738
|
- lib/inspec/utils/nginx_parser.rb
|
|
767
739
|
- lib/inspec/utils/object_traversal.rb
|
|
@@ -846,6 +818,22 @@ files:
|
|
|
846
818
|
- lib/plugins/inspec-init/templates/resources/basic/libraries/inspec-resource-template.erb
|
|
847
819
|
- lib/plugins/inspec-init/templates/resources/plural/docs/resource-doc.erb
|
|
848
820
|
- lib/plugins/inspec-init/templates/resources/plural/libraries/inspec-resource-template.erb
|
|
821
|
+
- lib/plugins/inspec-license/README.md
|
|
822
|
+
- lib/plugins/inspec-license/inspec-license.gemspec
|
|
823
|
+
- lib/plugins/inspec-license/lib/inspec-license.rb
|
|
824
|
+
- lib/plugins/inspec-license/lib/inspec-license/cli.rb
|
|
825
|
+
- lib/plugins/inspec-parallel/README.md
|
|
826
|
+
- lib/plugins/inspec-parallel/inspec-parallel.gemspec
|
|
827
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel.rb
|
|
828
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel/child_status_reporter.rb
|
|
829
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel/cli.rb
|
|
830
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel/command.rb
|
|
831
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel/runner.rb
|
|
832
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/base.rb
|
|
833
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/silent.rb
|
|
834
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/status.rb
|
|
835
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/text.rb
|
|
836
|
+
- lib/plugins/inspec-parallel/lib/inspec-parallel/validator.rb
|
|
849
837
|
- lib/plugins/inspec-plugin-manager-cli/README.md
|
|
850
838
|
- lib/plugins/inspec-plugin-manager-cli/inspec-plugin-manager-cli.gemspec
|
|
851
839
|
- lib/plugins/inspec-plugin-manager-cli/lib/inspec-plugin-manager-cli.rb
|
|
@@ -889,7 +877,7 @@ files:
|
|
|
889
877
|
- lib/source_readers/inspec.rb
|
|
890
878
|
homepage: https://github.com/inspec/inspec
|
|
891
879
|
licenses:
|
|
892
|
-
-
|
|
880
|
+
- LicenseRef-Chef-EULA
|
|
893
881
|
metadata: {}
|
|
894
882
|
post_install_message:
|
|
895
883
|
rdoc_options: []
|
|
@@ -899,14 +887,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
899
887
|
requirements:
|
|
900
888
|
- - ">="
|
|
901
889
|
- !ruby/object:Gem::Version
|
|
902
|
-
version:
|
|
890
|
+
version: '2.7'
|
|
903
891
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
904
892
|
requirements:
|
|
905
893
|
- - ">="
|
|
906
894
|
- !ruby/object:Gem::Version
|
|
907
895
|
version: '0'
|
|
908
896
|
requirements: []
|
|
909
|
-
rubygems_version: 3.
|
|
897
|
+
rubygems_version: 3.1.4
|
|
910
898
|
signing_key:
|
|
911
899
|
specification_version: 4
|
|
912
900
|
summary: Infrastructure and compliance testing. Core library.
|