Skip to content

Commit c74d7d3

Browse files
cloudggecesmarvin
authored andcommitted
Merge branch 'release/v1.26.1-1'
2 parents 233e57e + 7c27bca commit c74d7d3

9 files changed

Lines changed: 41 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v1.26.1-1] - 2024-06-14
11+
### Changed
12+
- Write app.conf into volume instead of the container file system (#90)
13+
- this should make nginx more robust against container re-creations
14+
- replace deprecated `http2` option against the current directive
15+
- Update nginx to 1.26.1 (#88)
16+
- Update base image to Alpine 3.19.1
17+
18+
### Security
19+
- Fixed medium CVEs:
20+
- CVE-2023-42366
21+
- CVE-2024-4603
22+
- Fixed low CVE: CVE-2024-2511
23+
1024
## [v1.23.2-10] - 2024-01-29
1125
### Changed
1226
- Update `ces-confd` to `0.9.0` (#84)
@@ -42,11 +56,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4256
## [v1.23.2-3] - 2023-02-17
4357
### Changed
4458
- Update warp-menu to v1.7.2 (#70)
45-
59+
4660
## [v1.23.2-2] - 2023-02-02
4761
### Changed
4862
- Update warp-menu to v1.7.1 (#68)
49-
- This will fix the bug where the warp menu was visible in print view
63+
- This will fix the bug where the warp menu was visible in print view
5064

5165
## [v1.23.2-1] - 2023-01-23
5266
### Changed

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ LABEL maintainer="hello@cloudogu.com"
33

44
# dockerfile is based on https://github.com/dockerfile/nginx and https://github.com/bellycard/docker-loadbalancer
55

6-
ENV NGINX_VERSION=1.23.2 \
7-
NGINX_TAR_SHA256="a80cc272d3d72aaee70aa8b517b4862a635c0256790434dbfc4d618a999b0b46" \
6+
ENV NGINX_VERSION=1.26.1 \
7+
NGINX_TAR_SHA256="f9187468ff2eb159260bfd53867c25ff8e334726237acf227b9e870e53d3e36b" \
88
CES_CONFD_VERSION=0.9.0 \
99
CES_CONFD_TAR_SHA256="8507f40824562b8d2c1f32afb43ce1aad576a82febd2f97bd2cf31b0753a8cbd" \
1010
WARP_MENU_VERSION=1.7.3 \
@@ -58,10 +58,10 @@ RUN wget --progress=bar:force:noscroll -O /tmp/theme.zip https://github.com/clou
5858
&& unzip /tmp/theme.zip -d /tmp/theme \
5959
&& cp -r /tmp/theme/ces-theme-${CES_THEME_VERSION}/dist/errors /build/var/www/html
6060

61-
FROM registry.cloudogu.com/official/base:3.17.3-2
61+
FROM registry.cloudogu.com/official/base:3.19.1-2
6262
LABEL maintainer="hello@cloudogu.com" \
6363
NAME="official/nginx" \
64-
VERSION="1.23.2-10"
64+
VERSION="1.26.1-1"
6565

6666
ENV CES_MAINTENANCE_MODE=false
6767

@@ -85,11 +85,10 @@ COPY --from=builder /build /
8585
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
8686
&& ln -sf /dev/stderr /var/log/nginx/error.log
8787

88-
# Volumes are used to avoid writing to containers writable layer https://docs.docker.com/storage/
8988
# Compared to the bind mounted volumes we declare in the dogu.json,
9089
# the volumes declared here are not mounted to the dogu if the container is destroyed/recreated,
9190
# e.g. after a dogu upgrade
92-
VOLUME ["/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]
91+
VOLUME ["/var/nginx/conf.d/", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]
9392

9493
# Define working directory.
9594
WORKDIR /etc/nginx

Jenkinsfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!groovy
2-
@Library(['github.com/cloudogu/dogu-build-lib@v2.0.0', 'github.com/cloudogu/ces-build-lib@1.64.1']) _
2+
@Library(['github.com/cloudogu/dogu-build-lib@v2.3.1', 'github.com/cloudogu/ces-build-lib@2.2.1']) _
33
import com.cloudogu.ces.dogubuildlib.*
44
import com.cloudogu.ces.cesbuildlib.*
55

@@ -33,7 +33,8 @@ node('vagrant') {
3333
}
3434

3535
stage('Lint') {
36-
lintDockerfile()
36+
Dockerfile dockerfile = new Dockerfile(this)
37+
dockerfile.lint()
3738
}
3839

3940
stage('Check Markdown Links') {
@@ -48,7 +49,7 @@ node('vagrant') {
4849
try {
4950

5051
stage('Provision') {
51-
ecoSystem.provision("/dogu");
52+
ecoSystem.provision("/dogu")
5253
}
5354

5455
stage('Setup') {
@@ -104,7 +105,7 @@ node('vagrant') {
104105
}
105106
}
106107
if (gitflow.isReleaseBranch()) {
107-
String releaseVersion = git.getSimpleBranchName();
108+
String releaseVersion = git.getSimpleBranchName()
108109

109110
stage('Finish Release') {
110111
gitflow.finishRelease(releaseVersion)

dogu.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "official/nginx",
3-
"Version": "1.23.2-10",
3+
"Version": "1.26.1-1",
44
"DisplayName": "Nginx",
55
"Description": "Nginx WebServer.",
66
"Logo": "https://cloudogu.com/images/dogus/nginx.png",
@@ -87,6 +87,13 @@
8787
"Owner": "1000",
8888
"Group": "1000",
8989
"NeedsBackup": true
90+
},
91+
{
92+
"Name": "appconf",
93+
"Path": "/var/nginx/conf.d/",
94+
"Owner": "0",
95+
"Group": "0",
96+
"NeedsBackup": true
9097
}
9198
],
9299
"ExposedPorts": [

resources/etc/ces-confd/config.yaml.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ warp:
2222
service:
2323
source:
2424
path: /services
25-
target: /etc/nginx/conf.d/app.conf
25+
target: {{ .Env.Get "APPCONF_VOL_DIR" }}/app.conf
2626
template: /etc/ces-confd/templates/app.conf.tpl
2727
maintenance-mode: /config/_global/maintenance
2828
tag: webapp

resources/etc/nginx/include.d/ssl.conf.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
listen 443 ssl http2;
1+
listen 443 ssl;
2+
http2 on;
23
server_name {{ .GlobalConfig.Get "fqdn" }};
34

45
ssl_certificate /etc/ssl/server.crt;

resources/etc/nginx/nginx.conf.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ http {
5454

5555
# include app configuration
5656
include /etc/nginx/conf.d/*.conf;
57+
include {{ .Env.Get "APPCONF_VOL_DIR" }}/*.conf;
5758
}

resources/startup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ echo " V/// '°°°° (/////) °°°°' //// "
1515
echo " V/////(////////\. '°°°' ./////////(///(/' "
1616
echo " 'V/(/////////////////////////////V' "
1717

18+
export APPCONF_VOL_DIR=/var/nginx/conf.d
19+
1820
function export_log_level() {
1921
ETCD_LOG_LEVEL="$(doguctl config logging/root --default "WARN")"
2022
echo "Found etcd log level: ${ETCD_LOG_LEVEL}"

spec/goss/goss.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
file:
2-
/etc/nginx/conf.d/app.conf:
2+
/var/nginx/conf.d/app.conf:
33
exists: true
44
owner: root
55
group: root

0 commit comments

Comments
 (0)