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

Merge to master (prep for v2016.10.1) #269

Merged
merged 31 commits into from
Oct 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c7465be
Match more broadly on windows server 2008
basepi Sep 15, 2016
66cec9b
Match more loosely for windows server 2012
basepi Sep 15, 2016
42246b8
Remove dos line endings
basepi Sep 15, 2016
d3de7c8
Merge pull request #251 from basepi/fixup
basepi Sep 15, 2016
7f00e66
fixing SPM install links
cedwards Sep 16, 2016
d09604b
Merge pull request #252 from cedwards/develop
basepi Sep 17, 2016
7c479e9
Add leading slash in path for /etc/cron.hourly
amendlik Sep 21, 2016
b6a557f
Fix typos where 'description' was misspelled in profiles
amendlik Sep 21, 2016
ce5a847
Merge pull request #253 from amendlik/cron.hourly
basepi Sep 21, 2016
33ea48f
Merge pull request #254 from amendlik/description-typos
basepi Sep 21, 2016
303d442
Correct variable name in login.defs.
Sep 26, 2016
ae1b7ed
Merge pull request #256 from LHN/login_defs
basepi Sep 26, 2016
5b2cc1b
Fix password_hash grep match pattern
Sep 27, 2016
b6d9043
Fixup some windows bugs in profiles and modules
basepi Sep 27, 2016
bd6afec
Merge pull request #259 from basepi/fixup
cedwards Sep 27, 2016
016e2d2
Add amazon linux support to topfile
basepi Sep 27, 2016
f18b3a9
Merge pull request #258 from LHN/password_hash
basepi Sep 27, 2016
95315fc
Fixed simple mistakes made on the last commit.
madchills Sep 27, 2016
5ae4c8b
Merge pull request #261 from HubbleStack/simple_fixes
basepi Sep 27, 2016
6b539dc
Fix matching for password reuse and faillock.
Sep 28, 2016
83c6947
Merge pull request #262 from LHN/pam_checks
cedwards Sep 28, 2016
2908729
Merge pull request #260 from basepi/fixup
basepi Sep 28, 2016
02c0cbd
Fix typo in amazon cis profiles
basepi Sep 28, 2016
2d6735f
Merge pull request #264 from basepi/fixup
basepi Sep 28, 2016
417a438
sshd_config option is ClientAliveCountMax
complexsplit Sep 30, 2016
18c624a
Merge pull request #266 from complexsplit/develop
basepi Sep 30, 2016
e5b7b38
Added value retrieved when in verbose mode
madchills Sep 30, 2016
adea904
Merge pull request #267 from HubbleStack/win_reg-verbosity
basepi Oct 1, 2016
7b8b1f9
Add hubble.version and __version__
basepi Oct 14, 2016
15134df
Merge pull request #268 from basepi/versioning
cedwards Oct 18, 2016
e3f837d
Update to v2016.10.1
basepi Oct 18, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion FORMULA
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
top_level_dir: hubblestack_nova
name: hubblestack_nova
os: RedHat, CentOS, Debian, Ubuntu
os_family: RedHat, Debian
version: 2016.7.1
version: 2016.9.2
release: 1
summary: HubbleStack Nova
description: HubbleStack Nova
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ iterate policy changes separate from the code.

.. code-block:: shell

wget http://spm.hubblestack.io/nova/hubblestack_nova-2016.9.2.spm
spm local install hubblestack_nova-2016.9.2.spm
wget https://spm.hubblestack.io/nova/hubblestack_nova-2016.9.2-1.spm
spm local install hubblestack_nova-2016.9.2-1.spm

**Nova Profiles**

.. code-block:: shell

wget http://spm.hubblestack.io/nova/hubblestack_nova_profiles-20160909-1.spm
spm local install hubblestack_nova_profiles-20160909-1.spm
wget https://spm.hubblestack.io/nova/hubblestack_nova_profiles-20160914-1.spm
spm local install hubblestack_nova_profiles-20160914-1.spm

You should now be able to sync the new modules to your minion(s) using the
``sync_modules`` Salt utility:
Expand Down
8 changes: 8 additions & 0 deletions _modules/hubble.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from salt.loader import LazyLoader

__nova__ = {}
__version__ = 'v2016.10.1'


def audit(configs=None,
Expand Down Expand Up @@ -508,6 +509,13 @@ def load():
return ret


def version():
'''
Report the version of this module
'''
return __version__


def _hubble_dir():
'''
Generate the local minion directories to which nova modules and profiles
Expand Down
1 change: 1 addition & 0 deletions hubblestack_nova/win_firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def _import_firewall():
for val in vals:
if val:
v = val.split(':')
if len(v) < 2: continue
temp_vals[v[0].strip()] = v[1].strip()
dict_return[temp_vals['Name']] = temp_vals
return dict_return
Expand Down
7 changes: 6 additions & 1 deletion hubblestack_nova/win_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import fnmatch
import logging
import salt.utils
from salt.exceptions import CommandExecutionError


log = logging.getLogger(__name__)
Expand All @@ -30,7 +31,11 @@ def audit(data_list, tags, verbose=False, show_profile=False, debug=False):
with the CIS yaml processed by __virtual__
'''
__data__ = {}
__pkgdata__ = __salt__['pkg.list_pkgs']()
try:
__pkgdata__ = __salt__['pkg.list_pkgs']()
except CommandExecutionError:
__salt__['pkg.refresh_db']()
__pkgdata__ = __salt__['pkg.list_pkgs']()
for profile, data in data_list:
if show_profile:
_merge_yaml(__data__, data, profile)
Expand Down
4 changes: 3 additions & 1 deletion hubblestack_nova/win_reg.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ def audit(data_list, tags, verbose=False, show_profile=False, debug=False):
if secret:
ret['Success'].append(tag_data)
else:
tag_data['value_found'] = current
ret['Failure'].append(tag_data)

else:
tag_data['value_found'] = None
ret['Failure'].append(tag_data)


Expand Down Expand Up @@ -211,7 +213,7 @@ def _get_tags(data):
ret[tag] = []
formatted_data = {'name': name,
'tag': tag,
'module': 'win_auditpol',
'module': 'win_reg',
'type': toplist}
formatted_data.update(tag_data)
formatted_data.update(audit_data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ grep:
match_output: "ClientAliveInterval 300"
- '/etc/ssh/sshd_config':
tag: 'CIS-6.2.12'
pattern: "^ClientAliveCountMatch"
match_output: "ClientAliveCountMatch 0"
pattern: "^ClientAliveCountMax"
match_output: "ClientAliveCountMax 0"
description: 'Set Idle Timeout Interval for User Login (Scored)'

sshd_limit_access:
Expand Down
Loading