inspec 0.33.1 → 0.33.2
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/CHANGELOG.md +14 -2
- data/inspec.gemspec +1 -0
- data/lib/inspec/version.rb +1 -1
- data/lib/resources/iis_site.rb +16 -0
- data/lib/resources/ssl.rb +8 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f4f2b2442e3a19f101d6d04c0a13815dc086b66
|
4
|
+
data.tar.gz: 1b02e5addd71a28377e73c7080ab7b88f2af28d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6317eb3c488e0590a5ffa5bae91fca369d3662555423271f5bdbf348ae93b2947a2a1b613403699a5ecf46926f4e1fe873db827b23bebe3f7b9e561d1e4472a
|
7
|
+
data.tar.gz: 9b18e3a35eda7e93cdfcfb0f1566090d7eaaae81e6ceeae02b2af205edc281f9a74cfd8b2b637f3a99a43dda66c3857099e8015745039e91fa17d91e0525bd86
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,19 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [0.33.
|
4
|
-
[Full Changelog](https://github.com/chef/inspec/compare/v0.33.
|
3
|
+
## [0.33.2](https://github.com/chef/inspec/tree/0.33.2) (2016-09-07)
|
4
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v0.33.1...0.33.2)
|
5
|
+
|
6
|
+
**Implemented enhancements:**
|
7
|
+
|
8
|
+
- ssl resource fix and speed improvement [\#1027](https://github.com/chef/inspec/pull/1027) ([alexpop](https://github.com/alexpop))
|
9
|
+
- allow direct access to iis configuration parameters [\#1020](https://github.com/chef/inspec/pull/1020) ([chris-rock](https://github.com/chris-rock))
|
10
|
+
|
11
|
+
**Fixed bugs:**
|
12
|
+
|
13
|
+
- ssl resource fix and speed improvement [\#1027](https://github.com/chef/inspec/pull/1027) ([alexpop](https://github.com/alexpop))
|
14
|
+
|
15
|
+
## [v0.33.1](https://github.com/chef/inspec/tree/v0.33.1) (2016-09-07)
|
16
|
+
[Full Changelog](https://github.com/chef/inspec/compare/v0.33.0...v0.33.1)
|
5
17
|
|
6
18
|
**Closed issues:**
|
7
19
|
|
data/inspec.gemspec
CHANGED
data/lib/inspec/version.rb
CHANGED
data/lib/resources/iis_site.rb
CHANGED
@@ -38,6 +38,22 @@ module Inspec::Resources
|
|
38
38
|
return skip_resource 'The `iis_site` resource is not supported on your OS.' if inspec.os[:family] != 'windows'
|
39
39
|
end
|
40
40
|
|
41
|
+
def app_pool
|
42
|
+
iis_site[:app_pool]
|
43
|
+
end
|
44
|
+
|
45
|
+
def bindings
|
46
|
+
iis_site[:bindings]
|
47
|
+
end
|
48
|
+
|
49
|
+
def state
|
50
|
+
iis_site[:state]
|
51
|
+
end
|
52
|
+
|
53
|
+
def path
|
54
|
+
iis_site[:path]
|
55
|
+
end
|
56
|
+
|
41
57
|
def exists?
|
42
58
|
!iis_site.nil? && !iis_site[:name].nil?
|
43
59
|
end
|
data/lib/resources/ssl.rb
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
|
7
7
|
require 'sslshake'
|
8
8
|
require 'utils/filter'
|
9
|
+
require 'uri'
|
10
|
+
require 'parallel'
|
9
11
|
|
10
12
|
# Custom resource based on the InSpec resource DSL
|
11
13
|
class SSL < Inspec.resource(1)
|
@@ -44,6 +46,11 @@ class SSL < Inspec.resource(1)
|
|
44
46
|
def initialize(opts = {})
|
45
47
|
@host = opts[:host] ||
|
46
48
|
inspec.backend.instance_variable_get(:@hostname)
|
49
|
+
# FIXME: This can be removed when/if @hostname is available as a property for 'Train::Transports::WinRM::Connection'
|
50
|
+
# Train enhancement request for this here: https://github.com/chef/train/issues/128
|
51
|
+
if @host.nil? && inspec.backend.class.to_s == 'Train::Transports::WinRM::Connection'
|
52
|
+
@host = URI.parse(inspec.backend.instance_variable_get(:@options)[:endpoint]).hostname
|
53
|
+
end
|
47
54
|
if @host.nil? && inspec.backend.class.to_s == 'Train::Transports::Local::Connection'
|
48
55
|
@host = 'localhost'
|
49
56
|
end
|
@@ -63,7 +70,7 @@ class SSL < Inspec.resource(1)
|
|
63
70
|
.add(:enabled?) { |x| x.handshake.values.any? { |i| i['success'] } }
|
64
71
|
.add(:handshake) { |x|
|
65
72
|
groups = x.entries.group_by(&:protocol)
|
66
|
-
res =
|
73
|
+
res = Parallel.map(groups, in_threads: 8) do |proto, e|
|
67
74
|
[proto, SSLShake.hello(x.resource.host, port: x.resource.port,
|
68
75
|
protocol: proto, ciphers: e.map(&:cipher),
|
69
76
|
timeout: @timeout, retries: @retries)]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.33.
|
4
|
+
version: 0.33.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
@@ -190,6 +190,20 @@ dependencies:
|
|
190
190
|
- - "~>"
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: '1'
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: parallel
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '1.9'
|
200
|
+
type: :runtime
|
201
|
+
prerelease: false
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - "~>"
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '1.9'
|
193
207
|
description: InSpec provides a framework for creating end-to-end infrastructure tests.
|
194
208
|
You can use it for integration or even compliance testing. Create fully portable
|
195
209
|
test profiles and use them in your workflow to ensure stability and security. Integrate
|