Skip to content

Commit

Permalink
Merge pull request #212 from hubblestack/develop
Browse files Browse the repository at this point in the history
Merge to master (prep v2.2.6)
  • Loading branch information
basepi authored Sep 28, 2017
2 parents b59b9a7 + e34cd6c commit 92dda72
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion hubblestack/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.2.5'
__version__ = '2.2.6'
4 changes: 2 additions & 2 deletions hubblestack/extmods/modules/hubble.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def top(topfile='top.nova',
# tag.
data_by_tag = {}
for data in top_data:
if isinstance(data, str):
if isinstance(data, basestring):
if '*' not in data_by_tag:
data_by_tag['*'] = []
data_by_tag['*'].append(data)
Expand All @@ -466,7 +466,7 @@ def top(topfile='top.nova',
if 'Errors' not in results:
results['Errors'] = {}
error_log = 'topfile malformed, list entries must be strings or '\
'dicts: {0}'.format(data)
'dicts: {0} | {1}'.format(data, type(data))
results['Errors'][topfile] = {'error': error_log}
log.error(error_log)
continue
Expand Down
2 changes: 1 addition & 1 deletion hubblestack/files/hubblestack_nova/cve_scan_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def _get_cve_vulnerabilities(query_results, os_version):

for pkg in report['_source']['affectedPackage']:
#_source:affectedPackages
if pkg['OSVersion'] in ['any', os_version]: #Only use matching os
if pkg['OSVersion'] in ['any', str(__grains__.get('osmajorrelease', None)), str(__grains__.get('osrelease', None))]: #Only use matching os
pkg_obj = VulnerablePkg(title, pkg['packageName'], pkg['packageVersion'], \
score, pkg['operator'], reporter, href, cve_list)
if pkg_obj.pkg not in vulnerable_pkgs:
Expand Down
6 changes: 3 additions & 3 deletions pkg/amazonlinux2016.09/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir -p /etc/osquery /var/log/osquery /etc/hubble/hubble.d /opt/hubble /opt
#osquery should be built first since requirements for other packages can interfere with osquery dependencies
#to build, osquery scripts want sudo and a user to sudo with.
#to pin to a different version change the following envirnment variable
ENV OSQUERY_SRC_VERSION=2.7.0
ENV OSQUERY_SRC_VERSION=2.8.0
ENV OSQUERY_BUILD_USER=osquerybuilder
ENV OSQUERY_GIT_URL=https://github.com/facebook/osquery.git
RUN yum -y install git make python ruby sudo which
Expand Down Expand Up @@ -91,8 +91,8 @@ RUN yum install -y ruby ruby-devel rpmbuild rubygems gcc make \
#pyinstaller start
#commands specified for ENTRYPOINT and CMD are executed when the container is run, not when the image is built
#use the following variables to choose the version of hubble
ENV HUBBLE_CHECKOUT=v2.2.5
ENV HUBBLE_VERSION=2.2.5
ENV HUBBLE_CHECKOUT=v2.2.6
ENV HUBBLE_VERSION=2.2.6
ENV HUBBLE_GIT_URL=https://github.com/hubblestack/hubble.git
ENV HUBBLE_SRC_PATH=/hubble_src
ENV _HOOK_DIR="./pkg/"
Expand Down
6 changes: 3 additions & 3 deletions pkg/amazonlinux2017.03/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir -p /etc/osquery /var/log/osquery /etc/hubble/hubble.d /opt/hubble /opt
#osquery should be built first since requirements for other packages can interfere with osquery dependencies
#to build, osquery scripts want sudo and a user to sudo with.
#to pin to a different version change the following envirnment variable
ENV OSQUERY_SRC_VERSION=2.7.0
ENV OSQUERY_SRC_VERSION=2.8.0
ENV OSQUERY_BUILD_USER=osquerybuilder
ENV OSQUERY_GIT_URL=https://github.com/facebook/osquery.git
RUN yum -y install git make python ruby sudo which
Expand Down Expand Up @@ -91,8 +91,8 @@ RUN yum install -y ruby ruby-devel rpmbuild rubygems gcc make \
#pyinstaller start
#commands specified for ENTRYPOINT and CMD are executed when the container is run, not when the image is built
#use the following variables to choose the version of hubble
ENV HUBBLE_CHECKOUT=v2.2.5
ENV HUBBLE_VERSION=2.2.5
ENV HUBBLE_CHECKOUT=v2.2.6
ENV HUBBLE_VERSION=2.2.6
ENV HUBBLE_GIT_URL=https://github.com/hubblestack/hubble.git
ENV HUBBLE_SRC_PATH=/hubble_src
ENV _HOOK_DIR="./pkg/"
Expand Down
6 changes: 3 additions & 3 deletions pkg/centos6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir -p /etc/osquery /var/log/osquery /etc/hubble/hubble.d /opt/hubble /opt
#osquery should be built first since requirements for other packages can interfere with osquery dependencies
#to build, osquery scripts want sudo and a user to sudo with.
#to pin to a different version change the following envirnment variable
ENV OSQUERY_SRC_VERSION=2.7.0
ENV OSQUERY_SRC_VERSION=2.8.0
ENV OSQUERY_BUILD_USER=osquerybuilder
ENV OSQUERY_GIT_URL=https://github.com/facebook/osquery.git
RUN yum -y install git make python ruby sudo which python-argparse
Expand Down Expand Up @@ -93,8 +93,8 @@ RUN yum install -y rpmbuild gcc make rh-ruby23 rh-ruby23-ruby-devel \
#pyinstaller start
#commands specified for ENTRYPOINT and CMD are executed when the container is run, not when the image is built
#use the following variables to choose the version of hubble
ENV HUBBLE_CHECKOUT=v2.2.5
ENV HUBBLE_VERSION=2.2.5
ENV HUBBLE_CHECKOUT=v2.2.6
ENV HUBBLE_VERSION=2.2.6
ENV HUBBLE_GIT_URL=https://github.com/hubblestack/hubble.git
ENV HUBBLE_SRC_PATH=/hubble_src
ENV _HOOK_DIR="./pkg/"
Expand Down
6 changes: 3 additions & 3 deletions pkg/centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir -p /etc/osquery /var/log/osquery /etc/hubble/hubble.d /opt/hubble /opt
#osquery should be built first since requirements for other packages can interfere with osquery dependencies
#to build, osquery scripts want sudo and a user to sudo with.
#to pin to a different version change the following envirnment variable
ENV OSQUERY_SRC_VERSION=2.7.0
ENV OSQUERY_SRC_VERSION=2.8.0
ENV OSQUERY_BUILD_USER=osquerybuilder
ENV OSQUERY_GIT_URL=https://github.com/facebook/osquery.git
RUN yum -y install git make python ruby sudo which
Expand Down Expand Up @@ -90,8 +90,8 @@ RUN yum install -y ruby ruby-devel rpmbuild rubygems gcc make \
#pyinstaller start
#commands specified for ENTRYPOINT and CMD are executed when the container is run, not when the image is built
#use the following variables to choose the version of hubble
ENV HUBBLE_CHECKOUT=v2.2.5
ENV HUBBLE_VERSION=2.2.5
ENV HUBBLE_CHECKOUT=v2.2.6
ENV HUBBLE_VERSION=2.2.6
ENV HUBBLE_GIT_URL=https://github.com/hubblestack/hubble.git
ENV HUBBLE_SRC_PATH=/hubble_src
ENV _HOOK_DIR="./pkg/"
Expand Down
6 changes: 3 additions & 3 deletions pkg/coreos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN mkdir -p /etc/osquery /var/log/osquery /etc/hubble/hubble.d /opt/hubble /opt
#osquery should be built first since requirements for other packages can interfere with osquery dependencies
#to build, osquery scripts want sudo and a user to sudo with.
#to pin to a different version change the following envirnment variable
ENV OSQUERY_SRC_VERSION=2.7.0
ENV OSQUERY_SRC_VERSION=2.8.0
ENV OSQUERY_BUILD_USER=osquerybuilder
ENV OSQUERY_GIT_URL=https://github.com/facebook/osquery.git
RUN apt-get -y install git make python ruby sudo
Expand Down Expand Up @@ -88,8 +88,8 @@ RUN pip install --upgrade pip \
#pyinstaller start
#commands specified for ENTRYPOINT and CMD are executed when the container is run, not when the image is built
#use the following variables to choose the version of hubble
ENV HUBBLE_CHECKOUT=v2.2.5
ENV HUBBLE_VERSION=2.2.5
ENV HUBBLE_CHECKOUT=v2.2.6
ENV HUBBLE_VERSION=2.2.6
ENV HUBBLE_GIT_URL=https://github.com/hubblestack/hubble.git
ENV HUBBLE_SRC_PATH=/hubble_src
ENV _HOOK_DIR="./pkg/"
Expand Down
6 changes: 3 additions & 3 deletions pkg/debian7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN mkdir -p /etc/osquery /var/log/osquery /etc/hubble/hubble.d /opt/hubble /opt
#osquery should be built first since requirements for other packages can interfere with osquery dependencies
#to build, osquery scripts want sudo and a user to sudo with.
#to pin to a different version change the following envirnment variable
ENV OSQUERY_SRC_VERSION=2.7.0
ENV OSQUERY_SRC_VERSION=2.8.0
ENV OSQUERY_BUILD_USER=osquerybuilder
ENV OSQUERY_GIT_URL=https://github.com/facebook/osquery.git
RUN apt-get -y install git make python ruby sudo locales
Expand Down Expand Up @@ -115,8 +115,8 @@ RUN apt-get install -y ruby ruby-dev rubygems gcc make \
#pyinstaller start
#commands specified for ENTRYPOINT and CMD are executed when the container is run, not when the image is built
#use the following variables to choose the version of hubble
ENV HUBBLE_CHECKOUT=v2.2.5
ENV HUBBLE_VERSION=2.2.5
ENV HUBBLE_CHECKOUT=v2.2.6
ENV HUBBLE_VERSION=2.2.6
ENV HUBBLE_GIT_URL=https://github.com/hubblestack/hubble.git
ENV HUBBLE_SRC_PATH=/hubble_src
ENV _HOOK_DIR="./pkg/"
Expand Down
6 changes: 3 additions & 3 deletions pkg/debian8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN mkdir -p /etc/osquery /var/log/osquery /etc/hubble/hubble.d /opt/hubble /opt
#osquery should be built first since requirements for other packages can interfere with osquery dependencies
#to build, osquery scripts want sudo and a user to sudo with.
#to pin to a different version change the following envirnment variable
ENV OSQUERY_SRC_VERSION=2.7.0
ENV OSQUERY_SRC_VERSION=2.8.0
ENV OSQUERY_BUILD_USER=osquerybuilder
ENV OSQUERY_GIT_URL=https://github.com/facebook/osquery.git
RUN apt-get -y install git make python ruby sudo locales
Expand Down Expand Up @@ -96,8 +96,8 @@ RUN apt-get install -y ruby ruby-dev rubygems gcc make \
#pyinstaller start
#commands specified for ENTRYPOINT and CMD are executed when the container is run, not when the image is built
#use the following variables to choose the version of hubble
ENV HUBBLE_CHECKOUT=v2.2.5
ENV HUBBLE_VERSION=2.2.5
ENV HUBBLE_CHECKOUT=v2.2.6
ENV HUBBLE_VERSION=2.2.6
ENV HUBBLE_GIT_URL=https://github.com/hubblestack/hubble.git
ENV HUBBLE_SRC_PATH=/hubble_src
ENV _HOOK_DIR="./pkg/"
Expand Down
6 changes: 3 additions & 3 deletions pkg/debian9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN mkdir -p /etc/osquery /var/log/osquery /etc/hubble/hubble.d /opt/hubble /opt
#osquery should be built first since requirements for other packages can interfere with osquery dependencies
#to build, osquery scripts want sudo and a user to sudo with.
#to pin to a different version change the following envirnment variable
ENV OSQUERY_SRC_VERSION=2.7.0
ENV OSQUERY_SRC_VERSION=2.8.0
ENV OSQUERY_BUILD_USER=osquerybuilder
ENV OSQUERY_GIT_URL=https://github.com/facebook/osquery.git
RUN apt-get -y install git make python ruby sudo
Expand Down Expand Up @@ -92,8 +92,8 @@ RUN apt-get install -y ruby ruby-dev rubygems gcc make \
#pyinstaller start
#commands specified for ENTRYPOINT and CMD are executed when the container is run, not when the image is built
#use the following variables to choose the version of hubble
ENV HUBBLE_CHECKOUT=v2.2.5
ENV HUBBLE_VERSION=2.2.5
ENV HUBBLE_CHECKOUT=v2.2.6
ENV HUBBLE_VERSION=2.2.6
ENV HUBBLE_GIT_URL=https://github.com/hubblestack/hubble.git
ENV HUBBLE_SRC_PATH=/hubble_src
ENV _HOOK_DIR="./pkg/"
Expand Down

0 comments on commit 92dda72

Please sign in to comment.