inspec 4.41.2 → 4.41.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -1
- data/inspec.gemspec +1 -1
- data/lib/plugins/inspec-init/templates/profiles/aws/inspec.yml +1 -1
- data/lib/plugins/inspec-init/templates/profiles/azure/inspec.yml +1 -1
- data/lib/plugins/inspec-init/templates/profiles/gcp/inspec.yml +1 -1
- data/lib/resources/aws/aws_iam_access_key.rb +1 -1
- data/lib/resources/azure/azure_backend.rb +3 -3
- data/lib/resources/azure/azure_virtual_machine.rb +1 -1
- data/lib/resources/azure/azure_virtual_machine_data_disk.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7240f94918299475b475b5ce172e5737693a0981a5096bb796ef17e3165c10fd
|
4
|
+
data.tar.gz: bbc6a6284ac06f17ec0144801ea0be2d0eba253cd7ab22c906dd01ec6e2455dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 581ea1ccb1a6b5902bc2a4db6ae13184158e275cbe72d51aa0d0e6b46c4b7d66a3e0c3afc0e7b9b39b6cb333d993e28d49dc6112ad9da83c2deadd0edb734490
|
7
|
+
data.tar.gz: 723c161dfea6d4d0b050624964226dc3ce8555c8712b25f0eb6c0060dd2555ed18486210f4f7c7f0c74c2d7f11750e70e83a18d1f35bc5f3067106ab8917c59a
|
data/Gemfile
CHANGED
@@ -30,7 +30,11 @@ end
|
|
30
30
|
group :test do
|
31
31
|
gem "chefstyle", "~> 2.0.3"
|
32
32
|
gem "concurrent-ruby", "~> 1.0"
|
33
|
-
|
33
|
+
if Gem.ruby_version.to_s.start_with?("2.5")
|
34
|
+
gem "html-proofer", "= 3.19.1" , platforms: :ruby # do not attempt to run proofer on windows
|
35
|
+
else
|
36
|
+
gem "html-proofer", platforms: :ruby # do not attempt to run proofer on windows
|
37
|
+
end
|
34
38
|
gem "json_schemer", ">= 0.2.1", "< 0.2.19"
|
35
39
|
gem "m"
|
36
40
|
gem "minitest-sprint", "~> 1.0"
|
data/inspec.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
# Train plugins we ship with InSpec
|
33
33
|
spec.add_dependency "train-habitat", "~> 0.1"
|
34
|
-
spec.add_dependency "train-aws", "~> 0.
|
34
|
+
spec.add_dependency "train-aws", "~> 0.2"
|
35
35
|
spec.add_dependency "train-winrm", "~> 0.2"
|
36
36
|
spec.add_dependency "mongo", "= 2.13.2" # 2.14 introduces a broken symlink in mongo-2.14.0/spec/support/ocsp
|
37
37
|
end
|
@@ -86,7 +86,7 @@ class AwsIamAccessKey < Inspec.resource(1)
|
|
86
86
|
end
|
87
87
|
|
88
88
|
if access_keys.count > 1
|
89
|
-
raise "More than one access key matched for aws_iam_access_key. Use more specific
|
89
|
+
raise "More than one access key matched for aws_iam_access_key. Use more specific parameters, such as access_key_id."
|
90
90
|
end
|
91
91
|
|
92
92
|
@exists = true
|
@@ -6,7 +6,7 @@ module Inspec::Resources
|
|
6
6
|
class AzureResourceBase < Inspec.resource(1)
|
7
7
|
attr_reader :opts, :client, :azure
|
8
8
|
|
9
|
-
# Constructor that
|
9
|
+
# Constructor that retrieves the specified resource
|
10
10
|
#
|
11
11
|
# The opts hash should contain the following
|
12
12
|
# :group_name - name of the resource group in which to look for items
|
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
# Class object to maintain a count of the Azure Resource types that are found
|
277
277
|
# when a less specific test is carried out. For example if all the resoures of a resource
|
278
|
-
# group are called for, there will be
|
278
|
+
# group are called for, there will be various types and number of those types.
|
279
279
|
#
|
280
280
|
# Each type is namespaced, so for example a virtual machine has the type 'Microsoft.Compute/virtualMachines'
|
281
281
|
# This is broken down into the 'Microsoft' class with the type 'Compute/virtualMachines'
|
@@ -310,7 +310,7 @@ class AzureResourceTypeCounts
|
|
310
310
|
end
|
311
311
|
|
312
312
|
# Class object that is created for each element that is returned by Azure.
|
313
|
-
# This is what is
|
313
|
+
# This is what is interrogated by InSpec. If they are nested hashes, then this results
|
314
314
|
# in nested AzureResourceProbe objects.
|
315
315
|
#
|
316
316
|
# For example, if the following was seen in an Azure Resource
|
@@ -85,7 +85,7 @@ module Inspec::Resources
|
|
85
85
|
# return hashtable
|
86
86
|
def parse_datadisk(disk, index)
|
87
87
|
# Configure parsed hashtable to hold the information
|
88
|
-
#
|
88
|
+
# Initialize this with common attributes from the different types of disk
|
89
89
|
parsed = {
|
90
90
|
disk: index,
|
91
91
|
number: index + 1,
|
@@ -115,7 +115,7 @@ module Inspec::Resources
|
|
115
115
|
parsed[:storage_account_type] = disk.managedDisk.storageAccountType
|
116
116
|
parsed[:id] = disk.managedDisk.id
|
117
117
|
|
118
|
-
# Break up the ID string so that the following information can get
|
118
|
+
# Break up the ID string so that the following information can get retrieved
|
119
119
|
# - subscription_id
|
120
120
|
# - resource_group
|
121
121
|
id_parts = parsed[:id].split(%r{/}).reject(&:empty?)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.41.
|
4
|
+
version: 4.41.20
|
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: 2021-
|
11
|
+
date: 2021-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inspec-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.41.
|
19
|
+
version: 4.41.20
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.41.
|
26
|
+
version: 4.41.20
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: train
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,14 +78,14 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0.
|
81
|
+
version: '0.2'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '0.
|
88
|
+
version: '0.2'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: train-winrm
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|