Skip to content

Commit

Permalink
use latest openresty with CVE patches
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvinEfendi committed Aug 14, 2019
1 parent 5179893 commit fddd7dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 144 deletions.
2 changes: 1 addition & 1 deletion images/nginx/Makefile
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# 0.0.0 shouldn't clobber any released builds
TAG ?= 0.91
TAG ?= 0.92
REGISTRY ?= quay.io/kubernetes-ingress-controller
ARCH ?= $(shell go env GOARCH)
DOCKER ?= docker
Expand Down
8 changes: 1 addition & 7 deletions images/nginx/rootfs/build.sh
Expand Up @@ -21,7 +21,7 @@ set -o pipefail

export DEBIAN_FRONTEND=noninteractive

export OPENRESTY_VERSION=1.15.8.1
export OPENRESTY_VERSION=1.15.8.2
export NGINX_DIGEST_AUTH=cd8641886c873cf543255aeda20d23e4cd603d05
export NGINX_SUBSTITUTIONS=bc58cb11844bc42735bbaef7085ea86ace46d05b
export NGINX_OPENTRACING_VERSION=0.8.0
Expand Down Expand Up @@ -376,12 +376,6 @@ Include /etc/nginx/owasp-modsecurity-crs/rules/RESPONSE-999-EXCLUSION-RULES-AFTE
# build nginx
cd "$BUILD_PATH/openresty-$OPENRESTY_VERSION"

echo "Patching NGINX for CVE-2018-16843, CVE-2018-16844, CVE-2019-9511, CVE-2019-9513, and CVE-2019-9516"
# Upstream change https://github.com/openresty/openresty/pull/515
# TODO: remove after openresty release
cat /patches/patch.2019.h2.txt | patch -d bundle/nginx-1.15.8/ -p0
rm -rf /patches

WITH_FLAGS="--with-debug \
--with-compat \
--with-pcre-jit \
Expand Down
136 changes: 0 additions & 136 deletions images/nginx/rootfs/patches/patch.2019.h2.txt

This file was deleted.

0 comments on commit fddd7dc

Please sign in to comment.