Skip to content

Commit 83577cb

Browse files
committed
Update Unbound to 1.19.1
This security release fixes two DNSSEC validation vulnerabilities: CVE-2023-50387 (referred here as the KeyTrap vulnerability) and CVE-2023-50868 (referred here as the NSEC3 vulnerability). See: https://github.com/NLnetLabs/unbound/releases/tag/release-1.19.1 Signed-off-by: Kyle Harding <[email protected]>
1 parent 5af650f commit 83577cb

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,16 @@ docker stop unbound
104104
1. In your working copy, create a new branch if you haven't already, and update the following fields in the [Dockerfile](Dockerfile) with the new version and hash.
105105

106106
```dockerfile
107-
ARG UNBOUND_VERSION=1.19.0
108-
# https://nlnetlabs.nl/downloads/unbound/unbound-1.19.0.tar.gz.sha256
107+
ARG UNBOUND_VERSION=1.19.1
108+
# https://nlnetlabs.nl/downloads/unbound/unbound-1.19.1.tar.gz.sha256
109109
ARG UNBOUND_SHA256="a97532468854c61c2de48ca4170de854fd3bc95c8043bb0cfb0fe26605966624"
110110
```
111111

112112
2. Run the following docker build command to copy the example config.
113113

114114
```bash
115+
export DOCKER_BUILDKIT=1
116+
export DOCKER_CLI_EXPERIMENTAL=enabled
115117
docker build . --target conf-example --output rootfs_overlay/etc/unbound/
116118
```
117119

@@ -127,19 +129,16 @@ These files should be updated once a year or so to ensure they have the latest v
127129

128130
1. In your working copy, create a new branch if you haven't already.
129131

130-
2. Enable docker buildkit and experimental mode
132+
2. Run the following build command to generate new files.
131133

132134
```bash
133135
export DOCKER_BUILDKIT=1
134136
export DOCKER_CLI_EXPERIMENTAL=enabled
135-
```
136-
137-
3. Run the following build command to generate new files.
138-
139-
```bash
140137
docker build . --target root-hints --output rootfs_overlay/var/unbound/
141138
```
142139

140+
3. [Build](#building) and [test](#testing) changes locally.
141+
143142
4. Commit changes in `root_overlay/var/unbound/*` and open a pull request for review.
144143

145144
## License

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ FROM build-base AS unbound
5858

5959
WORKDIR /src
6060

61-
ARG UNBOUND_VERSION=1.19.0
62-
# https://nlnetlabs.nl/downloads/unbound/unbound-1.19.0.tar.gz.sha256
63-
ARG UNBOUND_SHA256="a97532468854c61c2de48ca4170de854fd3bc95c8043bb0cfb0fe26605966624"
61+
ARG UNBOUND_VERSION=1.19.1
62+
# https://nlnetlabs.nl/downloads/unbound/unbound-1.19.1.tar.gz.sha256
63+
ARG UNBOUND_SHA256="bc1d576f3dd846a0739adc41ffaa702404c6767d2b6082deb9f2f97cbb24a3a9"
6464

6565
ADD https://nlnetlabs.nl/downloads/unbound/unbound-${UNBOUND_VERSION}.tar.gz unbound.tar.gz
6666

rootfs_overlay/etc/unbound/unbound.conf.example

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Example configuration file.
33
#
4-
# See unbound.conf(5) man page, version 1.19.0.
4+
# See unbound.conf(5) man page, version 1.19.1.
55
#
66
# this is a comment.
77

@@ -401,7 +401,7 @@ server:
401401
# How to do this is specific to your OS.
402402
#
403403
# If you give "" no chroot is performed. The path must not end in a /.
404-
# chroot: "/etc/unbound"
404+
# chroot: "/var/unbound"
405405

406406
# if given, user privileges are dropped (after binding port),
407407
# and the given username is assumed. Default is user "unbound".
@@ -413,7 +413,7 @@ server:
413413
# is not changed.
414414
# If you give a server: directory: dir before include: file statements
415415
# then those includes can be relative to the working directory.
416-
# directory: "/etc/unbound"
416+
# directory: "/var/unbound"
417417

418418
# the log file, "" means log to stderr.
419419
# Use of this option sets use-syslog to "no".
@@ -449,7 +449,7 @@ server:
449449
# log-servfail: no
450450

451451
# the pid file. Can be an absolute path outside of chroot/work dir.
452-
# pidfile: "/etc/unbound/unbound.pid"
452+
# pidfile: "/var/unbound/unbound.pid"
453453

454454
# file to read root hints from.
455455
# get one from https://www.internic.net/domain/named.cache
@@ -615,7 +615,7 @@ server:
615615
# And then enable the auto-trust-anchor-file config item.
616616
# Please note usage of unbound-anchor root anchor is at your own risk
617617
# and under the terms of our LICENSE (see that file in the source).
618-
# auto-trust-anchor-file: "/etc/unbound/root.key"
618+
# auto-trust-anchor-file: "/var/unbound/root.key"
619619

620620
# trust anchor signaling sends a RFC8145 key tag query after priming.
621621
# trust-anchor-signaling: yes
@@ -1056,7 +1056,7 @@ server:
10561056
# o and give a python-script to run.
10571057
python:
10581058
# Script file to load
1059-
# python-script: "/etc/unbound/ubmodule-tst.py"
1059+
# python-script: "/var/unbound/ubmodule-tst.py"
10601060

10611061
# Dynamic library config section. To enable:
10621062
# o use --with-dynlibmodule to configure before compiling.
@@ -1067,7 +1067,7 @@ python:
10671067
# the module-config then you need one dynlib-file per instance.
10681068
dynlib:
10691069
# Script file to load
1070-
# dynlib-file: "/etc/unbound/dynlib.so"
1070+
# dynlib-file: "/var/unbound/dynlib.so"
10711071

10721072
# Remote control config section.
10731073
remote-control:
@@ -1090,16 +1090,16 @@ remote-control:
10901090
# control-use-cert: "yes"
10911091

10921092
# Unbound server key file.
1093-
# server-key-file: "/etc/unbound/unbound_server.key"
1093+
# server-key-file: "/var/unbound/unbound_server.key"
10941094

10951095
# Unbound server certificate file.
1096-
# server-cert-file: "/etc/unbound/unbound_server.pem"
1096+
# server-cert-file: "/var/unbound/unbound_server.pem"
10971097

10981098
# unbound-control key file.
1099-
# control-key-file: "/etc/unbound/unbound_control.key"
1099+
# control-key-file: "/var/unbound/unbound_control.key"
11001100

11011101
# unbound-control certificate file.
1102-
# control-cert-file: "/etc/unbound/unbound_control.pem"
1102+
# control-cert-file: "/var/unbound/unbound_control.pem"
11031103

11041104
# Stub zones.
11051105
# Create entries like below, to make all queries for 'example.com' and

0 commit comments

Comments
 (0)