Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

Commit fcfd183

Browse files
author
Patrick Kelley
authored
Release 0.9.2 #711
0.9.2
2 parents 0f72952 + 81d852f commit fcfd183

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1311
-677
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ matrix:
3737
install:
3838
- sed -i '/WTF_CSRF_ENABLED = True/c\WTF_CSRF_ENABLED = False' `pwd`/env-config/config.py
3939
- pip install bandit
40+
- pip install pylint
4041

4142
script:
4243
- coverage run -a -m py.test security_monkey/tests/auditors || exit 1
@@ -46,6 +47,7 @@ matrix:
4647
- coverage run -a -m py.test security_monkey/tests/interface || exit 1
4748
- coverage run -a -m py.test security_monkey/tests/utilities || exit 1
4849
- bandit -r -ll -ii -x security_monkey/tests .
50+
- pylint -E -d E1101,E0611,F0401 --ignore=service.py,datastore.py,datastore_utils.py,watcher.py security_monkey
4951

5052
after_success:
5153
- coveralls

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
FROM ubuntu:14.04
1717
MAINTAINER Netflix Open Source Development <talent@netflix.com>
1818

19-
ENV SECURITY_MONKEY_VERSION=v0.9.1 \
19+
ENV SECURITY_MONKEY_VERSION=v0.9.2 \
2020
SECURITY_MONKEY_SETTINGS=/usr/local/src/security_monkey/env-config/config-docker.py
2121

2222
RUN apt-get update &&\

dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: security_monkey
22
description: An AWS Policy Monitoring and Alerting Tool
3-
version: 0.9.1
3+
version: 0.9.2
44
dependencies:
55
angular: "^1.1.2+2"
66
angular_ui: ">=0.6.8 <0.7.0"

docker/nginx/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
FROM nginx:1.11.4
1616
MAINTAINER Netflix Open Source Development <talent@netflix.com>
1717

18-
ENV SECURITY_MONKEY_VERSION=v0.9.1
18+
ENV SECURITY_MONKEY_VERSION=v0.9.2
1919
RUN apt-get update &&\
2020
apt-get install -y curl git sudo apt-transport-https &&\
2121
curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - &&\

docs/changelog.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
11
Changelog
22
=========
33

4+
v0.9.2 (2017-05-24)
5+
----------------------------------------
6+
7+
- PR #695 - @mikegrima - Fixing jinja import bug affecting change emails.
8+
- PR #692 - @LukeKennedy - Reduce number of API calls in Managed Policy watcher.
9+
- PR #694 - @supertom - GCP Documentation Updates
10+
- PR #701 - @supertom - Update GCP ServiceAccount Name to use email instead of DisplayName.
11+
- PR #702 - @rodriguezsergio - Update KMS Auditor. Don't create issue when Effect is Deny for a wildcard principal.
12+
- PR #697 - @mcpeak - Pylint fixes and TravisCI pylint enforcement.
13+
- PR #706 - @monkeysecurity Fix bug where batched watchers did not send change alert emails.
14+
- PR #708 - @redixin - Fix bug in docker config where `SECURITY_MONKEY_POSTGRES_PORT` would not work if passed as a string.
15+
- PR #714 - @monkeysecurity - Fix bug where change emails from batched watchers had incorrect color in the JSON diff.
16+
- PR #713 - @monkeysecurity - Fix path to favicon from flask-security jinja templates.
17+
- PR #709 - @crruthe - Exempt SSO API from CSRF protection.
18+
- PR #719 - @monkeysecurity - New simplified watcher format for CloudAux Technologies.
19+
- PR #726 - @monkeysecurity, @willbengtson - Add new SAMLProvider watcher.
20+
- PR #730 - @monkeysecurity - Fix bug where ephemerals were not respected for CloudAuxWatcher subclasses.
21+
- PR #727 - @supertom - Fix bug where duplicate GCP names would violate DB's unique constraint. Names now contain project ID.
22+
- PR #728 - @supertom - Basic Auditor Tests for GCP.
23+
- @monkeysecurity - Updated link to Ubuntu's SSL documentation.
24+
- @monkeysecurity - Bumped version of Cryptography dependency.
25+
- PEP8 updates.
26+
27+
Important Notes:
28+
- Additional Permissions Required:
29+
- "elasticloadbalancing:describelisteners",
30+
- "elasticloadbalancing:describerules",
31+
- "elasticloadbalancing:describesslpolicies",
32+
- "elasticloadbalancing:describetags",
33+
- "elasticloadbalancing:describetargetgroups",
34+
- "elasticloadbalancing:describetargetgroupattributes",
35+
- "elasticloadbalancing:describetargethealth",
36+
- "iam:listsamlproviders",
37+
- New Watcher: ALB (elbv2)
38+
- ELB (v1) Watcher re-written with boto3 in CloudAux. Now respects the config value `SECURITYGROUP_INSTANCE_DETAIL` when determining whether to add the instance id's to the ELB definition.
39+
40+
Contributors:
41+
- @LukeKennedy
42+
- @rodriguezsergio
43+
- @redixin
44+
- @crruthe
45+
- @supertom
46+
- @mcpeak
47+
- @mikegrima
48+
- @monkeysecurity
49+
450
v0.9.1 (2017-04-20)
551
----------------------------------------
652

docs/iam_aws.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ Paste in this JSON with the name "SecurityMonkeyReadOnly":
9898
"elasticloadbalancing:describeloadbalancerattributes",
9999
"elasticloadbalancing:describeloadbalancerpolicies",
100100
"elasticloadbalancing:describeloadbalancers",
101+
"elasticloadbalancing:describelisteners",
102+
"elasticloadbalancing:describerules",
103+
"elasticloadbalancing:describesslpolicies",
104+
"elasticloadbalancing:describetags",
105+
"elasticloadbalancing:describetargetgroups",
106+
"elasticloadbalancing:describetargetgroupattributes",
107+
"elasticloadbalancing:describetargethealth",
101108
"es:describeelasticsearchdomainconfig",
102109
"es:listdomainnames",
103110
"iam:getaccesskeylastused",
@@ -122,6 +129,7 @@ Paste in this JSON with the name "SecurityMonkeyReadOnly":
122129
"iam:listpolicies",
123130
"iam:listrolepolicies",
124131
"iam:listroles",
132+
"iam:listsamlproviders",
125133
"iam:listservercertificates",
126134
"iam:listsigningcertificates",
127135
"iam:listuserpolicies",

docs/iam_gcp.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ To restrict which permissions Security Monkey has to your projects, we'll create
3030

3131
![Add User to Service Account](images/add_user_to_service_account.png "Add User to Service Account")
3232

33+
Enable IAM API
34+
---------------
35+
36+
For each GCP project you would like Security Monkey to access, you'll need to enable the IAM API. Visit the [IAM API page](https://console.cloud.google.com/apis/api/iam.googleapis.com/overview) page in the web console
37+
and click 'Enable API' at the top of the screen. When dealing with many projects, you might prefer to do this with the gcloud command. For details on how to enable services with gcloud, visit the
38+
[service-management](https://cloud.google.com/service-management/enable-disable#enabling_services) page. The IAM service name is 'iam.googleapis.com'.
3339

3440
Next:
3541
-----

docs/instance_launch_gcp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ Create an instance running Ubuntu 14.04 LTS using our 'securitymonkey' service a
66
Navigate to the [Create Instance page](https://console.developers.google.com/compute/instancesAdd). Fill in the following fields:
77

88
- **Name**: securitymonkey
9-
- **Zone**: If using GCP Cloud SQL, select the same zone here.
9+
- **Zone**: If using GCP Cloud SQL, select the same zone here. [(Zone List)](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1010
- **Machine Type**: 1vCPU, 3.75GB (minimum; also known as n1-standard-1)
1111
- **Boot Disk**: Ubuntu 14.04 LTS
1212
- **Service Account**: securitymonkey
13+
- **Firewall**: Allow HTTPS Traffic
1314

1415
Click the *Create* button to create the instance.
1516

@@ -23,9 +24,8 @@ Connecting to your new instance:
2324

2425
We will connect to the new instance over ssh with the gcloud command:
2526

26-
$ gcloud compute ssh <USERNAME>@<PUBLIC_IP_ADDRESS> --zone us-central
27+
$ gcloud compute ssh securitymonkey --zone <ZONE>
2728

28-
Replace the first parameter `<USERNAME>` with the username you authenticated gcloud with. Replace the last parameter `<PUBLIC_IP_ADDRESS>` with the Public IP of your instance.
2929

3030
Next:
3131
-----

docs/quickstart.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ If you're using the bleeding edge (develop) branch, you will need to compile the
110110
/usr/lib/dart/bin/pub build
111111

112112
# Copy the compiled Web UI to the appropriate destination
113-
mkdir -p /usr/local/src/security_monkey/security_monkey/static/
114-
/bin/cp -R /usr/local/src/security_monkey/dart/build/web/* /usr/local/src/security_monkey/security_monkey/static/
115-
chgrp -R www-data /usr/local/src/security_monkey
113+
sudo mkdir -p /usr/local/src/security_monkey/security_monkey/static/
114+
sudo /bin/cp -R /usr/local/src/security_monkey/dart/build/web/* /usr/local/src/security_monkey/security_monkey/static/
115+
sudo chgrp -R www-data /usr/local/src/security_monkey
116116

117117
### Configure the Application
118118

@@ -197,7 +197,7 @@ For this quickstart guide, we will use a self-signed SSL certificate. In product
197197

198198
There are some great instructions for generating a certificate on the Ubuntu website:
199199

200-
[Ubuntu - Create a Self Signed SSL Certificate](https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html)
200+
[Ubuntu - Create a Self Signed SSL Certificate](https://help.ubuntu.com/14.04/serverguide/certificates-and-security.html)
201201

202202
The last commands you need to run from that tutorial are in the "Installing the Certificate" section:
203203

env-config/config-docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def env_to_bool(input):
7070
}
7171
}
7272

73-
SQLALCHEMY_DATABASE_URI = 'postgresql://%s:%s@%s:%d/%s' % (
73+
SQLALCHEMY_DATABASE_URI = 'postgresql://%s:%s@%s:%s/%s' % (
7474
os.getenv('SECURITY_MONKEY_POSTGRES_USER', 'postgres'),
7575
os.getenv('SECURITY_MONKEY_POSTGRES_PASSWORD', 'securitymonkeypassword'),
7676
os.getenv('SECURITY_MONKEY_POSTGRES_HOST', 'localhost'),

0 commit comments

Comments
 (0)