Skip to content
This repository has been archived by the owner. It is now read-only.

Commit cee2c75

Browse files
authored
Merge pull request #269 from HubbleStack/develop
Merge to master (prep for v2016.10.1)
2 parents 2e1648c + e3f837d commit cee2c75

29 files changed

+7685
-6789
lines changed

FORMULA

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
top_level_dir: hubblestack_nova
12
name: hubblestack_nova
23
os: RedHat, CentOS, Debian, Ubuntu
34
os_family: RedHat, Debian
4-
version: 2016.7.1
5+
version: 2016.9.2
56
release: 1
67
summary: HubbleStack Nova
78
description: HubbleStack Nova

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ iterate policy changes separate from the code.
5656

5757
.. code-block:: shell
5858
59-
wget http://spm.hubblestack.io/nova/hubblestack_nova-2016.9.2.spm
60-
spm local install hubblestack_nova-2016.9.2.spm
59+
wget https://spm.hubblestack.io/nova/hubblestack_nova-2016.9.2-1.spm
60+
spm local install hubblestack_nova-2016.9.2-1.spm
6161
6262
**Nova Profiles**
6363

6464
.. code-block:: shell
6565
66-
wget http://spm.hubblestack.io/nova/hubblestack_nova_profiles-20160909-1.spm
67-
spm local install hubblestack_nova_profiles-20160909-1.spm
66+
wget https://spm.hubblestack.io/nova/hubblestack_nova_profiles-20160914-1.spm
67+
spm local install hubblestack_nova_profiles-20160914-1.spm
6868
6969
You should now be able to sync the new modules to your minion(s) using the
7070
``sync_modules`` Salt utility:

_modules/hubble.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from salt.loader import LazyLoader
3636

3737
__nova__ = {}
38+
__version__ = 'v2016.10.1'
3839

3940

4041
def audit(configs=None,
@@ -508,6 +509,13 @@ def load():
508509
return ret
509510

510511

512+
def version():
513+
'''
514+
Report the version of this module
515+
'''
516+
return __version__
517+
518+
511519
def _hubble_dir():
512520
'''
513521
Generate the local minion directories to which nova modules and profiles

hubblestack_nova/win_firewall.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def _import_firewall():
232232
for val in vals:
233233
if val:
234234
v = val.split(':')
235+
if len(v) < 2: continue
235236
temp_vals[v[0].strip()] = v[1].strip()
236237
dict_return[temp_vals['Name']] = temp_vals
237238
return dict_return

hubblestack_nova/win_pkg.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import fnmatch
1414
import logging
1515
import salt.utils
16+
from salt.exceptions import CommandExecutionError
1617

1718

1819
log = logging.getLogger(__name__)
@@ -30,7 +31,11 @@ def audit(data_list, tags, verbose=False, show_profile=False, debug=False):
3031
with the CIS yaml processed by __virtual__
3132
'''
3233
__data__ = {}
33-
__pkgdata__ = __salt__['pkg.list_pkgs']()
34+
try:
35+
__pkgdata__ = __salt__['pkg.list_pkgs']()
36+
except CommandExecutionError:
37+
__salt__['pkg.refresh_db']()
38+
__pkgdata__ = __salt__['pkg.list_pkgs']()
3439
for profile, data in data_list:
3540
if show_profile:
3641
_merge_yaml(__data__, data, profile)

hubblestack_nova/win_reg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ def audit(data_list, tags, verbose=False, show_profile=False, debug=False):
8282
if secret:
8383
ret['Success'].append(tag_data)
8484
else:
85+
tag_data['value_found'] = current
8586
ret['Failure'].append(tag_data)
8687

8788
else:
89+
tag_data['value_found'] = None
8890
ret['Failure'].append(tag_data)
8991

9092

@@ -211,7 +213,7 @@ def _get_tags(data):
211213
ret[tag] = []
212214
formatted_data = {'name': name,
213215
'tag': tag,
214-
'module': 'win_auditpol',
216+
'module': 'win_reg',
215217
'type': toplist}
216218
formatted_data.update(tag_data)
217219
formatted_data.update(audit_data)

hubblestack_nova_profiles/cis/amazon-201409-level-1-scored-v1-0-0.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ grep:
703703
match_output: "ClientAliveInterval 300"
704704
- '/etc/ssh/sshd_config':
705705
tag: 'CIS-6.2.12'
706-
pattern: "^ClientAliveCountMatch"
707-
match_output: "ClientAliveCountMatch 0"
706+
pattern: "^ClientAliveCountMax"
707+
match_output: "ClientAliveCountMax 0"
708708
description: 'Set Idle Timeout Interval for User Login (Scored)'
709709

710710
sshd_limit_access:

0 commit comments

Comments
 (0)