Nexpose Client v7.0.0
Welcome to Nexpose-client 7.0.0!!
There is a lot going on in this update, so please take some time to read through the release notes. Feel free to browse the new Changelog as well, for a more granular view.
Let's begin!
Ability to set Http Timeouts:
- Added
:timeout
and:open_timeout
to Nexpose::Connection.- Default for both
:timeout
and:open_timeout
are set to 120 seconds. - The default values will populate down to anything that uses a http(s) timeouts.
- Applies mainly to APIRequest and Ajax
- Added comments with links to Ruby docs for further info about how the different http timeouts are used.
- Default for both
- Removed the behavior of automatically retrying a request on a Timeout.
- Since every request will have a default timeout of 120 seconds, we should no longer retry the request if it fails due to a timeout. A Timeout will now return an error and not retry.
- The following issues should now be able to edit their Timeout values and have a clear path to address their concern(s):
- Updated Documentation with info about how to use the Timeouts.
Updates to Credentials:
- Updates across all three of these PRs - #287, #288, #289
- Added Nexpose::CredentialHelper
- Moved all
set_auth_type
helper methods to this module. - This allows alias to work as intended for both classes which inherit Credential.
- Setting attributes of the object instead of instance variables like we were previously.
- Moved all
- Fixed SiteCredentials.test
- There were duplicate methods for
SiteCredentials.copy
. Now there are two distinct methods, and both implementations still return the same object.SiteCredentials.copy
requires connection, site and credential info.SiteCredentials#copy
just clones the currentSiteCredentials
but changes thename
and theid
.
- Alias changes for SharedCredentials
- Alias
:user_name
~>:username
- Alias
:permission_elevation_user
~>:privilege_username
- Alias
:permission_elevation_password
~>:privilege_password
- Alias
:permission_elevation_type
~>:privilege_type
- Alias
- Added
Credential::ElevationType::ENABLE
forCisco Enable/ Privileged Exec
New Scripts Repo:
- We've moved all the scripts from our scripts folder to a new repo.
Bug Fixes:
- #276 Fixed
_append_asset!
which closes Issue: 267