Skip to content

Commit ef9ff82

Browse files
committed
Merge branch 'develop'
2 parents 5cc2b3b + a9f3d48 commit ef9ff82

40 files changed

+1795
-735
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: perl
22
perl:
3+
- "5.32"
34
- "5.30"
45
- "5.28"
56
- "5.26"

Changes

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Revision history for Net::SecurityCenter
22

3-
0.206 2020/07/22
3+
0.300 2020-10-30
4+
- Added support for API Authentication (added in Tenable.sc 5.13)
5+
- Added "Net::SecurityCenter::API::Notification" class
6+
- Added "App:TenableSC" class for CLI applications
7+
- Improved "sc-api" table output
8+
- Added supporto for API Authentication in "sc-api"
9+
- Improved error handling
10+
- Improved documentations
11+
- Improved Perl "magic" features (wantarray)
12+
- Code beautifications
13+
14+
0.206 2020-07-22
415
- Refactoring "Net::SecurityCenter" class
516
- Added "Net::SecurityCenter::API::Status" class
617
- Added "Net::SecurityCenter::API::DeviceInfo" class (added in Tenable.sc 5.12)
@@ -13,33 +24,31 @@ Revision history for Net::SecurityCenter
1324
- Improved documentations
1425
- Added more tests
1526

16-
0.205 2020/01/31
27+
0.205 2020-01-31
1728
- Added new Net::SecurityCenter::API::ScanResult methods
1829
- import
1930
- reimport
2031
- email
2132
- Improved Net::SecurityCenter::API::ScanResult->stop method (added "type=>import")
2233

23-
0.204 2019/11/06
34+
0.204 2019-11-06
2435
- Removed "List::Util" dependency (fix Bug #130874)
2536

26-
0.203 2019/10/29
37+
0.203 2019-10-29
2738
- Added initial support for Tenable.sc 5.12
2839
- Added "Net::SecurityCenter::API::Scanner::health" method
2940
- Renamed "Net::SecurityCenter::API::Scanner->get_status" method to "Net::SecurityCenter::API::Scanner->status"
3041
- Renamed "Net::SecurityCenter::API::ScanResult->get_status" method to "Net::SecurityCenter::API::ScanResult->status"
3142
- Renamed "Net::SecurityCenter::API::ScanResult->get_progress" method to "Net::SecurityCenter::API::ScanResult->progress"
3243

33-
0.202 2019/09/10
44+
0.202 2019-09-10
3445
- Added "download" method for Analysis API
3546

36-
37-
0.201 2019/07/12
47+
0.201 2019-07-12
3848
- Fixed documentation issue
3949
- Added missing file in MANIFEST
4050

41-
42-
0.200 2019/07/02
51+
0.200 2019-07-02
4352
- Created new API structure and splitted Net::Security::Center class in
4453
indipendent API modules:
4554
- Analisys
@@ -60,7 +69,6 @@ Revision history for Net::SecurityCenter
6069
- Improved documentation
6170
- Improved test suite
6271
- Added support for Log::Log4perl and Log::Any logging modules
63-
6472

65-
0.100 2018/12/28
73+
0.100 2018-12-28
6674
- initial release

MANIFEST

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
bin/sc-api
22
Changes
33
INSTALL.md
4+
lib/App/TenableSC.pm
5+
lib/App/TenableSC/API.pm
6+
lib/App/TenableSC/Logger.pm
7+
lib/App/TenableSC/Utils.pm
48
lib/Net/SecurityCenter.pm
5-
lib/Net/SecurityCenter/API.pm
69
lib/Net/SecurityCenter/API/Analysis.pm
710
lib/Net/SecurityCenter/API/Credential.pm
811
lib/Net/SecurityCenter/API/DeviceInfo.pm
912
lib/Net/SecurityCenter/API/Feed.pm
1013
lib/Net/SecurityCenter/API/File.pm
14+
lib/Net/SecurityCenter/API/Notification.pm
1115
lib/Net/SecurityCenter/API/Plugin.pm
1216
lib/Net/SecurityCenter/API/PluginFamily.pm
1317
lib/Net/SecurityCenter/API/Policy.pm
@@ -20,6 +24,7 @@ lib/Net/SecurityCenter/API/Status.pm
2024
lib/Net/SecurityCenter/API/System.pm
2125
lib/Net/SecurityCenter/API/User.pm
2226
lib/Net/SecurityCenter/API/Zone.pm
27+
lib/Net/SecurityCenter/Base.pm
2328
lib/Net/SecurityCenter/Error.pm
2429
lib/Net/SecurityCenter/REST.pm
2530
lib/Net/SecurityCenter/Utils.pm
@@ -32,6 +37,10 @@ t/10-rest.t
3237
t/20-utils.t
3338
t/99-local.t
3439
t/manifest.t
40+
t/mock/rest-analysis-post.json
41+
t/mock/rest-currentUser-get.json
42+
t/mock/rest-notification-39-get.json
43+
t/mock/rest-notification-get.json
3544
t/mock/rest-plugin-0-get.json
3645
t/mock/rest-plugin-get.json
3746
t/mock/rest-pluginFamily-1000030-get.json

Makefile.PL

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ WriteMakefile(
2323
PREREQ_PM => {
2424
'JSON' => '0',
2525
'Time::Piece' => '0',
26-
'LWP::UserAgent' => 6.04,
26+
'LWP::UserAgent' => '6.04',
27+
'version' => '0.77'
2728
},
2829
META_MERGE => {
2930
'meta-spec' => { version => 2 },

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Net::SecurityCenter;
99
my $sc = Net::SecurityCenter('sc.example.org') or die "Error: $@";
1010

11-
$sc->login('secman', 'password');
11+
$sc->login(username => 'secman', password => 's3cr3t');
1212

1313
if ($sc->error) {
1414
print "Failed login: " . $sc->error;

0 commit comments

Comments
 (0)