nexpose 7.1.0 → 7.1.1
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 +3 -4
- data/Gemfile.lock +1 -1
- data/lib/nexpose/connection.rb +2 -2
- data/lib/nexpose/group.rb +1 -1
- data/lib/nexpose/role.rb +2 -2
- data/lib/nexpose/site.rb +1 -1
- data/lib/nexpose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40c3bea146242b1ce37e08bc6bc1ed9544f2fa73
|
|
4
|
+
data.tar.gz: aee55cfaba753ffafae9fd90d045910e8481afdc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bab4414d32279ea3a2d4a7b1480e612419c7ea939cc0da14826d7984e9a06f95dfebabf7a25750485f233805a8346a44bf9a1deaf6e88f4ae4391b9f3162582
|
|
7
|
+
data.tar.gz: 3b8a5c7ba90d037ed0b2f5617996a5e35be053603a2e6f5ba0e1509b6e6c8ffc642670768272e31da7b17955bcac1a367692388a6057d5f587e1a91f0ab287c2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [
|
|
4
|
-
|
|
5
|
-
[Full Changelog](https://github.com/rapid7/nexpose-client/compare/v7.0.1...HEAD)
|
|
3
|
+
## [v7.1.0](https://github.com/rapid7/nexpose-client/tree/v7.1.0) (2017-09-26)
|
|
4
|
+
[Full Changelog](https://github.com/rapid7/nexpose-client/compare/v7.0.1...v7.1.0)
|
|
6
5
|
|
|
7
6
|
**Fixed bugs:**
|
|
8
7
|
|
|
@@ -10,11 +9,11 @@
|
|
|
10
9
|
|
|
11
10
|
**Closed issues:**
|
|
12
11
|
|
|
13
|
-
- support for encryption for recovery [\#290](https://github.com/rapid7/nexpose-client/issues/290)
|
|
14
12
|
- Connection Timeout When Creating DynamicAssetGroup with large number of criteria [\#274](https://github.com/rapid7/nexpose-client/issues/274)
|
|
15
13
|
- Vulnerability Exception 'approve' function applies vulnerability exception but throws a ruby exception [\#271](https://github.com/rapid7/nexpose-client/issues/271)
|
|
16
14
|
- Add a global timeout parameter to Connection [\#269](https://github.com/rapid7/nexpose-client/issues/269)
|
|
17
15
|
- Update Example Scripts [\#244](https://github.com/rapid7/nexpose-client/issues/244)
|
|
16
|
+
- support for encryption for recovery [\#290](https://github.com/rapid7/nexpose-client/issues/290)
|
|
18
17
|
|
|
19
18
|
**Merged pull requests:**
|
|
20
19
|
|
data/Gemfile.lock
CHANGED
data/lib/nexpose/connection.rb
CHANGED
|
@@ -57,11 +57,11 @@ module Nexpose
|
|
|
57
57
|
attr_reader :response_xml
|
|
58
58
|
# The trust store to validate connections against if any
|
|
59
59
|
attr_reader :trust_store
|
|
60
|
-
# The main HTTP read_timeout value
|
|
60
|
+
# The main HTTP read_timeout value, in seconds
|
|
61
61
|
# For more information visit the link below:
|
|
62
62
|
# https://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html#read_timeout-attribute-method
|
|
63
63
|
attr_accessor :timeout
|
|
64
|
-
# The optional HTTP open_timeout value
|
|
64
|
+
# The optional HTTP open_timeout value, in seconds
|
|
65
65
|
# For more information visit the link below:
|
|
66
66
|
# http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html#open_timeout-attribute-method
|
|
67
67
|
attr_accessor :open_timeout
|
data/lib/nexpose/group.rb
CHANGED
|
@@ -159,7 +159,7 @@ module Nexpose
|
|
|
159
159
|
#
|
|
160
160
|
def self.load(connection, id)
|
|
161
161
|
xml = %(<AssetGroupConfigRequest session-id="#{connection.session_id}" group-id="#{id}"/>)
|
|
162
|
-
r = APIRequest.execute(connection.url, xml)
|
|
162
|
+
r = APIRequest.execute(connection.url, xml, '1.1', { timeout: connection.timeout, open_timeout: connection.open_timeout })
|
|
163
163
|
parse(r.res)
|
|
164
164
|
end
|
|
165
165
|
|
data/lib/nexpose/role.rb
CHANGED
|
@@ -157,7 +157,7 @@ module Nexpose
|
|
|
157
157
|
def self.load(nsc, name, scope = Scope::SILO)
|
|
158
158
|
xml = nsc.make_xml('RoleDetailsRequest')
|
|
159
159
|
xml.add_element('Role', { 'name' => name, 'scope' => scope })
|
|
160
|
-
response = APIRequest.execute(nsc.url, xml, '1.2')
|
|
160
|
+
response = APIRequest.execute(nsc.url, xml, '1.2', { timeout: nsc.timeout, open_timeout: nsc.open_timeout })
|
|
161
161
|
|
|
162
162
|
if response.success
|
|
163
163
|
elem = REXML::XPath.first(response.res, 'RoleDetailsResponse/Role/')
|
|
@@ -179,7 +179,7 @@ module Nexpose
|
|
|
179
179
|
end
|
|
180
180
|
xml.add_element(as_xml)
|
|
181
181
|
|
|
182
|
-
response = APIRequest.execute(nsc.url, xml, '1.2')
|
|
182
|
+
response = APIRequest.execute(nsc.url, xml, '1.2', { timeout: nsc.timeout, open_timeout: nsc.open_timeout })
|
|
183
183
|
xml = REXML::XPath.first(response.res, 'RoleCreateResponse')
|
|
184
184
|
@id = xml.attributes['id'].to_i unless @existing
|
|
185
185
|
@existing = true
|
data/lib/nexpose/site.rb
CHANGED
|
@@ -550,7 +550,7 @@ module Nexpose
|
|
|
550
550
|
'sync-id' => sync_id })
|
|
551
551
|
|
|
552
552
|
xml.add_attributes({ 'force' => true }) if blackout_override
|
|
553
|
-
response = connection.execute(xml, '1.1', timeout:
|
|
553
|
+
response = connection.execute(xml, '1.1', timeout: connection.timeout)
|
|
554
554
|
Scan.parse(response.res) if response.success
|
|
555
555
|
end
|
|
556
556
|
end
|
data/lib/nexpose/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nexpose
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.1.
|
|
4
|
+
version: 7.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- HD Moore
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2017-09-
|
|
16
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: bundler
|