]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
8 hours agoMerge !1730: tests/integration/deckard: pull updates docs-develop-mast-tyrtta/deployments/7324 master-5
Vladimír Čunát [Fri, 1 Aug 2025 16:55:16 +0000 (18:55 +0200)] 
Merge !1730: tests/integration/deckard: pull updates

8 hours agotests/integration/deckard: pull updates docs-develop-deck-a09exv/deployments/7323 1730/head
Vladimír Čunát [Fri, 1 Aug 2025 16:29:28 +0000 (18:29 +0200)] 
tests/integration/deckard: pull updates

- 224: hack compat with python >= 3.11 + libfaketime
- 225: val_nsec3_cnametocnamewctoposwc.rpl: reinstate NS in an answer
  This one finally fixes deckard in CI.

2 weeks agoMerge branch 'release-5.7.6' into 'master-5' docs-develop-mast-tyrtta/deployments/7230 docs-release-v5-7-a8fkxz/deployments/7231 obs-knot-resolver-8xyvhu/deployments/7234 obs-knot-resolver-kv62s6/deployments/7232 v5.7.6
Aleš Mrázek [Thu, 17 Jul 2025 08:32:41 +0000 (10:32 +0200)] 
Merge branch 'release-5.7.6' into 'master-5'

Release 5.7.6

See merge request knot/knot-resolver!1723

2 weeks agorelease 5.7.6 docs-develop-rele-sopa3h/deployments/7228
Aleš Mrázek [Thu, 17 Jul 2025 07:56:28 +0000 (09:56 +0200)] 
release 5.7.6

2 weeks agoMerge !1721: lib/dnssec: drop incorrect `requirement` and comment docs-develop-mast-tyrtta/deployments/7225
Vladimír Čunát [Thu, 17 Jul 2025 07:20:57 +0000 (09:20 +0200)] 
Merge !1721: lib/dnssec: drop incorrect `requirement` and comment

2 weeks agolib/dnssec: drop incorrect `requirement` and comment docs-develop-requ-5ho54w/deployments/7224
Vladimír Čunát [Wed, 4 Jun 2025 07:32:14 +0000 (09:32 +0200)] 
lib/dnssec: drop incorrect `requirement` and comment

I don't think this can happen on correct records,
due to the way that the root zone is.  But we've seen
this assertion happen in real life, and attackers
might be able to misuse it to cause crashes.

2 weeks agoMerge !1720: lib/cache pkt_renew(): don't keep parts of packet header docs-develop-mast-tyrtta/deployments/7223
Vladimír Čunát [Thu, 17 Jul 2025 07:15:16 +0000 (09:15 +0200)] 
Merge !1720: lib/cache pkt_renew(): don't keep parts of packet header

2 weeks agolib/cache pkt_renew(): don't keep parts of packet header docs-develop-pkt-9zso9k/deployments/7222
Vladimír Čunát [Fri, 13 Jun 2025 13:27:10 +0000 (15:27 +0200)] 
lib/cache pkt_renew(): don't keep parts of packet header

No idea why it's been done in this weird way since forever.

2 weeks agoMerge !1719: meson: avoid protoc-c, as it's deprecated docs-develop-mast-tyrtta/deployments/7221
Vladimír Čunát [Thu, 17 Jul 2025 06:57:56 +0000 (08:57 +0200)] 
Merge !1719: meson: avoid protoc-c, as it's deprecated

2 weeks agomeson: avoid protoc-c, as it's (reported as) deprecated docs-develop-prot-m41oog/deployments/7220
Vladimír Čunát [Wed, 4 Jun 2025 07:32:14 +0000 (09:32 +0200)] 
meson: avoid protoc-c, as it's (reported as) deprecated

> `protoc-c` is deprecated. Please use `protoc` instead!

7 weeks agoMerge !1707: .gitlab-ci.yml: add pkg:alma-10 docs-develop-mast-tyrtta/deployments/7007
Vladimír Čunát [Fri, 13 Jun 2025 13:23:01 +0000 (15:23 +0200)] 
Merge !1707: .gitlab-ci.yml: add pkg:alma-10

7 weeks ago.gitlab-ci.yml: add pkg:alma-10 docs-develop-ci-a-gwgq2n/deployments/7006
Vladimír Čunát [Thu, 5 Jun 2025 10:27:47 +0000 (12:27 +0200)] 
.gitlab-ci.yml: add pkg:alma-10

2 months agoMerge !1692: ci pkg: update the distro list docs-develop-mast-tyrtta/deployments/6843
Vladimír Čunát [Thu, 22 May 2025 17:13:11 +0000 (19:13 +0200)] 
Merge !1692: ci pkg: update the distro list

2 months agoci pkg: make the distro list up to date docs-develop-ci-p-pryqes/deployments/6842
Vladimír Čunát [Thu, 22 May 2025 17:00:09 +0000 (19:00 +0200)] 
ci pkg: make the distro list up to date

2 months agoMerge !1690: distro/pkg/deb: use meson through debhelper docs-develop-mast-tyrtta/deployments/6839
Vladimír Čunát [Thu, 22 May 2025 16:10:38 +0000 (18:10 +0200)] 
Merge !1690: distro/pkg/deb: use meson through debhelper

2 months agodistro/pkg/deb: use meson through debhelper docs-develop-pkg-ty1oeh/deployments/6838
Jakub Ružička [Thu, 22 May 2025 12:35:18 +0000 (14:35 +0200)] 
distro/pkg/deb: use meson through debhelper

Use standard debhelper as opposed to calling meson and ninja manually.

This mirrors v6 change and it fixes FTBFS on Ubuntu 25.04 in LaunchPad.

3 months agoMerge branch 'release-5.7.5' into 'master-5' docs-develop-mast-tyrtta/deployments/6669 docs-develop-stab-lrl9qw/deployments/6696 docs-release-v5-7-9m79ac/deployments/6674 docs-release-v5-7-9m79ac/deployments/6676 obs-knot-resolver-8xyvhu/deployments/6675 obs-knot-resolver-bs4hbr/deployments/6677 obs-knot-resolver-kv62s6/deployments/6671 stable v5.7.5
Aleš Mrázek [Thu, 24 Apr 2025 09:32:21 +0000 (11:32 +0200)] 
Merge branch 'release-5.7.5' into 'master-5'

Release 5.7.5

See merge request knot/knot-resolver!1681

3 months agoAUTHORS update docs-develop-rele-rrvqkp/deployments/6667
Aleš Mrázek [Thu, 24 Apr 2025 08:56:15 +0000 (10:56 +0200)] 
AUTHORS update

3 months agorelease 5.7.5
Aleš Mrázek [Thu, 24 Apr 2025 08:42:34 +0000 (10:42 +0200)] 
release 5.7.5

3 months agoMerge !1683: DoS: fix crashes unconfirmed on 5.x docs-develop-mast-tyrtta/deployments/6666
Vladimír Čunát [Thu, 24 Apr 2025 09:02:52 +0000 (11:02 +0200)] 
Merge !1683: DoS: fix crashes unconfirmed on 5.x

3 months agoNEWS for the possibly DoS issue docs-develop-cras-z9gm89/deployments/6665
Vladimír Čunát [Thu, 24 Apr 2025 08:58:17 +0000 (10:58 +0200)] 
NEWS for the possibly DoS issue

It's been confirmed in practice for 6.x only so far.

3 months agodaemon/session2_tasklist_del(): be more defensive
Vladimír Čunát [Thu, 24 Apr 2025 08:58:16 +0000 (10:58 +0200)] 
daemon/session2_tasklist_del(): be more defensive

See the 6.x commit 0646b6c3

3 months agodaemon/worker send_waiting(): be more defensive
Vladimír Čunát [Thu, 24 Apr 2025 08:58:16 +0000 (10:58 +0200)] 
daemon/worker send_waiting(): be more defensive

See the 6.x commit 7210f16e

3 months agoMerge !1679: NEWS: merge duplicate sections docs-develop-mast-tyrtta/deployments/6656
Vladimír Čunát [Thu, 24 Apr 2025 08:24:24 +0000 (10:24 +0200)] 
Merge !1679: NEWS: merge duplicate sections

3 months agoNEWS: merge duplicate sections docs-develop-news-3e3kde/deployments/6655
Vladimír Čunát [Thu, 24 Apr 2025 08:22:24 +0000 (10:22 +0200)] 
NEWS: merge duplicate sections

3 months agoMerge !1678: misc 5.x backports docs-develop-mast-tyrtta/deployments/6654
Vladimír Čunát [Thu, 24 Apr 2025 08:17:57 +0000 (10:17 +0200)] 
Merge !1678: misc 5.x backports

3 months agolint: pylint and flake8 removed docs-develop-back-g3r3cl/deployments/6642
Aleš Mrázek [Thu, 10 Oct 2024 12:36:28 +0000 (14:36 +0200)] 
lint: pylint and flake8 removed

(cherry picked from commit d92fba4d12df38d50cc97daab4a4b81337bb57c5)
It now fails on 5.x pytest, too:
https://gitlab.nic.cz/knot/knot-resolver/-/jobs/1340121

3 months agomodules/stats: further improve latency measurements docs-develop-back-g3r3cl/deployments/6641
Vladimír Čunát [Mon, 14 Apr 2025 09:13:32 +0000 (11:13 +0200)] 
modules/stats: further improve latency measurements

libuv's updating the stamp just once per event loop
might be too coarse, as processing multiple packets
(e.g. DNSSEC validation) may take milliseconds together.

Of course we still don't measure e.g. the time when incoming
client requests stay in OS buffers.

(cherry picked from commit 5e6a02b3902ac98b327eca281ae70fa2bb9a9598)

3 months agolib: clarify the doc-comment for struct kr_query::timestamp
Vladimír Čunát [Mon, 14 Apr 2025 09:13:32 +0000 (11:13 +0200)] 
lib: clarify the doc-comment for struct kr_query::timestamp

(cherry picked from commit 33151c4b5af57a9e51c998169b42ebe7e48af5fc)

3 months agomodules/stats: fix calculation of request's latency
Vladimír Čunát [Mon, 14 Apr 2025 09:13:32 +0000 (11:13 +0200)] 
modules/stats: fix calculation of request's latency

(cherry picked from commit b7cd7cbae773fecfca795d7f0ef064fa85aec59c)

3 months agoDoc: include jquery for sphinx version equal or greater to 2.*
Frantisek Tobias [Tue, 1 Apr 2025 12:03:13 +0000 (14:03 +0200)] 
Doc: include jquery for sphinx version equal or greater to 2.*

(cherry picked from commit 2378b94d81e069b580eba55958adb1d4309de82c)

3 months agoci: pkg: add ubuntu 25.04
Jakub Ružička [Mon, 17 Mar 2025 12:19:59 +0000 (13:19 +0100)] 
ci: pkg: add ubuntu 25.04

(cherry picked from commit 7da7083143b764bddab9402212676ac74ea6997b)

3 months agovalidator: accept a confusing NODATA proof with insecure delegation
Vladimír Čunát [Wed, 26 Feb 2025 08:29:12 +0000 (09:29 +0100)] 
validator: accept a confusing NODATA proof with insecure delegation

Honestly, I find it ugly and probably unintended,
but it's correctly signed and other vendors tend to accept it.

Example:
;; ->>HEADER<<- opcode: QUERY; status: NOERROR; id: 24204
;; Flags: qr aa rd; QUERY: 1; ANSWER: 0; AUTHORITY: 4; ADDITIONAL: 1

;; EDNS PSEUDOSECTION:
;; Version: 0; flags: do; UDP size: 4096 B; ext-rcode: NOERROR

;; QUESTION SECTION:
;; _domainkey.mail.cez.cz.              TXT

;; AUTHORITY SECTION:
cez.cz.                 3600    SOA     ns10.cez.cz. netmaster.cez.cz. 2025021801 14400 3600 604800 7200
cez.cz.                 3600    RRSIG   SOA 10 2 3600 20250302073317 20250223063317 45620 cez.cz. JnAonhCOi234lF2A40lYaHcuKtxACKz8X6UFILSgSaK00xyXDk6gWDWo3nmMjXxBwgfP98Gaj8nLMqRZ7ezAEUfWi+5P4YCQzax5Habu3nKB+XKocIPMCHHMhOMf410w4Taz4N2rKgi1p71QkuujISi3JZWzqG4bqzot2cGL12w=
1vk9lupeivbv7dhsb7udm5da1hkd089j.cez.cz. 7200   NSEC3   1 0 1 ACB298B834ADA5FD 1vk9lupeivbv7dhsb7udm5da1hkd089k A NS HINFO MX AAAA SRV RRSIG CAA
1vk9lupeivbv7dhsb7udm5da1hkd089j.cez.cz. 7200   RRSIG   NSEC3 10 3 7200 20250303115912 20250224105912 45620 cez.cz. OBW90lof86IoVsiuKkNEf4useG3fikE+npAVkpbiVsgMZWLHRNzAAlIU9wPMH5S4CWpnwoMVTaNtWJxegsG7cvCDZrjVVNOHE9hLOG2eG9f57vx/tVFTe4/DegO9KOyColOOYt4nt/uj7LTJZbzJY3Ev8I9971LEkFf5IxVwwPU=

(cherry picked from commit 91ca2921d39cc7a3de57a5db872f89974a4e7f39)

3 months agoci: update to new IMAGE_TAG
Aleš Mrázek [Mon, 24 Mar 2025 12:36:08 +0000 (13:36 +0100)] 
ci: update to new IMAGE_TAG

For 6.x we started using this TAG in commit a1aa3a51a2ede
but there have been other IMAGE_TAG bumps in the meantime.

Here we'll need it for the deckard update in the next commit,
which is needed due to validator tweaks.
And to fix CI, let's do the tiny bump in the lua bindings
(no practical impact whatsoever due to struct alignment).

3 months agotests: disable problematic config.http test
Vladimír Čunát [Tue, 25 Feb 2025 10:30:45 +0000 (11:30 +0100)] 
tests: disable problematic config.http test

https://gitlab.nic.cz/knot/knot-resolver/-/issues/925
(cherry picked from commit ff5d5024e5fd00054431349a4bf54acea484891a)

3 months agoci: pkg: added debian 13
Aleš Mrázek [Wed, 19 Feb 2025 14:29:04 +0000 (15:29 +0100)] 
ci: pkg: added debian 13

(cherry picked from commit c26ada8041d60827887a05977364f5eab7e7fb12)

3 months agoMerge !1652: daemon/http: fix stuck HTTP status code docs-develop-mast-tyrtta/deployments/6640
Vladimír Čunát [Wed, 23 Apr 2025 14:04:08 +0000 (16:04 +0200)] 
Merge !1652: daemon/http: fix stuck HTTP status code

3 months agodaemon/http: fix stuck HTTP status code docs-develop-doh-6pig7f/deployments/6639
Vladimír Čunát [Wed, 23 Apr 2025 12:48:16 +0000 (14:48 +0200)] 
daemon/http: fix stuck HTTP status code

backported from v6.0.2 12f5b8efae82fe013

Two DoH tests fail now on 5.x and got disabled,
but I believe that the issue getting fixed is more serious,
especially when using a reverse proxy.

3 months agoMerge branch '5-ci-docker-buildx-stop' into 'master-5' docs-develop-mast-tyrtta/deployments/6551
Aleš Mrázek [Fri, 4 Apr 2025 10:42:42 +0000 (12:42 +0200)] 
Merge branch '5-ci-docker-buildx-stop' into 'master-5'

v5.x: ci: docker: stop buildx after cross-platform build

See merge request knot/knot-resolver!1675

3 months agov5.x: ci: docker: stop buildx after cross-platform build
Aleš Mrázek [Fri, 4 Apr 2025 10:42:42 +0000 (12:42 +0200)] 
v5.x: ci: docker: stop buildx after cross-platform build

8 months agoMerge !1635: v5.x: ci: docker: specify platform explicitly docs-develop-mast-tyrtta/deployments/5700
Vladimír Čunát [Tue, 19 Nov 2024 13:36:37 +0000 (14:36 +0100)] 
Merge !1635: v5.x: ci: docker: specify platform explicitly

8 months ago.gitlab-ci.yml: docker: specify platform explicitly docs-develop-5-do-bkuuxr/deployments/5698
Aleš Mrázek [Tue, 19 Nov 2024 11:06:33 +0000 (12:06 +0100)] 
.gitlab-ci.yml: docker: specify platform explicitly

8 months agoDockerFile: update KnotDNS version docs-develop-5-do-bkuuxr/deployments/5692
Aleš Mrázek [Tue, 19 Nov 2024 11:05:08 +0000 (12:05 +0100)] 
DockerFile: update KnotDNS version

8 months agoDockerFile: update to Debian 12 docs-develop-5-do-bkuuxr/deployments/5691
Aleš Mrázek [Tue, 19 Nov 2024 11:03:47 +0000 (12:03 +0100)] 
DockerFile: update to Debian 12

8 months agoMerge !1634: v5.x: ci: docker cross-platform build, tests and deploy docs-develop-mast-tyrtta/deployments/5690
Vladimír Čunát [Tue, 19 Nov 2024 10:01:54 +0000 (11:01 +0100)] 
Merge !1634: v5.x: ci: docker cross-platform build, tests and deploy

8 months agov5.x: ci: docker cross-platform build, tests and deploy
Aleš Mrázek [Tue, 19 Nov 2024 10:01:54 +0000 (11:01 +0100)] 
v5.x: ci: docker cross-platform build, tests and deploy

11 months agoMerge !1593: SUSE fixes to fix Leap 15.5 and Tumbleweed in COPR docs-develop-mast-tyrtta/deployments/4900
Vladimír Čunát [Fri, 16 Aug 2024 12:34:58 +0000 (14:34 +0200)] 
Merge !1593: SUSE fixes to fix Leap 15.5 and Tumbleweed in COPR

11 months agodoc/quickstart-install.rst: port instructions from our homepage docs-develop-suse-jgaxbc/deployments/4899
Vladimír Čunát [Fri, 16 Aug 2024 12:29:19 +0000 (14:29 +0200)] 
doc/quickstart-install.rst: port instructions from our homepage

We were updating it just a while ago.

11 months agoMerge master-5 into suse-fixes-v5
Vladimír Čunát [Fri, 16 Aug 2024 12:29:19 +0000 (14:29 +0200)] 
Merge master-5 into suse-fixes-v5

It's good to keep these based on the last release tag
(as that's what we use in packages) but for CI we need to sync.

11 months agodistro/pkg/rpm: disable docs build on openSUSE docs-develop-suse-jgaxbc/deployments/4887
Jakub Ružička [Thu, 15 Aug 2024 14:36:42 +0000 (16:36 +0200)] 
distro/pkg/rpm: disable docs build on openSUSE

Improve macros handling docs build.

11 months agodistro/pkg/rpm: provide knot-resolver user and group on openSUSE
Jakub Ružička [Thu, 15 Aug 2024 16:41:46 +0000 (18:41 +0200)] 
distro/pkg/rpm: provide knot-resolver user and group on openSUSE

11 months agoscripts/upstream-version.sh: check latest 5.x version
Jakub Ružička [Thu, 15 Aug 2024 14:39:48 +0000 (16:39 +0200)] 
scripts/upstream-version.sh: check latest 5.x version

Also bump apkg compat to latest 4 (no changes needed).

11 months agoMerge !1582: bench/bench_lru: make it build again, and check it in CI (v5) docs-develop-mast-tyrtta/deployments/4775
Vladimír Čunát [Fri, 2 Aug 2024 19:16:18 +0000 (21:16 +0200)] 
Merge !1582: bench/bench_lru: make it build again, and check it in CI (v5)

11 months agobench/bench_lru: make it build again, and check it in CI docs-develop-benc-pyk22f/deployments/4770
Oto Šťáva [Fri, 2 Aug 2024 13:43:04 +0000 (15:43 +0200)] 
bench/bench_lru: make it build again, and check it in CI

It's not too important, but I just stumbled upon this and it looked like
nobody has touched it in a long time. Since it's not completely broken
(the fix is trivial), I decided to fix it and add it to CI to ensure
that we can still build it. Maybe `lru` will be used some more at some
point again in the future...

12 months agoMerge !1574: .gitlab-ci: port package testing over from v6 docs-develop-mast-tyrtta/deployments/4720
Vladimír Čunát [Mon, 29 Jul 2024 09:06:23 +0000 (11:06 +0200)] 
Merge !1574: .gitlab-ci: port package testing over from v6

12 months ago.gitlab-ci: pkg: add Fedora 40, remove Fedora 38 docs-develop-pkg-ou2yxf/deployments/4697 docs-develop-pkg-tzdwzk/deployments/4698
Oto Šťáva [Thu, 25 Jul 2024 08:09:24 +0000 (10:09 +0200)] 
.gitlab-ci: pkg: add Fedora 40, remove Fedora 38

12 months agoci, distro, tests: remove old distro test files
Oto Šťáva [Thu, 25 Jul 2024 13:47:18 +0000 (15:47 +0200)] 
ci, distro, tests: remove old distro test files

12 months ago.gitlab-ci: port package testing over from v6 docs-develop-pkg-ou2yxf/deployments/4696
Oto Šťáva [Thu, 25 Jul 2024 13:46:29 +0000 (15:46 +0200)] 
.gitlab-ci: port package testing over from v6

This also takes in the change that the packages are published as
artifacts.

12 months agoMerge branch 'release-5.7.4' into 'master-5' docs-develop-mast-tyrtta/deployments/4656 docs-develop-mast-tyrtta/deployments/4666 docs-develop-stab-lrl9qw/deployments/4664 docs-release-v5-7-9qgt3j/deployments/4659 obs-knot-resolver-8xyvhu/deployments/4660 obs-knot-resolver-8xyvhu/deployments/4665 obs-knot-resolver-8xyvhu/deployments/5565 obs-knot-resolver-kv62s6/deployments/4658 obs-knot-resolver-kv62s6/deployments/5564 v5.7.4
Aleš Mrázek [Tue, 23 Jul 2024 17:39:18 +0000 (19:39 +0200)] 
Merge branch 'release-5.7.4' into 'master-5'

Release 5.7.4

See merge request knot/knot-resolver!1571

12 months agodaemon/worker: hotfix to avoid SERVFAIL with unavailable IPv6 docs-develop-rele-tdgndv/deployments/4655
Oto Šťáva [Tue, 23 Jul 2024 17:11:54 +0000 (19:11 +0200)] 
daemon/worker: hotfix to avoid SERVFAIL with unavailable IPv6

12 months agoci/pkgtest.yaml: use +edns in kdig
Oto Šťáva [Tue, 23 Jul 2024 12:45:14 +0000 (14:45 +0200)] 
ci/pkgtest.yaml: use +edns in kdig

12 months agoci/pkgtest.yml: show kdig output docs-develop-rele-tdgndv/deployments/4627
Oto Šťáva [Tue, 23 Jul 2024 12:34:58 +0000 (14:34 +0200)] 
ci/pkgtest.yml: show kdig output

12 months agoMerge: mitigate TCP flooding DoS opportunity docs-develop-rele-tdgndv/deployments/4619 docs-develop-rele-tdgndv/deployments/4621 obs-knot-resolver-bs4hbr/deployments/4620
Oto Šťáva [Tue, 23 Jul 2024 11:44:29 +0000 (13:44 +0200)] 
Merge: mitigate TCP flooding DoS opportunity

12 months agorelease 5.7.4 docs-develop-rele-tdgndv/deployments/4610
Aleš Mrázek [Mon, 22 Jul 2024 14:31:45 +0000 (16:31 +0200)] 
release 5.7.4

12 months agodoc+NEWS for the buffering changes
Vladimír Čunát [Mon, 22 Jul 2024 11:42:35 +0000 (13:42 +0200)] 
doc+NEWS for the buffering changes

12 months agodaemon/lua: bind `struct network` into lua
Vladimír Čunát [Mon, 10 Jun 2024 13:52:42 +0000 (15:52 +0200)] 
daemon/lua: bind `struct network` into lua

Because why not.  It's easy and it might become useful one day.
Unfortunately porting this to 5.x was a bit involved,
as there's no `the_network` yet - I reordered struct engine for it.

> (require 'ffi').C.the_worker.engine.net.tcp.user_timeout
1000

12 months agodaemon: set options on sockets towards clients (optionally) docs-develop-tmp-xva6ir/deployments/4625
Vladimír Čunát [Mon, 10 Jun 2024 13:03:23 +0000 (15:03 +0200)] 
daemon: set options on sockets towards clients (optionally)

12 months agodaemon: remove user-space transmit buffering docs-develop-tmp-xva6ir/deployments/4626
Vladimír Čunát [Sun, 9 Jun 2024 09:01:59 +0000 (11:01 +0200)] 
daemon: remove user-space transmit buffering

12 months agoMerge branch 'drop-libknot-3.0' into 'master-5' docs-develop-mast-tyrtta/deployments/4526 docs-develop-tmp-xva6ir/deployments/4624
Oto Šťáva [Thu, 11 Jul 2024 10:19:01 +0000 (12:19 +0200)] 
Merge branch 'drop-libknot-3.0' into 'master-5'

drop libknot 3.0.x support

See merge request knot/knot-resolver!1558

12 months ago.gitlab-ci: remove CentOS 7 pkgtests docs-develop-drop-354egg/deployments/4513
Oto Šťáva [Wed, 10 Jul 2024 14:28:03 +0000 (16:28 +0200)] 
.gitlab-ci: remove CentOS 7 pkgtests

CentOS 7 finally went end-of-life on 2024-07-01.

12 months agodrop libknot 3.0.x support docs-develop-drop-354egg/deployments/4494
Vladimír Čunát [Tue, 18 Jun 2024 08:24:17 +0000 (10:24 +0200)] 
drop libknot 3.0.x support

- Upstream last maintained 3.0.x in summer 2022.
- Our packaging shouldn't be affected, neither the new one, nor OBS.
- If someone updates resolver, it shouldn't be too hard
  to update libknot as well.
- Maintenance on resolver side still needed effort for kres-gen-30.lua

13 months agoMerge branch 'tls-client-error-log' into 'master-5' docs-develop-mast-tyrtta/deployments/4421
Oto Šťáva [Wed, 26 Jun 2024 12:00:22 +0000 (14:00 +0200)] 
Merge branch 'tls-client-error-log' into 'master-5'

daemon/tls: print IP when failing certificate check

See merge request knot/knot-resolver!1560

13 months agodaemon/tls: print IP when failing certificate check docs-develop-tls-2swicg/deployments/4381
Vladimír Čunát [Tue, 18 Jun 2024 17:20:44 +0000 (19:20 +0200)] 
daemon/tls: print IP when failing certificate check

13 months agoMerge branch 'ksk-2024' into 'master-5' docs-develop-mast-tyrtta/deployments/4339
Oto Šťáva [Wed, 12 Jun 2024 07:46:46 +0000 (09:46 +0200)] 
Merge branch 'ksk-2024' into 'master-5'

etc/: add the fresh DNSSEC root key "KSK-2024" already

See merge request knot/knot-resolver!1556

13 months agoetc/: add the fresh DNSSEC root key "KSK-2024" already docs-develop-ksk-qmeiye/deployments/4323
Vladimír Čunát [Mon, 10 Jun 2024 14:05:41 +0000 (16:05 +0200)] 
etc/: add the fresh DNSSEC root key "KSK-2024" already

The key still won't be used for some time, two years maybe,
but I think it's better to preemptively trust it already.
(outdated machines, etc.)

Some evidence that it's not just a hash of *my* private key:
https://www.iana.org/dnssec/ceremonies/53-2
https://data.iana.org/ksk-ceremony/53-2/kskm-keymaster-20240426-173035-995.log
https://www.youtube.com/live/gw4PFhtnVpk?si=C8zevM3nG9O0XAJr&t=12726

13 months agoMerge branch 'nits-warnings' into 'master-5' docs-develop-mast-tyrtta/deployments/4281
Oto Šťáva [Wed, 5 Jun 2024 10:47:31 +0000 (12:47 +0200)] 
Merge branch 'nits-warnings' into 'master-5'

reduce build-time warnings

See merge request knot/knot-resolver!1552

13 months ago**/meson.build: avoid deprecations in meson >= 1.4 docs-develop-nits-11ie7m/deployments/4279
Vladimír Čunát [Wed, 5 Jun 2024 07:59:30 +0000 (09:59 +0200)] 
**/meson.build: avoid deprecations in meson >= 1.4

The code isn't pretty, but probably better than watching
the fat red lines on every build.

13 months agomeson.build: avoid a gcc 14 warning
Vladimír Čunát [Wed, 5 Jun 2024 07:58:18 +0000 (09:58 +0200)] 
meson.build: avoid a gcc 14 warning

Picked from master commit 68688fac013a4c16a476acc15c366a8ce07ed46e

14 months agoMerge branch 'release-5.7.3' into 'master-5' docs-develop-mast-tyrtta/deployments/4227 docs-release-v5-7-74oxdd/deployments/4229 obs-knot-resolver-8xyvhu/deployments/4230 obs-knot-resolver-kv62s6/deployments/4228 v5.7.3
Aleš Mrázek [Thu, 30 May 2024 12:19:21 +0000 (14:19 +0200)] 
Merge branch 'release-5.7.3' into 'master-5'

Release 5.7.3

See merge request knot/knot-resolver!1551

14 months agorelease 5.7.3 docs-develop-rele-weu2f2/deployments/4224 docs-develop-rele-weu2f2/deployments/4226 obs-knot-resolver-bs4hbr/deployments/4225
Aleš Mrázek [Thu, 30 May 2024 11:15:35 +0000 (13:15 +0200)] 
release 5.7.3

14 months agoMerge branch 'nsec3-iters-wild' into 'master-5' docs-develop-mast-tyrtta/deployments/4223
Oto Šťáva [Thu, 30 May 2024 10:34:33 +0000 (12:34 +0200)] 
Merge branch 'nsec3-iters-wild' into 'master-5'

iterate: fix NSEC3 records missing from answer in an edge case

See merge request knot/knot-resolver!1550

14 months agoiterate: fix NSEC3 records missing from answer in an edge case docs-develop-nsec-3srvyj/deployments/4211
Vladimír Čunát [Wed, 29 May 2024 13:07:46 +0000 (15:07 +0200)] 
iterate: fix NSEC3 records missing from answer in an edge case

When positive wildcard expansion happens, NSEC(3) records are needed
to prove that the expansion was allowed.  If the NSEC3 had too many
iterations, we downgrade the answer to insecure status, but
unintentionally we also dropped the NSEC3 record from the answer.

That was breaking DNSSEC validation of that answer, e.g. when
forwarding to Knot Resolver.  The validator needs the NSEC3 -
either to validate the expansion or to determine that it's too expensive.

14 months agoMerge !1544: modules/stats: split IPv4 and IPv6 stats (version 5.x) docs-develop-mast-tyrtta/deployments/4182
Vladimír Čunát [Mon, 27 May 2024 10:17:42 +0000 (12:17 +0200)] 
Merge !1544: modules/stats: split IPv4 and IPv6 stats (version 5.x)

14 months agoNEWS: stats split docs-develop-stat-ik6qmx/deployments/4181
Oto Šťáva [Mon, 27 May 2024 09:18:34 +0000 (11:18 +0200)] 
NEWS: stats split

14 months agomodules/stats: add back stats dropped in the previous commit docs-develop-stat-ik6qmx/deployments/4128
Vladimír Čunát [Mon, 20 May 2024 12:11:07 +0000 (14:11 +0200)] 
modules/stats: add back stats dropped in the previous commit

Just as read-only aggregates of the split v4+v6 pairs.

14 months agomodules/stats: split request.* metrics to IPv4 and IPv6
Vladimír Čunát [Mon, 20 May 2024 11:32:52 +0000 (13:32 +0200)] 
modules/stats: split request.* metrics to IPv4 and IPv6

Let's have .total4 and .total6, too.  Then .total could be expressed
as a sum of *three* (including .internal), so it's still counted
separately, as an exception.

14 months agomodules/stats: add answer.sum_ms metric
Vladimír Čunát [Mon, 20 May 2024 11:32:45 +0000 (13:32 +0200)] 
modules/stats: add answer.sum_ms metric

(cherry picked from commit 44df5dd0d0fedfae390e7137572bcb14270e4d48)

14 months agoMerge branch 'coverity' into 'master-5' docs-develop-mast-tyrtta/deployments/4126
Oto Šťáva [Mon, 20 May 2024 11:01:04 +0000 (13:01 +0200)] 
Merge branch 'coverity' into 'master-5'

Coverity fixes

See merge request knot/knot-resolver!1543

14 months agodaemon/tls_ephemeral_credentials: fix possible race between read() and fstat() docs-develop-cove-uiak3c/deployments/4125
Oto Šťáva [Mon, 20 May 2024 09:52:27 +0000 (11:52 +0200)] 
daemon/tls_ephemeral_credentials: fix possible race between read() and fstat()

14 months ago.gitlab-ci: fail Coverity Scan on HTTP error
Oto Šťáva [Mon, 20 May 2024 09:01:19 +0000 (11:01 +0200)] 
.gitlab-ci: fail Coverity Scan on HTTP error

14 months agomodules/hints: fix dname bounds check
Oto Šťáva [Fri, 17 May 2024 11:22:51 +0000 (13:22 +0200)] 
modules/hints: fix dname bounds check

This check was introduced to fix Clang-Tidy errors, but was factually
not completely correct, tripping Coverity Scan.

14 months agoutils/cache_gc: use lib/generic/array instead of dynarray
Oto Šťáva [Fri, 17 May 2024 11:03:27 +0000 (13:03 +0200)] 
utils/cache_gc: use lib/generic/array instead of dynarray

This should appease Coverity Scan, and make the garbage collector
consistent with the rest of the Resolver.

14 months ago.gitlab-ci: remove SonarCloud Scanner docs-develop-mast-tyrtta/deployments/4074 docs-develop-mast-tzgd0f/deployments/4071
Oto Šťáva [Tue, 14 May 2024 09:35:18 +0000 (11:35 +0200)] 
.gitlab-ci: remove SonarCloud Scanner

The detections are mostly academic and useless for our purposes. We have
other static analyzers that better suit our needs.

14 months agoMerge branch 'ci-overhaul-2' into 'master' docs-develop-mast-tzgd0f/deployments/4069
Oto Šťáva [Tue, 14 May 2024 08:59:59 +0000 (10:59 +0200)] 
Merge branch 'ci-overhaul-2' into 'master'

CI/CD overhaul

See merge request knot/knot-resolver!1533

14 months agotests/pytests/utils: handle SSLEOFError docs-develop-ci-o-45qdxc/deployments/4062
Oto Šťáva [Tue, 7 May 2024 14:41:42 +0000 (16:41 +0200)] 
tests/pytests/utils: handle SSLEOFError

It used to just throw BrokenPipeError, but newer versions of Python have
a separate exception for when the connection is closed in violation of
TLS rules, which Knot Resolver does deliberately so as to not waste time
on properly closing TLS connections with misbehaving peers.

14 months agotest/pytests/test_tls: remove resumption test
Oto Šťáva [Tue, 7 May 2024 11:29:32 +0000 (13:29 +0200)] 
test/pytests/test_tls: remove resumption test

Knot Resolver disables resumption on TLS <=1.2 as it is vulnerable to
replay attacks, so the test makes no sense, as that one was specifically
disabled for TLS >=1.3 (Python had no support for it at the time).

We should make a new test for this with TLS 1.3 support.

14 months agotests/pytests: remove deprecated calls
Oto Šťáva [Mon, 6 May 2024 11:35:02 +0000 (13:35 +0200)] 
tests/pytests: remove deprecated calls

14 months agoSilence Clang-Tidy
Oto Šťáva [Mon, 29 Apr 2024 13:09:01 +0000 (15:09 +0200)] 
Silence Clang-Tidy

This commit makes lots of changes to the C code to appease the
Clang-Tidy linter. Some of the less obvious ones are due to C's weird
semantics regarding handling of numeric literals.

We also disable a bunch of the detections because they are
super-pedantic, arguably useless, or we have our own unwritten coding
style rules that solve the issues.

14 months ago.gitlab-ci, tests, modules: adapt to knot-resolver-ci repo
Oto Šťáva [Tue, 23 Apr 2024 14:34:08 +0000 (16:34 +0200)] 
.gitlab-ci, tests, modules: adapt to knot-resolver-ci repo

This is the bulk of the CI/CD overhaul.

Most of the changes are to the `.gitlab-ci.yml` file, where the build
images used are replaced with the ones provided by the
`knot-resolver-ci` repository. Some cleanups have also been done.

The commit also adds unit testing with Knot Resolver built against
multiple versions of Knot DNS, including the `master` branch. The
`master` branch image is built nightly in the `knot-resolver-ci` repo.

We have also removed `scan-build`, as its tests change frequently, with
lots of false-positives, which are very different on each version, and
there is no good way to ignore some detections. Clang-Tidy covers some
of the same issues, and we also have Coverity Scan. Should be more than
enough.

A few config tests were also excluded in the AddressSanitizer tests,
because they produce false-positives.

14 months agotests/dnstap: Go improvements
Oto Šťáva [Thu, 11 Apr 2024 10:30:38 +0000 (12:30 +0200)] 
tests/dnstap: Go improvements

- Do `go mod tidy` before running the test, even in CI
- Add `go.sum` to `.gitignore`
- Compatibility with Go 1.15 (Debian 11)