Skip to content

Commit de8304d

Browse files
authored
Merge pull request #859 from cisagov/improvement/scanning-by-hostname
Support scanning by hostname
2 parents 5688ed3 + 1c89bc2 commit de8304d

File tree

3 files changed

+29
-24
lines changed

3 files changed

+29
-24
lines changed
Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,66 @@
11
[DEFAULT]
2-
default-section = production
32
database-uri = mongodb://{{ cyhy_commander_commander_user }}:{{ cyhy_commander_commander_pw }}@database1.cyhy:27017/{{ cyhy_commander_commander_db }}
4-
jobs-per-nmap-host = 8
3+
debug-logging = true
4+
# default-scheduler specifies which scheduler should be used if the request
5+
# document for the default CYHY owner doesn't exist and must be created by the
6+
# commander.
7+
default-scheduler = PERSISTENT1
8+
default-section = production
59
jobs-per-nessus-host = 16
6-
poll-interval = 30
7-
next-scan-limit = 8192
8-
test-mode = false
10+
jobs-per-nmap-host = 8
911
keep-failures = true
1012
keep-successes = false
11-
shutdown-when-idle = false
12-
debug-logging = true
13-
nmap-hosts = portscan1
1413
nessus-hosts = vulnscan1
14+
next-scan-limit = 8192
15+
nmap-hosts = portscan1
16+
poll-interval = 30
17+
shutdown-when-idle = false
18+
test-mode = false
1519

1620
[production]
1721
database-name = cyhy
18-
jobs-per-nmap-host = {{ cyhy_commander_jobs_per_nmap_host }}
1922
jobs-per-nessus-host = {{ cyhy_commander_jobs_per_nessus_host }}
23+
jobs-per-nmap-host = {{ cyhy_commander_jobs_per_nmap_host }}
24+
nessus-hosts = {{ cyhy_commander_nessus_hosts }}
2025
next-scan-limit = {{ cyhy_commander_next_scan_limit }}
2126
nmap-hosts = {{ cyhy_commander_nmap_hosts }}
22-
nessus-hosts = {{ cyhy_commander_nessus_hosts }}
2327

2428
[purge]
2529
# use to collect remaining jobs without creating new ones
26-
jobs-per-nmap-host = 0
30+
database-name = cyhy
2731
jobs-per-nessus-host = 0
32+
jobs-per-nmap-host = 0
2833
shutdown-when-idle = true
29-
database-name = cyhy
3034

3135
[purge-production]
3236
# use to collect remaining jobs without creating new ones
3337
database-name = cyhy
34-
jobs-per-nmap-host = 0
3538
jobs-per-nessus-host = 0
36-
shutdown-when-idle = false
37-
nmap-hosts = {{ cyhy_commander_nmap_hosts }}
39+
jobs-per-nmap-host = 0
3840
nessus-hosts = {{ cyhy_commander_nessus_hosts }}
41+
nmap-hosts = {{ cyhy_commander_nmap_hosts }}
42+
shutdown-when-idle = false
3943

4044
[purge-trash]
4145
# purge jobs from scanners
4246
# but send to trash db
43-
jobs-per-nmap-host = 0
47+
database-name = trash
4448
jobs-per-nessus-host = 0
49+
jobs-per-nmap-host = 0
4550
shutdown-when-idle = true
46-
database-name = trash
4751

4852
[testing]
49-
# test-mode = true
5053
database-name = cyhy
51-
jobs-per-nmap-host = 1
5254
jobs-per-nessus-host = 1
53-
nmap-hosts = portscan1
55+
jobs-per-nmap-host = 1
5456
nessus-hosts = vulnscan1
57+
nmap-hosts = portscan1
58+
# test-mode = true
5559

5660
[testing-bonus]
57-
# test-mode = true
5861
database-name = cyhy
59-
jobs-per-nmap-host = 12
6062
jobs-per-nessus-host = 16
61-
nmap-hosts = portscan1, portscan2, portscan3, portscan4
63+
jobs-per-nmap-host = 12
6264
nessus-hosts = vulnscan1
65+
nmap-hosts = portscan1, portscan2, portscan3, portscan4
66+
# test-mode = true

terraform/scripts/deploy_new_database_ami.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ terraform apply -var-file="$workspace.tfvars" \
4242
-target=aws_security_group_rule.adi_lambda_to_cyhy_mongo \
4343
-target=aws_security_group_rule.bastion_egress_to_mongo_via_mongo \
4444
-target=aws_security_group_rule.fdi_lambda_to_cyhy_mongo \
45+
-target=aws_security_group_rule.lambda_egress_to_mongo_via_mongo \
4546
-target=aws_security_group_rule.private_mongodb_egress_to_mongo_host \
4647
-target=aws_security_group_rule.private_mongodb_ingress \
4748
-target=aws_volume_attachment.cyhy_mongo_data_attachment \

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.07.31
1+
2025.09.09

0 commit comments

Comments
 (0)