]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
10 days agoMerge pull request #14093 from omoerbeek/backport-14049-to-rec-4.9.x rel/rec-4.9.x
Otto Moerbeek [Thu, 25 Apr 2024 13:36:13 +0000 (15:36 +0200)] 
Merge pull request #14093 from omoerbeek/backport-14049-to-rec-4.9.x

rec: Backport 14049 to rec-4.9.x: do not count RRSIGs using unsupported algorithms toward RRSIGs limit

10 days agoMerge pull request #14109 from omoerbeek/rel/rec-4.9.5-branch
Otto Moerbeek [Thu, 25 Apr 2024 13:25:18 +0000 (15:25 +0200)] 
Merge pull request #14109 from omoerbeek/rel/rec-4.9.5-branch

rec: merge rec-4.9.5 back onto rel/rec-4.9.x

12 days agorec: do not count RRSIGs using unsupported algorithms toward RRSIGs limit 14093/head
Otto Moerbeek [Mon, 8 Apr 2024 10:14:01 +0000 (12:14 +0200)] 
rec: do not count RRSIGs using unsupported algorithms toward RRSIGs limit

(cherry picked from commit 834660b5c62fe7a8bcf93b0182f26fbfa5464ecc)

3 weeks agorec: backport CVE-2024-25583 to rel/rec-4.9.5-branch 14109/head rec-4.9.5
Otto Moerbeek [Tue, 9 Apr 2024 09:16:23 +0000 (11:16 +0200)] 
rec: backport CVE-2024-25583 to rel/rec-4.9.5-branch

A name can be present already when building the cname chain.

4 weeks agoMerge pull request #13995 from omoerbeek/backport-13984-to-rec-4.9.x
Otto Moerbeek [Tue, 2 Apr 2024 06:31:03 +0000 (08:31 +0200)] 
Merge pull request #13995 from omoerbeek/backport-13984-to-rec-4.9.x

rec: Backport 13984 to rec-4.9.x: Correctly count NSEC3s considered when chasing the closest encloser

4 weeks agoMerge pull request #13994 from omoerbeek/backport-13926-to-rec-4.9.x
Otto Moerbeek [Tue, 2 Apr 2024 06:30:48 +0000 (08:30 +0200)] 
Merge pull request #13994 from omoerbeek/backport-13926-to-rec-4.9.x

rec: Backport 13926 to rec 4.9.x: fix trace=fail regression and add regression test for it

4 weeks agoMerge pull request #13993 from omoerbeek/backport-13849-to-rec-4.9.x
Otto Moerbeek [Tue, 2 Apr 2024 06:30:33 +0000 (08:30 +0200)] 
Merge pull request #13993 from omoerbeek/backport-13849-to-rec-4.9.x

rec: Backport 13849 to rec 4.9.x: Only print Docker config if debug flag is set

5 weeks agorec: Correctly count NSEC3s considered when chasing the closest encloser 13995/head
Remi Gacogne [Tue, 26 Mar 2024 13:44:15 +0000 (14:44 +0100)] 
rec: Correctly count NSEC3s considered when chasing the closest encloser

We need to count the number of NSEC3s that are present in the response,
not the number of times we have to consider possible NSEC3s when
looking for the NSEC3 closest encloser, label by label.

(cherry picked from commit c4f4d09654bde9d389e83f0bc8eadc6b665e9de9)

5 weeks agoZTC regression test does not need auths 13994/head
Otto Moerbeek [Mon, 18 Mar 2024 08:06:21 +0000 (09:06 +0100)] 
ZTC regression test does not need auths

(cherry picked from commit 250a8012a85c8cee7b6eaff97ff55fe4a335bf45)

5 weeks agorec: fix trace=fail regression and add regression test for it
Otto Moerbeek [Mon, 18 Mar 2024 08:00:57 +0000 (09:00 +0100)] 
rec: fix trace=fail regression and add regression test for it

(cherry picked from commit c2f2d82c3f52bb62df33f0b7e57d55a88cdbe222)

5 weeks agonits 13993/head
Peter van Dijk [Tue, 5 Mar 2024 13:53:46 +0000 (14:53 +0100)] 
nits

(cherry picked from commit 688d5dbdba626e3a36af37a8629c6fab6e5d5a1a)

5 weeks agoOnly print config if debug flag is set
Carolin Dohmen [Fri, 1 Mar 2024 15:19:04 +0000 (16:19 +0100)] 
Only print config if debug flag is set

Signed-off-by: Carolin Dohmen <carodohmen@gmail.com>
(cherry picked from commit d773b7bb99418026c3907ebd4b4e994a61fccecd)

2 months agoMerge pull request #13853 from omoerbeek/backport-13847-to-rec-4.9.x rec-4.9.4
Otto Moerbeek [Mon, 4 Mar 2024 13:51:19 +0000 (14:51 +0100)] 
Merge pull request #13853 from omoerbeek/backport-13847-to-rec-4.9.x

rec: Backport 13847 to rec 4.9.x: Fix gathering of denial of existence proof for wildcard-expanded names

2 months agorec: Apply Otto's suggestions 13853/head
Remi Gacogne [Mon, 4 Mar 2024 08:14:58 +0000 (09:14 +0100)] 
rec: Apply Otto's suggestions

(cherry picked from commit f8a286bb2a45fb51ea90399b793ec40665824430)

2 months agorec: Fix clang-tidy warnings
Remi Gacogne [Fri, 1 Mar 2024 16:00:41 +0000 (17:00 +0100)] 
rec: Fix clang-tidy warnings

(cherry picked from commit f74ca9e44868f44c4fe6460bed1b7629dcf027f4)

2 months agorec: Add a unit test for the gathering of denial of existence proof for wildcard...
Remi Gacogne [Fri, 1 Mar 2024 14:54:40 +0000 (15:54 +0100)] 
rec: Add a unit test for the gathering of denial of existence proof for wildcard-expanded names

(cherry picked from commit bedfbaa1912ee464a61dc7996341574040fab84a)

2 months agorec: Fix gathering of denial of existence proof for wildcard-expanded names
Remi Gacogne [Fri, 1 Mar 2024 13:07:35 +0000 (14:07 +0100)] 
rec: Fix gathering of denial of existence proof for wildcard-expanded names

When the recursor is forwarding to a resolver, we accept the names composing
the CNAME chain starting at the queried name. This means we also need to gather
the denial of existence proof for CNAMEs that were expanded from a wildcard,
otherwise the response sent to the client cannot be DNSSEC-validated.

(cherry picked from commit 2eb9f095fe06f77cd816135c03c7ac558e0f324d)

2 months agoMerge pull request #13795 from omoerbeek/backport-13788-to-rec-4.9.x
Otto Moerbeek [Mon, 26 Feb 2024 15:16:52 +0000 (16:16 +0100)] 
Merge pull request #13795 from omoerbeek/backport-13788-to-rec-4.9.x

rec: Backport 13788 to rec-4.9.x: fix the zoneToCache regression introduced by SA 2024-01

2 months agoMerge pull request #13793 from omoerbeek/backport-13387-to-rec-4.9.x
Otto Moerbeek [Mon, 26 Feb 2024 15:16:37 +0000 (16:16 +0100)] 
Merge pull request #13793 from omoerbeek/backport-13387-to-rec-4.9.x

rec: Backport of 13387 to rec-4.9.x: Update new b-root-server.net addresses in built-in hints.

2 months agoMerge pull request #13792 from omoerbeek/backport-13543-to-rec-4.9.x
Otto Moerbeek [Mon, 26 Feb 2024 15:16:24 +0000 (16:16 +0100)] 
Merge pull request #13792 from omoerbeek/backport-13543-to-rec-4.9.x

rec: Backport 13543 to rec 4.9.x: a single NSEC3 record covering everything is a special case

2 months agoTest ZTC with root zone 13795/head
Otto Moerbeek [Wed, 14 Feb 2024 11:39:57 +0000 (12:39 +0100)] 
Test ZTC with root zone

1. If code changes make the validation fail we want to know.
2. If root zone changes break something we want to know as well, this might even be more important than 1.

So I think we just have to accept the occasional network issues on GH.

(cherry picked from commit 5e7b96061de80b4cb52f52a65fed274a1e666e73)

2 months agorec: fix the zoneToCache regression introduced by SA 2024-01
Otto Moerbeek [Tue, 13 Feb 2024 15:55:10 +0000 (16:55 +0100)] 
rec: fix the zoneToCache regression introduced by SA 2024-01

Test will follow

(cherry picked from commit c7f594e2dcda23fdc2ae2c4246da3e7c519f897e)

2 months agorec: Update new b-root-server.net addresses in built-in hints. 13793/head
Otto Moerbeek [Tue, 17 Oct 2023 15:07:17 +0000 (17:07 +0200)] 
rec: Update new b-root-server.net addresses in built-in hints.

Is going to be effective 20231117. Both existing and new addresses
work already at the moment of writing (20211017).

https://www.lacnic.net/6869/2/lacnic/lacnic-assigns-number-resources-to-the-usc_isi-dns-root-server

Fixes #12897

(cherry picked from commit 5d6b31d85ab8c10443090fff5605aed580e30fcc)

2 months agoAdd test 13792/head
Otto Moerbeek [Fri, 1 Dec 2023 09:15:09 +0000 (10:15 +0100)] 
Add test

(cherry picked from commit 3f6fb380917db42c6c1c5281ff3e9efe1a31761a)

2 months agorec: a single NSEC3 record covering everything is a special case
Otto Moerbeek [Wed, 29 Nov 2023 15:47:01 +0000 (16:47 +0100)] 
rec: a single NSEC3 record covering everything is a special case

Fixes #13542

(cherry picked from commit 257b23b4f55031a94b04c472489c3806ab57a244)

2 months agoMerge pull request #13832 from omoerbeek/backport-13813-to-rec-4.9.x
Otto Moerbeek [Mon, 26 Feb 2024 14:20:46 +0000 (15:20 +0100)] 
Merge pull request #13832 from omoerbeek/backport-13813-to-rec-4.9.x

rec: Backport 13813 to rec 4.9.x: dnspython's API changed wrt NSID, apply (version dependent) fix in regression test

2 months agoTypos 13832/head
Otto Moerbeek [Mon, 26 Feb 2024 13:58:02 +0000 (14:58 +0100)] 
Typos

2 months ago4.9.x uses unittest instead of pytest
Otto Moerbeek [Mon, 26 Feb 2024 12:04:08 +0000 (13:04 +0100)] 
4.9.x uses unittest instead of pytest

2 months agorec: dnspython's API changed wrt NSID, apply (version dependent) fix in regression...
Otto Moerbeek [Mon, 19 Feb 2024 10:05:32 +0000 (11:05 +0100)] 
rec: dnspython's API changed wrt NSID, apply (version dependent) fix in regression test

See https://dnspython.readthedocs.io/en/stable/whatsnew.html 2.6.0 2nd bullet

(cherry picked from commit e1ea89984da1c10850dd0cb4e7d4d7ee501e078d)

2 months agoMerge pull request #13794 from omoerbeek/backport-13787-to-rec-4.9.x
Otto Moerbeek [Mon, 26 Feb 2024 10:05:42 +0000 (11:05 +0100)] 
Merge pull request #13794 from omoerbeek/backport-13787-to-rec-4.9.x

rec: Backport 13787 to rec 4.9.x: skip a few tests that depend on sidnlab's public test setup that no longer works

2 months agorec: skip a few test that depend on sidnlab's public test setup that no longer works 13794/head
Otto Moerbeek [Tue, 13 Feb 2024 15:31:35 +0000 (16:31 +0100)] 
rec: skip a few test that depend on sidnlab's public test setup that no longer works

(cherry picked from commit 1c47d58191e285aa2f85c24bbddba55f95cd58a2)

2 months agoMerge pull request #13783 from omoerbeek/rec-backport-keytrap-to-4.9.x
Otto Moerbeek [Tue, 13 Feb 2024 12:33:43 +0000 (13:33 +0100)] 
Merge pull request #13783 from omoerbeek/rec-backport-keytrap-to-4.9.x

rec: Backport Keytrap to rec-4.9.x

2 months agoBetter handling of DNSKEY validation failures 13783/head rec-4.9.3
Otto Moerbeek [Mon, 5 Feb 2024 16:09:00 +0000 (17:09 +0100)] 
Better handling of DNSKEY validation failures

2 months agoAdd a new 'max-ds-per-zone' setting and immediately return BogusNoValidDNSKEY when...
Otto Moerbeek [Mon, 5 Feb 2024 11:43:15 +0000 (12:43 +0100)] 
Add a new 'max-ds-per-zone' setting and immediately return BogusNoValidDNSKEY when we hit a limit in validateDNSKeysAgainstDS()

2 months agoEstablish (now validated) defaults for all new settings
Otto Moerbeek [Fri, 12 Jan 2024 07:57:02 +0000 (08:57 +0100)] 
Establish (now validated) defaults for all new settings

2 months agorec: Fix validation accounting in validateDNSKeysAgainstDS()
Remi Gacogne [Mon, 8 Jan 2024 14:04:13 +0000 (15:04 +0100)] 
rec: Fix validation accounting in validateDNSKeysAgainstDS()

The counter was sometimes increased even though no actual validation
was performed, because the corresponding DNSKEY was not (yet) trusted.

2 months agoBackport of keytrap to 4.9.x up to 5f6726ca4c759cb6c8fb5f131334dab64a4980d5
Otto Moerbeek [Tue, 2 Jan 2024 12:11:43 +0000 (13:11 +0100)] 
Backport of keytrap to 4.9.x up to 5f6726ca4c759cb6c8fb5f131334dab64a4980d5

3 months agoMerge pull request #13694 from omoerbeek/backport-13675-to-rec-4.9.x
Otto Moerbeek [Wed, 10 Jan 2024 14:23:26 +0000 (15:23 +0100)] 
Merge pull request #13694 from omoerbeek/backport-13675-to-rec-4.9.x

Backport 13675 to rec 4.9.x: Fix documentation building error for dnsdist and recursor

3 months agodnsdist: Fix the version of alabaster when building the doc 13694/head
Remi Gacogne [Mon, 8 Jan 2024 10:47:13 +0000 (11:47 +0100)] 
dnsdist: Fix the version of alabaster when building the doc

Fixes
```
The alabaster extension used by this project needs at least Sphinx v3.4; it therefore cannot be built with this version.
```

(cherry picked from commit c2a7ef8bd4f2423e2dc0eaa4d4a46de99b44636b)

3 months agorec: Fix the version of alabaster when building the doc
Remi Gacogne [Mon, 8 Jan 2024 10:32:31 +0000 (11:32 +0100)] 
rec: Fix the version of alabaster when building the doc

Fixes
```
The alabaster extension used by this project needs at least Sphinx v3.4; it therefore cannot be built with this version.
```

(cherry picked from commit ac89467f17bb888fbd48c0f4c5267beab95aebee)

4 months agoMerge pull request #13570 from romeroalx/rel/rec-4.9.x-workflow-call
Otto Moerbeek [Wed, 13 Dec 2023 12:03:58 +0000 (13:03 +0100)] 
Merge pull request #13570 from romeroalx/rel/rec-4.9.x-workflow-call

GH Actions - rel/rec-4.9.x: make `build-and-test-all` and `builder` workflows reusable from other branches

5 months agomake builder workflow reusable 13570/head
romeroalx [Wed, 22 Nov 2023 13:07:38 +0000 (14:07 +0100)] 
make builder workflow reusable

5 months agomake build-and-test-all reusable
Alexis Romero [Thu, 16 Nov 2023 15:56:20 +0000 (16:56 +0100)] 
make build-and-test-all reusable

5 months agotest ubuntu jammy build target
Peter van Dijk [Fri, 14 Jan 2022 11:12:09 +0000 (12:12 +0100)] 
test ubuntu jammy build target

5 months agobuilder: drop ubuntu kinetic, it is EOL
Peter van Dijk [Thu, 14 Sep 2023 06:35:05 +0000 (08:35 +0200)] 
builder: drop ubuntu kinetic, it is EOL

5 months agoMerge pull request #13449 from omoerbeek/backport-13409-to-rec-4.9.x rec-4.9.2
Otto Moerbeek [Mon, 6 Nov 2023 08:41:04 +0000 (09:41 +0100)] 
Merge pull request #13449 from omoerbeek/backport-13409-to-rec-4.9.x

rec: backport 13409 to rec-4.9.x: handle serve stale logic in getRootNXTrust()

6 months agorec: handle serve stale logic in getRootNXTrust() 13449/head
Otto Moerbeek [Mon, 23 Oct 2023 07:17:16 +0000 (09:17 +0200)] 
rec: handle serve stale logic in getRootNXTrust()

Superseded #13383 by calling the general get() function that has
all the special cases covered.

(cherry picked from commit e2bfa1460d5b9e4e470c2f8829ef6c10bc583c73)

6 months agoMerge pull request #13440 from omoerbeek/rec-backport-13237-to-rec-49x
Otto Moerbeek [Wed, 1 Nov 2023 08:38:48 +0000 (09:38 +0100)] 
Merge pull request #13440 from omoerbeek/rec-backport-13237-to-rec-49x

rec: backport 13237 to rec-4.9.x: Be even more lenient in allowing timing differences

6 months agorec: backport 13237 to rec-4.9.x: Be even more lenient in allowing timing differences 13440/head
Otto Moerbeek [Tue, 31 Oct 2023 15:35:06 +0000 (16:35 +0100)] 
rec: backport 13237 to rec-4.9.x: Be even more lenient in allowing timing differences

Backport of #13237

6 months agoMerge pull request #13411 from omoerbeek/backport-13353-to-rec-4.9.x
Otto Moerbeek [Tue, 31 Oct 2023 07:58:26 +0000 (08:58 +0100)] 
Merge pull request #13411 from omoerbeek/backport-13353-to-rec-4.9.x

rec: Backport 13353 to rec 4.9.x:  If serving stale, wipe CNAME records from cache when we get a NODATA negative response for them

6 months agoMerge pull request #13412 from omoerbeek/backport-13408-to-rec-4.9.x
Otto Moerbeek [Tue, 24 Oct 2023 09:28:00 +0000 (11:28 +0200)] 
Merge pull request #13412 from omoerbeek/backport-13408-to-rec-4.9.x

rec: Backport 13408 to rec-4.9.x: Handle stack memory on NetBSD as on OpenBSD

6 months agoHandle stack memory on NetBSD as on OpenBSD 13412/head
Tom Ivar Helbekkmo [Sun, 22 Oct 2023 18:26:32 +0000 (20:26 +0200)] 
Handle stack memory on NetBSD as on OpenBSD

(cherry picked from commit d6ff1755940d77ca502bf21a8f2d4d690252d0d2)

6 months agoTidy 13411/head
Otto Moerbeek [Wed, 11 Oct 2023 13:39:46 +0000 (15:39 +0200)] 
Tidy

(cherry picked from commit db263dde8799c6d6af58f02bf63ec1aeb8eed50d)

6 months agoIf serving stale, wipe CNAME records from cache when we get a NODATA negative respons...
Otto Moerbeek [Wed, 11 Oct 2023 12:22:03 +0000 (14:22 +0200)] 
If serving stale, wipe CNAME records from cache when we get a NODATA negative response for them
PR #12395 already did that for the NXDOMAIN case.

(cherry picked from commit 60ba49d38e5ded2df5a367d8acacba8b8ec3d2cc)

7 months agoMerge pull request #13286 from omoerbeek/backport-13092-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 12:59:43 +0000 (14:59 +0200)] 
Merge pull request #13286 from omoerbeek/backport-13092-to-rec-4.9.x

rec: Backport 13092 to rec 4.9.x: prevent two cases of copy of data that can be moved

7 months agoAdd NOLINT marker for readability-function-cognitive-complexity 13286/head
Otto Moerbeek [Fri, 22 Sep 2023 10:48:39 +0000 (12:48 +0200)] 
Add NOLINT marker for readability-function-cognitive-complexity

7 months agoMerge pull request #13285 from omoerbeek/backport-13224-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 10:46:00 +0000 (12:46 +0200)] 
Merge pull request #13285 from omoerbeek/backport-13224-to-rec-4.9.x

rec: Backport 13223 to rec-4.9.x: auto-build on tags and generate provenance

7 months agoMerge pull request #13284 from omoerbeek/backport-13210-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 10:45:35 +0000 (12:45 +0200)] 
Merge pull request #13284 from omoerbeek/backport-13210-to-rec-4.9.x

rec: Backport 13210 to rec-4.9.x: remove Before=nss-lookup.target line from unit file

7 months agoMerge pull request #13283 from omoerbeek/backport-13278-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 10:45:22 +0000 (12:45 +0200)] 
Merge pull request #13283 from omoerbeek/backport-13278-to-rec-4.9.x

rec: Backport 13278 to rec-4.9.x: Prevent lookups for unsupported qtypes or rcode != 0 to submit refresh tasks

7 months agoMerge pull request #13282 from omoerbeek/backport-13209-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 10:45:08 +0000 (12:45 +0200)] 
Merge pull request #13282 from omoerbeek/backport-13209-to-rec-4.9.x

rec: Backport 13209 to rec 4.9.x: Implement a more fair way to prune the aggressive cache

7 months agoFix formatting and a clang-tidy issue 13283/head
Otto Moerbeek [Fri, 22 Sep 2023 08:43:25 +0000 (10:43 +0200)] 
Fix formatting and a clang-tidy issue

7 months agorec: Prevent a copy when distributing UDP queries to workers
Remi Gacogne [Tue, 1 Aug 2023 13:09:59 +0000 (15:09 +0200)] 
rec: Prevent a copy when distributing UDP queries to workers

Reported by Coverity as CID 1509301.

(cherry picked from commit 42d6b18e42e529a0ff89b57dca1043d6df4041ee)

7 months agorec: Prevent a copy in RecursorLua4::DNSQuestion::addAnswer
Remi Gacogne [Tue, 1 Aug 2023 13:09:25 +0000 (15:09 +0200)] 
rec: Prevent a copy in RecursorLua4::DNSQuestion::addAnswer

Reported by Coverity as 1509322

(cherry picked from commit 86867a80b19a40644e5d5d1c2dcacccb70695b85)

7 months agorec: Backport 13223 to rec-4.9.x: auto-build on tags and generate provenance 13285/head
Otto Moerbeek [Fri, 22 Sep 2023 08:09:53 +0000 (10:09 +0200)] 
rec: Backport 13223 to rec-4.9.x: auto-build on tags and generate provenance

This is basically a copy of the backport to dnsdist-1.8.x PR #13184

7 months agoAlso remove Wants=nss-lookup.target 13284/head
Otto Moerbeek [Wed, 6 Sep 2023 09:49:23 +0000 (11:49 +0200)] 
Also remove Wants=nss-lookup.target

(cherry picked from commit 845e1506d6ee99623e6bf7b608b626f8ea08a2ba)

7 months agorec: remove Before=nss-lookup.target line from unit file
Otto Moerbeek [Wed, 6 Sep 2023 08:24:13 +0000 (10:24 +0200)] 
rec: remove Before=nss-lookup.target line from unit file

Fixes #13115

(cherry picked from commit 1f736a6bc0e1311cf5f7f091c852a23035ea59d4)

7 months agoPrevent lookups for unsupported qtypes or rcode != 0 to submit refresh tasks
Otto Moerbeek [Mon, 18 Sep 2023 09:38:10 +0000 (11:38 +0200)] 
Prevent lookups for unsupported qtypes or rcode != 0 to submit refresh tasks

(cherry picked from commit 11c65aeda2aef3aabeeff9aa1491bc84954ed905)

7 months agoApply typo-in-comment fixes from code review 13282/head
Otto Moerbeek [Mon, 11 Sep 2023 10:00:20 +0000 (12:00 +0200)] 
Apply typo-in-comment fixes from code review

Co-authored-by: Remi Gacogne <github@coredump.fr>
7 months agoFormatting
Otto Moerbeek [Tue, 5 Sep 2023 08:54:39 +0000 (10:54 +0200)] 
Formatting

(cherry picked from commit dab9636b332f680283636c66547489f9a2cdb250)

7 months agoThe proper "expired" test is ttd <= now
Otto Moerbeek [Tue, 5 Sep 2023 08:40:27 +0000 (10:40 +0200)] 
The proper "expired" test is ttd <= now

(cherry picked from commit 17806638ce9ae1643d881faa7328a85f98eeb265)

7 months agorec: implement a more fair way to prune the aggressive cache
Otto Moerbeek [Fri, 1 Sep 2023 13:39:18 +0000 (15:39 +0200)] 
rec: implement a more fair way to prune the aggressive cache

Fixes #13109

(cherry picked from commit f44081141772da42dd6830462ae357530d3a1fbf)

8 months agoMerge pull request #13177 from omoerbeek/backport-13174-to-rec-4.9.x
Otto Moerbeek [Mon, 28 Aug 2023 08:57:02 +0000 (10:57 +0200)] 
Merge pull request #13177 from omoerbeek/backport-13174-to-rec-4.9.x

rec: backport 13174 to rec-4.9.x: Include cstdint in mtasker_ucontext.cc, noted by @zeha

8 months agoMerge pull request #13176 from omoerbeek/backport-13102-to-rec-4.9.x
Otto Moerbeek [Mon, 28 Aug 2023 08:16:22 +0000 (10:16 +0200)] 
Merge pull request #13176 from omoerbeek/backport-13102-to-rec-4.9.x

rec: Backport #13102 to rec-4.9.x: Do not assume the records are in a particular order when deterining if an answer is NODATA

8 months agoInclude cstdint in mtasker_ucontext.cc, noted by @zeha 13177/head
Otto Moerbeek [Fri, 25 Aug 2023 12:08:36 +0000 (14:08 +0200)] 
Include cstdint in mtasker_ucontext.cc, noted by @zeha

(cherry picked from commit bbf76a06de324da40302d51850c7c475e465cb3a)

8 months agorec: Do not assume the records are in a particular order when determining if an answer is 13176/head
Otto Moerbeek [Fri, 4 Aug 2023 11:07:59 +0000 (13:07 +0200)] 
rec: Do not assume the records are in a particular order when determining if an answer is
NODATA.

(cherry picked from commit fa5f61e94e1bd354d42923a844c59b3be232c29f)

8 months agoMerge pull request #13163 from omoerbeek/backport-13071-to-rec-4.9.x rec-4.9.1
Otto Moerbeek [Wed, 23 Aug 2023 07:54:35 +0000 (09:54 +0200)] 
Merge pull request #13163 from omoerbeek/backport-13071-to-rec-4.9.x

Backport 13071 to rec 4.9.x: Fix code producing json

8 months agoMerge pull request #13161 from omoerbeek/backport-13106-to-rec-4.9.x
Otto Moerbeek [Wed, 23 Aug 2023 07:29:19 +0000 (09:29 +0200)] 
Merge pull request #13161 from omoerbeek/backport-13106-to-rec-4.9.x

rec: Backport 13106 to rec 4.9.x: replace data in the aggressive cache if new data becomes available

8 months agoMerge pull request #13160 from omoerbeek/backport-13151-to-rec-4.9.x
Otto Moerbeek [Wed, 23 Aug 2023 07:29:04 +0000 (09:29 +0200)] 
Merge pull request #13160 from omoerbeek/backport-13151-to-rec-4.9.x

rec: Backport 13151 to rec-4.9.x: Fix a few typos.

8 months agoMerge pull request #13159 from omoerbeek/backport-13105-to-rec-4.9.x
Otto Moerbeek [Wed, 23 Aug 2023 06:53:40 +0000 (08:53 +0200)] 
Merge pull request #13159 from omoerbeek/backport-13105-to-rec-4.9.x

rec: Backport 13105 to rec 4.9.x: (I)XFR: handle partial read of len prefix

8 months agoSkip smileys for now, they take 4 bytes to encode and out current mysql 13163/head
Otto Moerbeek [Mon, 31 Jul 2023 13:51:31 +0000 (15:51 +0200)] 
Skip smileys for now, they take 4 bytes to encode and out current mysql
schema has 'utf8', which only handles 3 bytes max, should be changed to
utf8mb4 one day.

(cherry picked from commit 93ad866b4e2f4afb017e8b3b08041598a2378ea5)

8 months agoTest a few non-ASCII chars in comments
Otto Moerbeek [Mon, 31 Jul 2023 12:44:13 +0000 (14:44 +0200)] 
Test a few non-ASCII chars in comments

(cherry picked from commit 56726eb113ab135ec890e79e94c0393986e9edad)

8 months agoAdd a few testcases for "incomplete" URLs
Otto Moerbeek [Wed, 26 Jul 2023 07:35:05 +0000 (09:35 +0200)] 
Add a few testcases for "incomplete" URLs

(cherry picked from commit 7ab40a80547d112914b71919d8f4aa14cc24b047)

8 months agoCheck all chars in the URL are valid URL chars.
Otto Moerbeek [Fri, 21 Jul 2023 12:23:02 +0000 (14:23 +0200)] 
Check all chars in the URL are valid URL chars.

Should probably (also) be done in YaHTTP::URL, though currently the
return value of YaHTTP::URL::parse() is completely ignored, so
there is no easy way to do.

(cherry picked from commit 35eb2fcffa40e7f70b716e99158efe72a0e864d9)

8 months agoImplement recomendationm from #13050: step 1
Otto Moerbeek [Fri, 21 Jul 2023 11:43:57 +0000 (13:43 +0200)] 
Implement recomendationm from #13050: step 1

Revert #12660

(cherry picked from commit 26f5d6058d8b0cf4ad2f8da729cb906796c297a0)

8 months agoMake clang-tidy happy 13161/head
Otto Moerbeek [Wed, 9 Aug 2023 11:45:12 +0000 (13:45 +0200)] 
Make clang-tidy happy

(cherry picked from commit 993712a13a3b4d9faf7c4298412fbd2a6b3a7761)

8 months agorec: replace data in the aggressive cache if it becomes available
Otto Moerbeek [Tue, 8 Aug 2023 10:15:00 +0000 (12:15 +0200)] 
rec: replace data in the aggressive cache if it becomes available

Currently, new data does not get recorded into the aggressive cache
if there's an existing entry that matches. Together with the fact
that in some cases pruning can be unfair (it scans the zones
always in the same order and stops clearing when it has reached the
goal) and/or not very active (when the recursor is lighlty loaded)
this has the consequence that old expired records can remain in
the cache that prevent new data to be recorded and used.

(cherry picked from commit 93b25e9613f252bc1798975dc1f7a475400f2996)

8 months agoFix a few typos. 13160/head
Andreas Jakum [Thu, 17 Aug 2023 13:24:05 +0000 (15:24 +0200)] 
Fix a few typos.

(cherry picked from commit 84d2423481cff98765c482964d11ef828a2774d2)

8 months agoremove redundant assignment 13159/head
Otto Moerbeek [Wed, 9 Aug 2023 08:09:36 +0000 (10:09 +0200)] 
remove redundant assignment

(cherry picked from commit 8d3ab63b412fb4b9fd8732af47a5d1c18ba7e786)

8 months agoIXFR client: handle partial reads of the TCP chunk length header, plus:
Peter van Dijk [Mon, 7 Aug 2023 17:13:36 +0000 (19:13 +0200)] 
IXFR client: handle partial reads of the TCP chunk length header, plus:
* add primarySOACount to exception text
* add indicator of current state to exception text
* a test

(cherry picked from commit 8faf5a90992b2613cf5999c8dd5e26b0025050b7)

8 months agotypo fix
Peter van Dijk [Mon, 7 Aug 2023 17:13:11 +0000 (19:13 +0200)] 
typo fix

(cherry picked from commit 8fb5bba04f7a211ac2eb815f5c340e69070dc3e0)

9 months agoMerge pull request #13057 from omoerbeek/rec-backport-13021-to-rec-4.9.x
Otto Moerbeek [Mon, 31 Jul 2023 16:10:09 +0000 (18:10 +0200)] 
Merge pull request #13057 from omoerbeek/rec-backport-13021-to-rec-4.9.x

rec: Backport 13021 to rec-4.9.x: fix setting of policy tags

9 months agoBackport #13059: Don't check TTLs of records coming out of packet cache 13057/head
Otto Moerbeek [Thu, 20 Jul 2023 13:33:36 +0000 (15:33 +0200)] 
Backport #13059: Don't check TTLs of records coming out of packet cache

9 months agorec: Backport 13021 to rec-4.9.x: fix setting of policy tags
Otto Moerbeek [Thu, 20 Jul 2023 09:42:23 +0000 (11:42 +0200)] 
rec: Backport 13021 to rec-4.9.x: fix setting of policy tags

Backport of #13021

9 months agoMerge pull request #12995 from omoerbeek/backport-12961-to-rec-4.9.x
Otto Moerbeek [Mon, 10 Jul 2023 08:56:31 +0000 (10:56 +0200)] 
Merge pull request #12995 from omoerbeek/backport-12961-to-rec-4.9.x

rec: Backport 12961 to rec-4.9.x: Work around Red Hat 8 pooping the bed in OpenSSL's headers

9 months agoMerge pull request #12994 from omoerbeek/backport-12935-to-rec-4.9.x
Otto Moerbeek [Mon, 10 Jul 2023 08:56:18 +0000 (10:56 +0200)] 
Merge pull request #12994 from omoerbeek/backport-12935-to-rec-4.9.x

rec: backport of 12935 to rec-4.9.x: Stop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL

10 months agoWork around Red Hat 8 pooping the bed in OpenSSL's headers 12995/head
Remi Gacogne [Wed, 28 Jun 2023 13:23:35 +0000 (15:23 +0200)] 
Work around Red Hat 8 pooping the bed in OpenSSL's headers

The openssl/kdf.h header on EL8 is invalid because someone backported
a work-in-progress feature to an older OpenSSL branch and did not
bother to backport the fixes that were added later.

Red Hat declined to fix their mess and helpfully suggested we do the
work instead in https://bugzilla.redhat.com/show_bug.cgi?id=2215856

(cherry picked from commit 3dabf2d4a1a478fb00a232259e8043f075eb4d03)

10 months agoStop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL 12994/head
Remi Gacogne [Wed, 21 Jun 2023 12:58:15 +0000 (14:58 +0200)] 
Stop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL

And move to BN_new() instead, which has been present since at least
0.9.6 and is still in 3.1.

(cherry picked from commit 9fcef4932c9323b085984f8a087045fef70103f5)

10 months agoMerge pull request #12968 from omoerbeek/backport-12963-to-rec-4.9.x rec-4.9.0
Otto Moerbeek [Thu, 29 Jun 2023 13:37:46 +0000 (15:37 +0200)] 
Merge pull request #12968 from omoerbeek/backport-12963-to-rec-4.9.x

rec: Backport 12963 to rec 4.9.x: fix qname length getting out-of-sync with qname-minimization iteration count

10 months agorec: fix qname length getting out-of-sync with qname-minimization iteration count 12968/head
Otto Moerbeek [Thu, 29 Jun 2023 07:31:46 +0000 (09:31 +0200)] 
rec: fix qname length getting out-of-sync with qname-minimization iteration count

Approach two: fall back to non-QM mode if loop detected
Fixes #12956

(cherry picked from commit 7b9450932da11f34a8a729b7b7e47202276fff5f)

10 months agoMerge pull request #12936 from omoerbeek/backport-12933-to-rec-4.9.x
Otto Moerbeek [Mon, 26 Jun 2023 10:35:03 +0000 (12:35 +0200)] 
Merge pull request #12936 from omoerbeek/backport-12933-to-rec-4.9.x

rec: Backport 12933 to rec 4.9.x: rewrite and fix verifyOne() loop