Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #191 from phylake/CVE-2019-5736
Browse files Browse the repository at this point in the history
remediate CVE-2019-5736
  • Loading branch information
phylake authored Feb 20, 2019
2 parents fcf7460 + 7ea41f3 commit f3d1b38
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
`porter` is [semantically versioned](http://semver.org/spec/v2.0.0.html)

### v5.3.0

- upgrade `repo_releasever` to `2018.03`
- upgrade docker to `docker-18.03.1ce`
- removed docker daemon's `--disable-legacy-registry` flag which is no longer supported
- run [`yum upgrade docker`](https://alas.aws.amazon.com/ALAS-2019-1156.html) on EC2 initialization

### v5.2.2

- fix regex validation which didn't support longer resource IDs
Expand Down
15 changes: 15 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@ See the [CHANGELOG](CHANGELOG.md) for a complete list of changes.

`porter` is [semantically versioned](http://semver.org/spec/v2.0.0.html)

v5.3
====

Upgraded cloud-init's `repo_releasever` and Docker in order to patch [CVE-2019-5736](https://nvd.nist.gov/vuln/detail/CVE-2019-5736)

The applied patch can be verified by looking at `/var/log/cloud-init-output.log` for

```
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
docker x86_64 18.06.1ce-7.25.amzn1 amzn-updates 45 M
```

v5.2
====

Expand Down
4 changes: 2 additions & 2 deletions files/cloud-init.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"repo_upgrade: security\n",
"\n",
"# http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonLinuxAMIBasics.html#RepoConfig\n",
"repo_releasever: 2016.09\n",
"repo_releasever: 2018.03\n",
"\n",
"packages:\n",
" - haproxy-1.5.2\n",
" - docker-1.11.2\n",
" - docker-18.03.1ce\n",
" - sysstat-9.0.4\n",
"\n",
"runcmd:\n",
Expand Down
6 changes: 3 additions & 3 deletions files/porter_bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ export LOG_DEBUG=1

env
adduser porter-docker -u {{ .ContainerUserUid }}
echo 'OPTIONS="$OPTIONS --storage-opt dm.basesize=50G"' >> /etc/sysconfig/docker
# CIS Docker Benchmark 1.11.0 2.13
echo 'OPTIONS="$OPTIONS --disable-legacy-registry"' >> /etc/sysconfig/docker
echo 'OPTIONS="$OPTIONS -s devicemapper --storage-opt dm.basesize=50G"' >> /etc/sysconfig/docker
# CIS Docker Benchmark 1.11.0 2.1
echo 'OPTIONS="$OPTIONS --icc=false"' >> /etc/sysconfig/docker
# CIS Docker Benchmark 1.12.0 2.8
Expand All @@ -26,6 +24,8 @@ echo 'OPTIONS="$OPTIONS --insecure-registry={{ .InsecureRegistry }}"' >> /etc/sy
{{ end -}}

service haproxy start

yum upgrade -y docker
service docker restart
docker version

Expand Down
2 changes: 1 addition & 1 deletion testintegration/.porter/config
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ environments:
- name: CustomVPC

stack_definition_path: vpc.json
hot_swap: true
# hot_swap: true

instance_type: m4.large

Expand Down

0 comments on commit f3d1b38

Please sign in to comment.