]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
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)

14 months agoMerge !1538: ci nixos: switch container image tag docs-develop-mast-tzgd0f/deployments/4035 docs-develop-mast-tzgd0f/deployments/4038 docs-develop-mast-tzgd0f/deployments/4040 docs-develop-mast-tzgd0f/deployments/4045 docs-develop-mast-tzgd0f/deployments/4048 docs-develop-mast-tzgd0f/deployments/4049 docs-develop-mast-tzgd0f/deployments/4052 docs-develop-mast-tzgd0f/deployments/4053 docs-develop-mast-tzgd0f/deployments/4056 docs-develop-mast-tzgd0f/deployments/4065 docs-develop-mast-tzgd0f/deployments/4068 docs-develop-nigh-589znp/deployments/4039 docs-develop-nigh-589znp/deployments/4046 docs-develop-nigh-589znp/deployments/4050 docs-develop-nigh-589znp/deployments/4054 docs-develop-nigh-589znp/deployments/4066 obs-knot-resolver-es11k1/deployments/4041 obs-knot-resolver-es11k1/deployments/4047 obs-knot-resolver-es11k1/deployments/4051 obs-knot-resolver-es11k1/deployments/4055 obs-knot-resolver-es11k1/deployments/4067
Vladimír Čunát [Thu, 9 May 2024 06:28:43 +0000 (08:28 +0200)] 
Merge !1538: ci nixos: switch container image tag

14 months agoci nixos: switch container image tag docs-develop-ci-n-u025gi/deployments/4034
Vladimír Čunát [Thu, 9 May 2024 05:34:33 +0000 (07:34 +0200)] 
ci nixos: switch container image tag

Unfortunately the `latest` tag is amd64 only right now,
even though it did have both recently. I hope this will work reliably.

14 months agoMerge !1509: treewide: more compatibility with future libknot 3.4 docs-develop-mast-tzgd0f/deployments/4005 docs-develop-mast-tzgd0f/deployments/4009 docs-develop-mast-tzgd0f/deployments/4012 docs-develop-mast-tzgd0f/deployments/4021 docs-develop-mast-tzgd0f/deployments/4024 docs-develop-mast-tzgd0f/deployments/4027 docs-develop-mast-tzgd0f/deployments/4030 docs-develop-nigh-589znp/deployments/4010 docs-develop-nigh-589znp/deployments/4022 docs-develop-nigh-589znp/deployments/4028 obs-knot-resolver-es11k1/deployments/4011 obs-knot-resolver-es11k1/deployments/4023 obs-knot-resolver-es11k1/deployments/4029
Vladimír Čunát [Mon, 6 May 2024 12:53:32 +0000 (14:53 +0200)] 
Merge !1509: treewide: more compatibility with future libknot 3.4

14 months agotreewide: more compatibility with future libknot 3.4 docs-develop-knot-r94p16/deployments/4003
Vladimír Čunát [Wed, 6 Mar 2024 07:13:57 +0000 (08:13 +0100)] 
treewide: more compatibility with future libknot 3.4

knot_wire_next_label used to return NULL when applied to . (root)
but that's not allowed anymore, and some of our calls relied on that.

14 months agotreewide: more compatibility with future libknot 3.4
Vladimír Čunát [Tue, 5 Mar 2024 12:48:21 +0000 (13:48 +0100)] 
treewide: more compatibility with future libknot 3.4

knot_wire_next_label isn't allowed with NULL wire anymore.

15 months agoMerge branch 'macos-fix' into 'master' docs-develop-mast-tzgd0f/deployments/3958 docs-develop-mast-tzgd0f/deployments/3976 docs-develop-mast-tzgd0f/deployments/3979 docs-develop-mast-tzgd0f/deployments/3986 docs-develop-mast-tzgd0f/deployments/3989 docs-develop-mast-tzgd0f/deployments/3990 docs-develop-mast-tzgd0f/deployments/3993 docs-develop-mast-tzgd0f/deployments/3994 docs-develop-mast-tzgd0f/deployments/3997 docs-develop-nigh-589znp/deployments/3977 docs-develop-nigh-589znp/deployments/3987 docs-develop-nigh-589znp/deployments/3991 docs-develop-nigh-589znp/deployments/3995 obs-knot-resolver-es11k1/deployments/3978 obs-knot-resolver-es11k1/deployments/3988 obs-knot-resolver-es11k1/deployments/3992 obs-knot-resolver-es11k1/deployments/3996
Oto Šťáva [Thu, 2 May 2024 10:46:04 +0000 (12:46 +0200)] 
Merge branch 'macos-fix' into 'master'

Fix macOS GitHub actions

See merge request knot/knot-resolver!1537

15 months agomodules/*/meson.build: add missing dependencies docs-develop-maco-884crr/deployments/3957
Oto Šťáva [Thu, 2 May 2024 10:21:00 +0000 (12:21 +0200)] 
modules/*/meson.build: add missing dependencies

15 months ago.github/workflows/macOS: fix prefix for ARM macOS
Oto Šťáva [Tue, 30 Apr 2024 09:19:34 +0000 (11:19 +0200)] 
.github/workflows/macOS: fix prefix for ARM macOS

15 months agoMerge branch 'website-push-docs' into 'master' docs-develop-mast-tzgd0f/deployments/3798 docs-develop-mast-tzgd0f/deployments/3812 docs-develop-mast-tzgd0f/deployments/3815 docs-develop-mast-tzgd0f/deployments/3830 docs-develop-mast-tzgd0f/deployments/3833 docs-develop-mast-tzgd0f/deployments/3845 docs-develop-mast-tzgd0f/deployments/3848 docs-develop-mast-tzgd0f/deployments/3851 docs-develop-mast-tzgd0f/deployments/3854 docs-develop-mast-tzgd0f/deployments/3855 docs-develop-mast-tzgd0f/deployments/3858 docs-develop-mast-tzgd0f/deployments/3863 docs-develop-mast-tzgd0f/deployments/3866 docs-develop-mast-tzgd0f/deployments/3871 docs-develop-mast-tzgd0f/deployments/3874 docs-develop-mast-tzgd0f/deployments/3880 docs-develop-mast-tzgd0f/deployments/3883 docs-develop-mast-tzgd0f/deployments/3897 docs-develop-mast-tzgd0f/deployments/3900 docs-develop-mast-tzgd0f/deployments/3905 docs-develop-mast-tzgd0f/deployments/3908 docs-develop-mast-tzgd0f/deployments/3909 docs-develop-mast-tzgd0f/deployments/3912 docs-develop-mast-tzgd0f/deployments/3913 docs-develop-mast-tzgd0f/deployments/3916 docs-develop-mast-tzgd0f/deployments/3925 docs-develop-mast-tzgd0f/deployments/3928 docs-develop-mast-tzgd0f/deployments/3944 docs-develop-mast-tzgd0f/deployments/3947 docs-develop-mast-tzgd0f/deployments/3951 docs-develop-mast-tzgd0f/deployments/3954 docs-develop-nigh-589znp/deployments/3813 docs-develop-nigh-589znp/deployments/3831 docs-develop-nigh-589znp/deployments/3846 docs-develop-nigh-589znp/deployments/3852 docs-develop-nigh-589znp/deployments/3856 docs-develop-nigh-589znp/deployments/3864 docs-develop-nigh-589znp/deployments/3872 docs-develop-nigh-589znp/deployments/3881 docs-develop-nigh-589znp/deployments/3898 docs-develop-nigh-589znp/deployments/3906 docs-develop-nigh-589znp/deployments/3910 docs-develop-nigh-589znp/deployments/3914 docs-develop-nigh-589znp/deployments/3926 docs-develop-nigh-589znp/deployments/3945 docs-develop-nigh-589znp/deployments/3952 obs-knot-resolver-es11k1/deployments/3803 obs-knot-resolver-es11k1/deployments/3814 obs-knot-resolver-es11k1/deployments/3832 obs-knot-resolver-es11k1/deployments/3847 obs-knot-resolver-es11k1/deployments/3853 obs-knot-resolver-es11k1/deployments/3857 obs-knot-resolver-es11k1/deployments/3865 obs-knot-resolver-es11k1/deployments/3873 obs-knot-resolver-es11k1/deployments/3882 obs-knot-resolver-es11k1/deployments/3899 obs-knot-resolver-es11k1/deployments/3907 obs-knot-resolver-es11k1/deployments/3911 obs-knot-resolver-es11k1/deployments/3915 obs-knot-resolver-es11k1/deployments/3927 obs-knot-resolver-es11k1/deployments/3946 obs-knot-resolver-es11k1/deployments/3953
Oto Šťáva [Tue, 16 Apr 2024 13:38:58 +0000 (15:38 +0200)] 
Merge branch 'website-push-docs' into 'master'

gitlab-ci: push docs to the website (manual CI)

See merge request knot/knot-resolver!1530

15 months agogitlab-ci: push docs to the website (manual CI) docs-develop-webs-khkalp/deployments/3739
Oto Šťáva [Wed, 10 Apr 2024 10:43:11 +0000 (12:43 +0200)] 
gitlab-ci: push docs to the website (manual CI)

15 months agoMerge branch 'nits' into 'master' docs-develop-mast-tzgd0f/deployments/3735 docs-develop-mast-tzgd0f/deployments/3754 docs-develop-mast-tzgd0f/deployments/3757 docs-develop-mast-tzgd0f/deployments/3769 docs-develop-mast-tzgd0f/deployments/3772 docs-develop-mast-tzgd0f/deployments/3773 docs-develop-mast-tzgd0f/deployments/3776 docs-develop-mast-tzgd0f/deployments/3777 docs-develop-mast-tzgd0f/deployments/3780 docs-develop-mast-tzgd0f/deployments/3781 docs-develop-mast-tzgd0f/deployments/3784 docs-develop-mast-tzgd0f/deployments/3789 docs-develop-mast-tzgd0f/deployments/3792 docs-develop-nigh-589znp/deployments/3755 docs-develop-nigh-589znp/deployments/3770 docs-develop-nigh-589znp/deployments/3774 docs-develop-nigh-589znp/deployments/3778 docs-develop-nigh-589znp/deployments/3782 docs-develop-nigh-589znp/deployments/3790 obs-knot-resolver-es11k1/deployments/3756 obs-knot-resolver-es11k1/deployments/3771 obs-knot-resolver-es11k1/deployments/3775 obs-knot-resolver-es11k1/deployments/3779 obs-knot-resolver-es11k1/deployments/3783 obs-knot-resolver-es11k1/deployments/3791
Oto Šťáva [Wed, 10 Apr 2024 11:09:36 +0000 (13:09 +0200)] 
Merge branch 'nits' into 'master'

nits: unused variable, improved #include path

See merge request knot/knot-resolver!1529

15 months agolib/dnssec nit: improve #include path docs-develop-nits-2dntdj/deployments/3711 docs-develop-nits-2dntdj/deployments/3734
Vladimír Čunát [Mon, 8 Apr 2024 08:52:01 +0000 (10:52 +0200)] 
lib/dnssec nit: improve #include path

The issue was exposed when working on rrl-wip branch:
  lib/dnssec/nsec.c:19:10: fatal error: resolve.h: No such file or director

15 months agodaemon/engine nit: drop an unused variable
Vladimír Čunát [Wed, 27 Mar 2024 08:21:41 +0000 (09:21 +0100)] 
daemon/engine nit: drop an unused variable

Reported by clang.

15 months agoMerge branch 'shared-libkres-fix' into 'master' docs-develop-mast-tzgd0f/deployments/3692 docs-develop-mast-tzgd0f/deployments/3695 docs-develop-mast-tzgd0f/deployments/3698 docs-develop-mast-tzgd0f/deployments/3699 docs-develop-mast-tzgd0f/deployments/3702 docs-develop-mast-tzgd0f/deployments/3703 docs-develop-mast-tzgd0f/deployments/3706 docs-develop-mast-tzgd0f/deployments/3715 docs-develop-mast-tzgd0f/deployments/3718 docs-develop-mast-tzgd0f/deployments/3721 docs-develop-mast-tzgd0f/deployments/3724 docs-develop-nigh-589znp/deployments/3696 docs-develop-nigh-589znp/deployments/3700 docs-develop-nigh-589znp/deployments/3704 docs-develop-nigh-589znp/deployments/3716 docs-develop-nigh-589znp/deployments/3722 obs-knot-resolver-es11k1/deployments/3697 obs-knot-resolver-es11k1/deployments/3701 obs-knot-resolver-es11k1/deployments/3705 obs-knot-resolver-es11k1/deployments/3717 obs-knot-resolver-es11k1/deployments/3723
Oto Šťáva [Fri, 5 Apr 2024 10:22:56 +0000 (12:22 +0200)] 
Merge branch 'shared-libkres-fix' into 'master'

daemon/meson.build: add install_rpath to kresd

See merge request knot/knot-resolver!1528

15 months agodaemon/meson.build: add install_rpath to kresd docs-develop-shar-t8zrsp/deployments/3691
Oto Šťáva [Fri, 5 Apr 2024 09:57:22 +0000 (11:57 +0200)] 
daemon/meson.build: add install_rpath to kresd

This fixes the default use-case for developers when they put their
install prefix somewhere where the system `LD_LIBRARY_PATH` does not
point. Before this, `kresd` would fail to start after `ninja install`
because it would not be able to find the `libkres.so` library.

The original workaround to this was to use `meson configure
-Ddefault_library=static`, but firstly, we would like it to be working
with the default settings, and secondly, we would like to have it as
similar to what most users will encounter as possible.

16 months agoMerge branch 'release-5.7.2' into 'master' docs-develop-mast-tzgd0f/deployments/3615 docs-develop-mast-tzgd0f/deployments/3625 docs-develop-mast-tzgd0f/deployments/3628 docs-develop-mast-tzgd0f/deployments/3633 docs-develop-mast-tzgd0f/deployments/3636 docs-develop-mast-tzgd0f/deployments/3637 docs-develop-mast-tzgd0f/deployments/3640 docs-develop-mast-tzgd0f/deployments/3641 docs-develop-mast-tzgd0f/deployments/3643 docs-develop-mast-tzgd0f/deployments/3646 docs-develop-mast-tzgd0f/deployments/3647 docs-develop-mast-tzgd0f/deployments/3650 docs-develop-mast-tzgd0f/deployments/3664 docs-develop-mast-tzgd0f/deployments/3667 docs-develop-mast-tzgd0f/deployments/3676 docs-develop-mast-tzgd0f/deployments/3679 docs-develop-mast-tzgd0f/deployments/3684 docs-develop-mast-tzgd0f/deployments/3687 docs-develop-nigh-589znp/deployments/3626 docs-develop-nigh-589znp/deployments/3634 docs-develop-nigh-589znp/deployments/3638 docs-develop-nigh-589znp/deployments/3642 docs-develop-nigh-589znp/deployments/3644 docs-develop-nigh-589znp/deployments/3648 docs-develop-nigh-589znp/deployments/3665 docs-develop-nigh-589znp/deployments/3677 docs-develop-nigh-589znp/deployments/3685 docs-develop-stab-lrl9qw/deployments/3983 docs-release-stab-12mrv9/deployments/3981 docs-release-v5-7-c2cdq1/deployments/3618 obs-knot-resolver-8xyvhu/deployments/3619 obs-knot-resolver-es11k1/deployments/3627 obs-knot-resolver-es11k1/deployments/3635 obs-knot-resolver-es11k1/deployments/3639 obs-knot-resolver-es11k1/deployments/3645 obs-knot-resolver-es11k1/deployments/3649 obs-knot-resolver-es11k1/deployments/3666 obs-knot-resolver-es11k1/deployments/3678 obs-knot-resolver-es11k1/deployments/3686 obs-knot-resolver-kv62s6/deployments/3617 v5.7.2
Aleš Mrázek [Wed, 27 Mar 2024 16:38:30 +0000 (17:38 +0100)] 
Merge branch 'release-5.7.2' into 'master'

Release 5.7.2

See merge request knot/knot-resolver!1522