Skip to content

Commit 939ba13

Browse files
authored
Merge pull request #93 from essentialkaos/develop
Version 1.17.5
2 parents 5a64c3f + 9a7a17e commit 939ba13

File tree

8 files changed

+125
-51
lines changed

8 files changed

+125
-51
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ env:
1010
before_install:
1111
- docker pull "$IMAGE"
1212
- wget https://raw.githubusercontent.com/essentialkaos/perfecto/master/perfecto-docker
13-
- chmod +x perfecto-docker
13+
- wget -O hadolint https://github.com/hadolint/hadolint/releases/download/v1.17.2/hadolint-Linux-x86_64
14+
- chmod +x perfecto-docker hadolint
15+
- ./hadolint --version
1416

1517
script:
1618
- ./perfecto-docker webkaos.spec
19+
- ./hadolint centos6.docker
20+
- ./hadolint centos7.docker
Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
diff -urN boringssl-orig/ssl/s3_lib.cc boringssl/ssl/s3_lib.cc
2-
--- boringssl-orig/ssl/s3_lib.cc 2019-04-09 00:27:58.157453794 +0300
3-
+++ boringssl/ssl/s3_lib.cc 2019-04-09 00:29:57.000000000 +0300
4-
@@ -202,7 +202,7 @@
2+
--- boringssl-orig/ssl/s3_lib.cc 2019-11-08 14:59:18.000000000 +0300
3+
+++ boringssl/ssl/s3_lib.cc 2019-11-08 17:43:59.000000000 +0300
4+
@@ -206,7 +206,7 @@
55
// TODO(davidben): Move this field into |s3|, have it store the normalized
66
// protocol version, and implement this pre-negotiation quirk in |SSL_version|
77
// at the API boundary rather than in internal state.
@@ -10,15 +10,3 @@ diff -urN boringssl-orig/ssl/s3_lib.cc boringssl/ssl/s3_lib.cc
1010
return true;
1111
}
1212

13-
diff -urN boringssl-orig/ssl/ssl_versions.cc boringssl/ssl/ssl_versions.cc
14-
--- boringssl-orig/ssl/ssl_versions.cc 2019-04-09 00:27:58.158453785 +0300
15-
+++ boringssl/ssl/ssl_versions.cc 2019-04-09 00:41:47.000000000 +0300
16-
@@ -158,7 +158,7 @@
17-
uint16_t version) {
18-
// Zero is interpreted as the default maximum version.
19-
if (version == 0) {
20-
- *out = method->is_dtls ? DTLS1_2_VERSION : TLS1_2_VERSION;
21-
+ *out = method->is_dtls ? DTLS1_2_VERSION : TLS1_3_VERSION;
22-
return true;
23-
}
24-
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff -urN boringssl-orig/crypto/CMakeLists.txt boringssl/crypto/CMakeLists.txt
2+
--- boringssl-orig/crypto/CMakeLists.txt 2019-11-08 14:59:15.000000000 +0300
3+
+++ boringssl/crypto/CMakeLists.txt 2019-11-08 18:19:21.000000000 +0300
4+
@@ -453,20 +453,6 @@
5+
target_link_libraries(crypto libcxx)
6+
endif()
7+
8+
-# urandom_test is a separate binary because it needs to be able to observe the
9+
-# PRNG initialisation, which means that it can't have other tests running before
10+
-# it does.
11+
-add_executable(
12+
- urandom_test
13+
-
14+
- fipsmodule/rand/urandom_test.cc
15+
-)
16+
-
17+
-target_link_libraries(urandom_test test_support_lib boringssl_gtest crypto)
18+
-
19+
-add_dependencies(urandom_test global_target)
20+
-add_dependencies(all_tests urandom_test)
21+
-
22+
add_executable(
23+
crypto_test
24+

SOURCES/webkaos.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ http {
125125
ssl_prefer_server_ciphers on;
126126
ssl_dyn_rec_enable on;
127127
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
128-
ssl_dhparam /etc/webkaos/ssl/dhparam.pem;
129128

130129
resolver 1.1.1.1 8.8.8.8 valid=300s;
131130
resolver_timeout 10s;

SOURCES/webkaos.patch

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
diff -urN nginx-1.17.4-orig/auto/lib/openssl/make nginx-1.17.4/auto/lib/openssl/make
2-
--- nginx-1.17.4-orig/auto/lib/openssl/make 2019-09-24 18:08:48.000000000 +0300
3-
+++ nginx-1.17.4/auto/lib/openssl/make 2019-09-25 00:52:11.846220618 +0300
1+
diff -urN nginx-1.17.5-orig/auto/lib/openssl/make nginx-1.17.5/auto/lib/openssl/make
2+
--- nginx-1.17.5-orig/auto/lib/openssl/make 2019-10-22 18:16:08.000000000 +0300
3+
+++ nginx-1.17.5/auto/lib/openssl/make 2019-11-08 15:01:50.075606846 +0300
44
@@ -45,18 +45,18 @@
55
/*) ngx_prefix="$OPENSSL/.openssl" ;;
66
*) ngx_prefix="$PWD/$OPENSSL/.openssl" ;;
@@ -24,9 +24,9 @@ diff -urN nginx-1.17.4-orig/auto/lib/openssl/make nginx-1.17.4/auto/lib/openssl/
2424
;;
2525

2626
esac
27-
diff -urN nginx-1.17.4-orig/src/core/nginx.c nginx-1.17.4/src/core/nginx.c
28-
--- nginx-1.17.4-orig/src/core/nginx.c 2019-09-24 18:08:48.000000000 +0300
29-
+++ nginx-1.17.4/src/core/nginx.c 2019-09-25 00:52:11.852220569 +0300
27+
diff -urN nginx-1.17.5-orig/src/core/nginx.c nginx-1.17.5/src/core/nginx.c
28+
--- nginx-1.17.5-orig/src/core/nginx.c 2019-10-22 18:16:08.000000000 +0300
29+
+++ nginx-1.17.5/src/core/nginx.c 2019-11-08 15:01:50.081606793 +0300
3030
@@ -389,13 +389,13 @@
3131
static void
3232
ngx_show_version_info(void)
@@ -45,13 +45,13 @@ diff -urN nginx-1.17.4-orig/src/core/nginx.c nginx-1.17.4/src/core/nginx.c
4545
"Options:" NGX_LINEFEED
4646
" -?,-h : this help" NGX_LINEFEED
4747
" -v : show version and exit" NGX_LINEFEED
48-
diff -urN nginx-1.17.4-orig/src/core/nginx.h nginx-1.17.4/src/core/nginx.h
49-
--- nginx-1.17.4-orig/src/core/nginx.h 2019-09-24 18:08:48.000000000 +0300
50-
+++ nginx-1.17.4/src/core/nginx.h 2019-09-25 00:53:54.000000000 +0300
48+
diff -urN nginx-1.17.5-orig/src/core/nginx.h nginx-1.17.5/src/core/nginx.h
49+
--- nginx-1.17.5-orig/src/core/nginx.h 2019-10-22 18:16:08.000000000 +0300
50+
+++ nginx-1.17.5/src/core/nginx.h 2019-11-08 15:02:19.000000000 +0300
5151
@@ -11,7 +11,7 @@
5252

53-
#define nginx_version 1017004
54-
#define NGINX_VERSION "1.17.4"
53+
#define nginx_version 1017005
54+
#define NGINX_VERSION "1.17.5"
5555
-#define NGINX_VER "nginx/" NGINX_VERSION
5656
+#define NGINX_VER "webkaos/" NGINX_VERSION
5757

@@ -66,9 +66,9 @@ diff -urN nginx-1.17.4-orig/src/core/nginx.h nginx-1.17.4/src/core/nginx.h
6666
#define NGX_OLDPID_EXT ".oldbin"
6767

6868

69-
diff -urN nginx-1.17.4-orig/src/core/ngx_log.c nginx-1.17.4/src/core/ngx_log.c
70-
--- nginx-1.17.4-orig/src/core/ngx_log.c 2019-09-24 18:08:48.000000000 +0300
71-
+++ nginx-1.17.4/src/core/ngx_log.c 2019-09-25 00:52:11.862220487 +0300
69+
diff -urN nginx-1.17.5-orig/src/core/ngx_log.c nginx-1.17.5/src/core/ngx_log.c
70+
--- nginx-1.17.5-orig/src/core/ngx_log.c 2019-10-22 18:16:08.000000000 +0300
71+
+++ nginx-1.17.5/src/core/ngx_log.c 2019-11-08 15:01:50.091606704 +0300
7272
@@ -202,9 +202,9 @@
7373
return;
7474
}
@@ -99,9 +99,9 @@ diff -urN nginx-1.17.4-orig/src/core/ngx_log.c nginx-1.17.4/src/core/ngx_log.c
9999
return NGX_CONF_ERROR;
100100
#endif
101101

102-
diff -urN nginx-1.17.4-orig/src/http/modules/ngx_http_autoindex_module.c nginx-1.17.4/src/http/modules/ngx_http_autoindex_module.c
103-
--- nginx-1.17.4-orig/src/http/modules/ngx_http_autoindex_module.c 2019-09-24 18:08:48.000000000 +0300
104-
+++ nginx-1.17.4/src/http/modules/ngx_http_autoindex_module.c 2019-09-25 00:52:11.868220438 +0300
102+
diff -urN nginx-1.17.5-orig/src/http/modules/ngx_http_autoindex_module.c nginx-1.17.5/src/http/modules/ngx_http_autoindex_module.c
103+
--- nginx-1.17.5-orig/src/http/modules/ngx_http_autoindex_module.c 2019-10-22 18:16:08.000000000 +0300
104+
+++ nginx-1.17.5/src/http/modules/ngx_http_autoindex_module.c 2019-11-08 15:01:50.097606651 +0300
105105
@@ -449,9 +449,11 @@
106106
;
107107

@@ -177,9 +177,9 @@ diff -urN nginx-1.17.4-orig/src/http/modules/ngx_http_autoindex_module.c nginx-1
177177
tm.ngx_tm_mday,
178178
months[tm.ngx_tm_mon - 1],
179179
tm.ngx_tm_year,
180-
diff -urN nginx-1.17.4-orig/src/http/ngx_http_header_filter_module.c nginx-1.17.4/src/http/ngx_http_header_filter_module.c
181-
--- nginx-1.17.4-orig/src/http/ngx_http_header_filter_module.c 2019-09-24 18:08:48.000000000 +0300
182-
+++ nginx-1.17.4/src/http/ngx_http_header_filter_module.c 2019-09-25 00:52:11.873220397 +0300
180+
diff -urN nginx-1.17.5-orig/src/http/ngx_http_header_filter_module.c nginx-1.17.5/src/http/ngx_http_header_filter_module.c
181+
--- nginx-1.17.5-orig/src/http/ngx_http_header_filter_module.c 2019-10-22 18:16:08.000000000 +0300
182+
+++ nginx-1.17.5/src/http/ngx_http_header_filter_module.c 2019-11-08 15:01:50.102606607 +0300
183183
@@ -46,7 +46,7 @@
184184
};
185185

@@ -230,9 +230,9 @@ diff -urN nginx-1.17.4-orig/src/http/ngx_http_header_filter_module.c nginx-1.17.
230230
#define NGX_HTTP_OFF_5XX (NGX_HTTP_LAST_4XX - 400 + NGX_HTTP_OFF_4XX)
231231

232232
ngx_string("500 Internal Server Error"),
233-
diff -urN nginx-1.17.4-orig/src/http/ngx_http_special_response.c nginx-1.17.4/src/http/ngx_http_special_response.c
234-
--- nginx-1.17.4-orig/src/http/ngx_http_special_response.c 2019-09-24 18:08:48.000000000 +0300
235-
+++ nginx-1.17.4/src/http/ngx_http_special_response.c 2019-09-25 00:52:11.879220348 +0300
233+
diff -urN nginx-1.17.5-orig/src/http/ngx_http_special_response.c nginx-1.17.5/src/http/ngx_http_special_response.c
234+
--- nginx-1.17.5-orig/src/http/ngx_http_special_response.c 2019-10-22 18:16:08.000000000 +0300
235+
+++ nginx-1.17.5/src/http/ngx_http_special_response.c 2019-11-08 15:01:50.108606554 +0300
236236
@@ -19,21 +19,21 @@
237237

238238

@@ -705,9 +705,9 @@ diff -urN nginx-1.17.4-orig/src/http/ngx_http_special_response.c nginx-1.17.4/sr
705705
#define NGX_HTTP_OFF_5XX (NGX_HTTP_LAST_4XX - 400 + NGX_HTTP_OFF_4XX)
706706

707707
ngx_string(ngx_http_error_494_page), /* 494, request header too large */
708-
diff -urN nginx-1.17.4-orig/src/http/v2/ngx_http_v2_filter_module.c nginx-1.17.4/src/http/v2/ngx_http_v2_filter_module.c
709-
--- nginx-1.17.4-orig/src/http/v2/ngx_http_v2_filter_module.c 2019-09-24 18:08:48.000000000 +0300
710-
+++ nginx-1.17.4/src/http/v2/ngx_http_v2_filter_module.c 2019-09-25 00:55:06.000000000 +0300
708+
diff -urN nginx-1.17.5-orig/src/http/v2/ngx_http_v2_filter_module.c nginx-1.17.5/src/http/v2/ngx_http_v2_filter_module.c
709+
--- nginx-1.17.5-orig/src/http/v2/ngx_http_v2_filter_module.c 2019-10-22 18:16:08.000000000 +0300
710+
+++ nginx-1.17.5/src/http/v2/ngx_http_v2_filter_module.c 2019-11-08 15:01:50.114606501 +0300
711711
@@ -148,7 +148,7 @@
712712
ngx_http_core_srv_conf_t *cscf;
713713
u_char addr[NGX_SOCKADDR_STRLEN];
@@ -726,9 +726,9 @@ diff -urN nginx-1.17.4-orig/src/http/v2/ngx_http_v2_filter_module.c nginx-1.17.4
726726
}
727727

728728
*pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_SERVER_INDEX);
729-
diff -urN nginx-1.17.4-orig/src/os/unix/ngx_setproctitle.c nginx-1.17.4/src/os/unix/ngx_setproctitle.c
730-
--- nginx-1.17.4-orig/src/os/unix/ngx_setproctitle.c 2019-09-24 18:08:48.000000000 +0300
731-
+++ nginx-1.17.4/src/os/unix/ngx_setproctitle.c 2019-09-25 00:52:11.889220266 +0300
729+
diff -urN nginx-1.17.5-orig/src/os/unix/ngx_setproctitle.c nginx-1.17.5/src/os/unix/ngx_setproctitle.c
730+
--- nginx-1.17.5-orig/src/os/unix/ngx_setproctitle.c 2019-10-22 18:16:08.000000000 +0300
731+
+++ nginx-1.17.5/src/os/unix/ngx_setproctitle.c 2019-11-08 15:01:50.119606456 +0300
732732
@@ -89,7 +89,7 @@
733733

734734
ngx_os_argv[1] = NULL;

centos6.docker

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## WEBKAOS IMAGE ###############################################################
2+
3+
FROM centos:6
4+
5+
ENV WK_VERSION 1.17.5
6+
7+
LABEL name="WEBKAOS Image on CentOS 6" \
8+
vendor="ESSENTIAL KAOS" \
9+
maintainer="Anton Novojilov" \
10+
license="EKOL" \
11+
version="2019.11.08"
12+
13+
RUN yum -y -q install https://yum.kaos.st/kaos-repo-latest.el6.noarch.rpm && \
14+
yum -y -q install webkaos-${WK_VERSION} webkaos-module-brotli && \
15+
rm -rf /var/cache/yum
16+
17+
RUN ln -sf /dev/stdout /var/log/webkaos/access.log \
18+
&& ln -sf /dev/stderr /var/log/webkaos/error.log
19+
20+
EXPOSE 80
21+
22+
STOPSIGNAL SIGTERM
23+
24+
CMD ["webkaos", "-g", "daemon off;"]
25+
26+
################################################################################

centos7.docker

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## WEBKAOS IMAGE ###############################################################
2+
3+
FROM centos:7
4+
5+
ENV WK_VERSION 1.17.5
6+
7+
LABEL name="WEBKAOS Image on CentOS 7" \
8+
vendor="ESSENTIAL KAOS" \
9+
maintainer="Anton Novojilov" \
10+
license="EKOL" \
11+
version="2019.11.08"
12+
13+
RUN yum -y -q install https://yum.kaos.st/kaos-repo-latest.el7.noarch.rpm && \
14+
yum -y -q install webkaos-${WK_VERSION} webkaos-module-brotli && \
15+
rm -rf /var/cache/yum
16+
17+
RUN ln -sf /dev/stdout /var/log/webkaos/access.log \
18+
&& ln -sf /dev/stderr /var/log/webkaos/error.log
19+
20+
EXPOSE 80
21+
22+
STOPSIGNAL SIGTERM
23+
24+
CMD ["webkaos", "-g", "daemon off;"]
25+
26+
################################################################################

webkaos.spec

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
%define service_name %{name}
4949
%define service_home %{_cachedir}/%{service_name}
5050

51-
%define nginx_version 1.17.4
52-
%define boring_commit 1f1af82f409cd05450b3491865af0c770830cd76
51+
%define nginx_version 1.17.5
52+
%define boring_commit 43890dbd693d5d972afbc676860e5adf4a44236a
5353
%define lua_module_ver 0.10.15
5454
%define mh_module_ver 0.33
5555
%define pcre_ver 8.43
@@ -64,7 +64,7 @@
6464
Summary: Superb high performance web server
6565
Name: webkaos
6666
Version: %{nginx_version}
67-
Release: 1%{?dist}
67+
Release: 0%{?dist}
6868
License: 2-clause BSD-like license
6969
Group: System Environment/Daemons
7070
URL: https://github.com/essentialkaos/webkaos
@@ -108,6 +108,7 @@ Patch5: boringssl-tls13-support.patch
108108
Patch6: boringssl-c6-build-fix.patch
109109
# For resty-core, lua-nginx-module 0.10.16 is required but it not released yet
110110
Patch7: resty-core-disable.patch
111+
Patch8: boringssl-urand-test-disable.patch
111112

112113
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
113114

@@ -169,7 +170,7 @@ Links for nginx compatibility.
169170

170171
Summary: Module for Brotli compression
171172
Version: 0.1.3
172-
Release: 1%{?dist}
173+
Release: 2%{?dist}
173174

174175
Group: System Environment/Daemons
175176
Requires: %{name} = %{nginx_version}
@@ -183,7 +184,7 @@ Module for Brotli compression.
183184

184185
Summary: High performance, low rules maintenance WAF
185186
Version: %{naxsi_ver}
186-
Release: 1%{?dist}
187+
Release: 2%{?dist}
187188

188189
Group: System Environment/Daemons
189190
Requires: %{name} = %{nginx_version}
@@ -217,6 +218,7 @@ tar xzvf %{SOURCE58}
217218

218219
pushd boringssl
219220
%patch5 -p1
221+
%patch8 -p1
220222
%if 0%{?rhel} == 6
221223
%patch6 -p1
222224
%endif
@@ -694,6 +696,11 @@ rm -rf %{buildroot}
694696
################################################################################
695697

696698
%changelog
699+
* Fri Nov 08 2019 Anton Novojilov <andy@essentialkaos.com> - 1.17.5-0
700+
- Nginx updated to 1.17.5
701+
- BoringSSL updated to the latest version
702+
- Removed ssl_dhparam from default configuration
703+
697704
* Fri Nov 08 2019 Anton Novojilov <andy@essentialkaos.com> - 1.17.4-1
698705
- Added webserver to Provides
699706

0 commit comments

Comments
 (0)