]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
23 months agoremove redundant assignment 13157/head
Otto Moerbeek [Wed, 9 Aug 2023 08:09:36 +0000 (10:09 +0200)] 
remove redundant assignment

(cherry picked from commit 8d3ab63b412fb4b9fd8732af47a5d1c18ba7e786)

23 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)

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

(cherry picked from commit 8fb5bba04f7a211ac2eb815f5c340e69070dc3e0)

2 years agoMerge pull request #13079 from omoerbeek/backport-12892-to-rec-4.7.x
Otto Moerbeek [Mon, 31 Jul 2023 17:56:13 +0000 (19:56 +0200)] 
Merge pull request #13079 from omoerbeek/backport-12892-to-rec-4.7.x

rec: Backport 12892 to rec-4.7.x: YaHTTP: Prevent integer overflow on very large chunks

2 years agoMerge pull request #13075 from omoerbeek/backport-12961-to-rec-4.7.x
Otto Moerbeek [Mon, 31 Jul 2023 17:11:18 +0000 (19:11 +0200)] 
Merge pull request #13075 from omoerbeek/backport-12961-to-rec-4.7.x

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

2 years agoMerge pull request #13058 from omoerbeek/rec-backport-13021-to-rec-4.7.x
Otto Moerbeek [Mon, 31 Jul 2023 16:09:35 +0000 (18:09 +0200)] 
Merge pull request #13058 from omoerbeek/rec-backport-13021-to-rec-4.7.x

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

2 years agoYaHTTP: Prevent integer overflow on very large chunks 13079/head
Remi Gacogne [Wed, 8 Mar 2023 17:25:30 +0000 (18:25 +0100)] 
YaHTTP: Prevent integer overflow on very large chunks

If the chunk_size is very close to the maximum value of an integer,
we trigger an integer overflow when checking if we have a trailing
newline after the payload.
Reported by OSS-Fuzz as:
https://oss-fuzz.com/testcase-detail/6439610474692608
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56804

(cherry picked from commit b602982fc5b4fb9139dec591541e0c070ceb47f5)

2 years agoWork around Red Hat 8 pooping the bed in OpenSSL's headers 13075/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)

2 years agoFix DoT test to no use www.powerdns.com, as it changed, backport of #12825 13058/head
Otto Moerbeek [Thu, 20 Jul 2023 15:00:22 +0000 (17:00 +0200)] 
Fix DoT test to no use www.powerdns.com, as it changed, backport of #12825

2 years agoBackport #13059: Don't check TTLs of records coming out of packet cache
Otto Moerbeek [Thu, 20 Jul 2023 13:32:04 +0000 (15:32 +0200)] 
Backport #13059: Don't check TTLs of records coming out of packet cache

2 years agoBackport 7d6cbd0823d2ebdede600dc034d852ba2c5f39c6
Otto Moerbeek [Thu, 20 Jul 2023 12:19:07 +0000 (14:19 +0200)] 
Backport 7d6cbd0823d2ebdede600dc034d852ba2c5f39c6

2 years agorec: Backport 13021 to rec-4.7.x: fix setting of policy tags
Otto Moerbeek [Thu, 20 Jul 2023 11:06:46 +0000 (13:06 +0200)] 
rec: Backport 13021 to rec-4.7.x: fix setting of policy tags

Backport of #13021

2 years agoMerge pull request #12701 from omoerbeek/rec-47-spoof rec-4.7.5
Otto Moerbeek [Wed, 29 Mar 2023 10:39:52 +0000 (12:39 +0200)] 
Merge pull request #12701 from omoerbeek/rec-47-spoof

rec: Backport 12699 to rec-4.7.x: Deterred spoofing attempts can lead to authoritative servers being marked unavailable

2 years agoMerge pull request #12633 from romeroalx/update-gh-actions-rec-4.7
Peter van Dijk [Fri, 24 Mar 2023 08:52:07 +0000 (09:52 +0100)] 
Merge pull request #12633 from romeroalx/update-gh-actions-rec-4.7

Backport GH Actions updates from master to rec-4.7.x

2 years agoPowerDNS Security Advisory 2023-02: Deterred spoofing attempts can lead to authoritat... 12701/head
Otto Moerbeek [Thu, 16 Mar 2023 07:37:37 +0000 (08:37 +0100)] 
PowerDNS Security Advisory 2023-02: Deterred spoofing attempts can lead to authoritative servers being marked unavailable (CVE-2023-26437)

2 years agoUse actions/cache@v3 12633/head
Josh Soref [Thu, 9 Mar 2023 15:47:41 +0000 (10:47 -0500)] 
Use actions/cache@v3

2 years agoUse actions/checkout@v3
Josh Soref [Thu, 9 Mar 2023 15:47:03 +0000 (10:47 -0500)] 
Use actions/checkout@v3

2 years agogh actions: simplified collector job in build-and-test-all.yml
Alexis Romero [Thu, 16 Feb 2023 05:54:23 +0000 (06:54 +0100)] 
gh actions: simplified collector job in build-and-test-all.yml

2 years agoAvoid Microsoft repo for ODBC. Step 1: codeql allow apt downgrades
Alexis Romero [Thu, 23 Feb 2023 10:03:30 +0000 (11:03 +0100)] 
Avoid Microsoft repo for ODBC. Step 1: codeql allow apt downgrades

2 years agoAvoid Microsoft repo for ODBC. Step 1: allow apt downgrades
Alexis Romero [Wed, 22 Feb 2023 10:48:28 +0000 (11:48 +0100)] 
Avoid Microsoft repo for ODBC. Step 1: allow apt downgrades

2 years agocodeql workflow: set ubuntu mirror
Peter van Dijk [Mon, 6 Feb 2023 10:41:18 +0000 (11:41 +0100)] 
codeql workflow: set ubuntu mirror

2 years agobuild-and-test-all: add functionality to quickly switch ubuntu mirrors
Peter van Dijk [Fri, 13 Jan 2023 10:06:14 +0000 (11:06 +0100)] 
build-and-test-all: add functionality to quickly switch ubuntu mirrors

2 years agoRestrict permissions for GITHUB_TOKEN in our workflows
Remi Gacogne [Thu, 1 Dec 2022 13:34:19 +0000 (14:34 +0100)] 
Restrict permissions for GITHUB_TOKEN in our workflows

Added using https://github.com/step-security/secure-workflows
For more information see:
- https://github.com/ossf/scorecard/blob/d8fefc9b246db3600c777e9d60d441d7c386ce1d/docs/checks.md#token-permissions
- https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/

2 years agobuild(deps): bump actions/setup-python from 2 to 4
dependabot[bot] [Wed, 19 Oct 2022 14:28:07 +0000 (14:28 +0000)] 
build(deps): bump actions/setup-python from 2 to 4

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoSwitch from set-output tot GITHUB_OUTPUT
Josh Soref [Tue, 6 Dec 2022 17:39:08 +0000 (12:39 -0500)] 
Switch from set-output tot GITHUB_OUTPUT

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2 years agobuild(deps): bump actions/upload-artifact from 1 to 3
dependabot[bot] [Wed, 19 Oct 2022 14:28:01 +0000 (14:28 +0000)] 
build(deps): bump actions/upload-artifact from 1 to 3

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 1 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump actions/download-artifact from 2 to 3
dependabot[bot] [Wed, 19 Oct 2022 14:27:58 +0000 (14:27 +0000)] 
build(deps): bump actions/download-artifact from 2 to 3

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump actions/checkout from 2.3.4 to 3.1.0
dependabot[bot] [Wed, 19 Oct 2022 14:44:55 +0000 (14:44 +0000)] 
build(deps): bump actions/checkout from 2.3.4 to 3.1.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.4...v3.1.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump actions/cache from 2 to 3.0.11
dependabot[bot] [Wed, 19 Oct 2022 14:28:05 +0000 (14:28 +0000)] 
build(deps): bump actions/cache from 2 to 3.0.11

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.0.11.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3.0.11)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #12238 from rgacogne/rec47-remove-binary-function
Otto Moerbeek [Mon, 28 Nov 2022 08:56:15 +0000 (09:56 +0100)] 
Merge pull request #12238 from rgacogne/rec47-remove-binary-function

rec-4.7.x: Stop using deprecated std::binary_function

2 years agorec-4.7.x: Stop using deprecated std::binary_function 12238/head
Remi Gacogne [Fri, 25 Nov 2022 17:42:53 +0000 (18:42 +0100)] 
rec-4.7.x: Stop using deprecated std::binary_function

2 years agoMerge pull request #12231 from omoerbeek/backport-12046-to-rec-4.7.x rec-4.7.4
Otto Moerbeek [Wed, 23 Nov 2022 09:13:10 +0000 (10:13 +0100)] 
Merge pull request #12231 from omoerbeek/backport-12046-to-rec-4.7.x

rec: Backport 12046 to rec-4.7.x: Fix compilation of the event ports multiplexer

2 years agoMerge pull request #12230 from omoerbeek/backport-12198-to-rec-4.7.x
Otto Moerbeek [Wed, 23 Nov 2022 09:12:54 +0000 (10:12 +0100)] 
Merge pull request #12230 from omoerbeek/backport-12198-to-rec-4.7.x

rec: Backport 12198 to rec-4.7.x: Correct skip record condition in processRecords.

2 years agoMerge pull request #12227 from omoerbeek/backport-12199-to-rec-4.7.x
Otto Moerbeek [Wed, 23 Nov 2022 09:12:35 +0000 (10:12 +0100)] 
Merge pull request #12227 from omoerbeek/backport-12199-to-rec-4.7.x

rec: Backport 12199 to rec-4.7.x: Also consider recursive forward in the "forwarded DS should not end up in negCache code."

2 years agoFix compilation of the event ports multiplexer 12231/head
Remi Gacogne [Fri, 30 Sep 2022 08:55:19 +0000 (10:55 +0200)] 
Fix compilation of the event ports multiplexer

Thanks to Jonathan Perkin for the patch!

(cherry picked from commit 7ea87a63ab48e938bdb8b73ebfde1ac6bc71704f)

2 years agoCorrect skip record condition in processRecords. 12230/head
Otto Moerbeek [Wed, 16 Nov 2022 12:49:59 +0000 (13:49 +0100)] 
Correct skip record condition in processRecords.

Noted the other day by @rgacogne

(cherry picked from commit d1321ff57909f8fb9d0bd7a20e3c4eb85a6b76e1)

2 years agoAlso consider recursive forward in the "forwarded DS should not end up in negCache... 12227/head
Otto Moerbeek [Wed, 16 Nov 2022 12:58:04 +0000 (13:58 +0100)] 
Also consider recursive forward in the "forwarded DS should not end up in negCache code."

With @rgacogne and @phonedph1
Fixes #12189

(cherry picked from commit af746aaf59a2e977bafabd5814635f59b01e5835)

2 years agoMerge pull request #12190 from omoerbeek/backport-12125-to-rec-4.7.x
Otto Moerbeek [Tue, 15 Nov 2022 10:21:23 +0000 (11:21 +0100)] 
Merge pull request #12190 from omoerbeek/backport-12125-to-rec-4.7.x

rec: Backport 12125 to rec 4.7.x: Timout handling for ixfrs as a client

2 years agoBetter wording in comment 12190/head
Otto Moerbeek [Thu, 3 Nov 2022 08:50:12 +0000 (09:50 +0100)] 
Better wording in comment

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
(cherry picked from commit 240460d77be35a6a1c1e6fa22364efe19dc3ee84)

2 years agoTimout handling for ixfrs as a client.
Otto Moerbeek [Mon, 24 Oct 2022 14:25:59 +0000 (16:25 +0200)] 
Timout handling for ixfrs as a client.

One complicating factor is that this is shared code, but auth and
rec do not agree on the definiton of the timeout value: auth states
it is a maximum idle time, while rec state it is the total xfr time.
While both apporaches make sense and in the end we would like to
enforce both, we now go for a more simple solution that respects
auth or rec behaviour based on a flag.

(cherry picked from commit fee334ae0f5083d47f9adc207d5a1a6d36ebc2ac)

2 years agoMerge pull request #12173 from omoerbeek/backport-12066-to-rec-4.7.x
Otto Moerbeek [Fri, 4 Nov 2022 13:08:38 +0000 (14:08 +0100)] 
Merge pull request #12173 from omoerbeek/backport-12066-to-rec-4.7.x

rec: Backport 12066 to rec 4.7.x: Detect invalid bytes in makeBytesFromHex()

2 years agoMerge pull request #12171 from omoerbeek/backport-12081-to-rec-4.7.x
Otto Moerbeek [Fri, 4 Nov 2022 13:08:26 +0000 (14:08 +0100)] 
Merge pull request #12171 from omoerbeek/backport-12081-to-rec-4.7.x

rec: Backport 12081 to re-4.7.x: Log invalid RPZ content when obtained via IXFR

2 years agoMerge pull request #12168 from omoerbeek/backport-12038-to-rec-4.7.x
Otto Moerbeek [Fri, 4 Nov 2022 13:08:14 +0000 (14:08 +0100)] 
Merge pull request #12168 from omoerbeek/backport-12038-to-rec-4.7.x

rec: Backport 12038 to rec-4.7.x: when an expired nsec3 entry is seen, move it to the front of the expiry queue

2 years agoApply Otto's suggestion 12173/head
Remi Gacogne [Thu, 6 Oct 2022 08:14:50 +0000 (10:14 +0200)] 
Apply Otto's suggestion

(cherry picked from commit 7f73a566805979f94bc1a23c9088372e00177bec)

2 years agomisc: Switch to a std::array in makeHexDump()
Remi Gacogne [Thu, 6 Oct 2022 07:56:47 +0000 (09:56 +0200)] 
misc: Switch to a std::array in makeHexDump()

(cherry picked from commit 8c7a1b8a671291e6ee2e7e4abdbdd41e9c714b31)

2 years agoauth: Detect invalid bytes in makeBytesFromHex()
Remi Gacogne [Thu, 6 Oct 2022 07:55:48 +0000 (09:55 +0200)] 
auth: Detect invalid bytes in makeBytesFromHex()

Also only allocate the required number of bytes, not twice that.

(cherry picked from commit 50953de897023742e43d3feab976b891be1c6e63)

2 years agorec: Log invalid RPZ content when obtained via IXFR 12171/head
Remi Gacogne [Mon, 10 Oct 2022 15:47:46 +0000 (17:47 +0200)] 
rec: Log invalid RPZ content when obtained via IXFR

That kind of content was properly logged and handled when received
during the initial loading (AXFR) but not when received via an
incremental update.

(cherry picked from commit 55a99233728fc01e3946a97fb8dbb073a3003622)

2 years agorec: when an expired nsec3 entry is seen, move it to the front of the expiry queue 12168/head
Otto Moerbeek [Wed, 28 Sep 2022 07:35:22 +0000 (09:35 +0200)] 
rec: when an expired nsec3 entry is seen, move it to the front of the expiry queue

(cherry picked from commit 05a4985708988eb10f9291a40406b205e7d5d5b2)

2 years agoMerge pull request #11977 from Habbie/backport-11961-to-rec-4.7.x
Peter van Dijk [Mon, 19 Sep 2022 17:56:49 +0000 (19:56 +0200)] 
Merge pull request #11977 from Habbie/backport-11961-to-rec-4.7.x

rec 4.7.x docker: upgrade to bullseye

2 years agodocker: upgrade to bullseye 11977/head
Peter van Dijk [Thu, 15 Sep 2022 13:14:34 +0000 (15:14 +0200)] 
docker: upgrade to bullseye

(cherry picked from commit a0d3acff25a92627186ee43bead110aef416f59a)

2 years agoMerge pull request #11947 from Habbie/backport-11788-to-rec-4.7.x rec-4.7.3
Peter van Dijk [Thu, 15 Sep 2022 06:23:02 +0000 (08:23 +0200)] 
Merge pull request #11947 from Habbie/backport-11788-to-rec-4.7.x

rec-4.7: add EL9+9stream targets

2 years agoadd 9-stream target and test it daily 11947/head
Peter van Dijk [Fri, 15 Jul 2022 14:27:22 +0000 (16:27 +0200)] 
add 9-stream target and test it daily

(cherry picked from commit f021d529629ef9dc7b7983b9d1c7e7ca589b6f13)

2 years agoadd el-9 target
Peter van Dijk [Wed, 13 Jul 2022 20:23:45 +0000 (22:23 +0200)] 
add el-9 target

(cherry picked from commit 4728ab89f071c0d5f596638614efb85a26fafdd4)

2 years agoMerge pull request #11936 from omoerbeek/backport-11904-to-rec-4.7.x
Otto Moerbeek [Mon, 12 Sep 2022 14:16:08 +0000 (16:16 +0200)] 
Merge pull request #11936 from omoerbeek/backport-11904-to-rec-4.7.x

rec: Backport 11904 to rec-4.7.x: For zones having many NS records, we are not interested in all so take a sample.

2 years agoMerge pull request #11940 from omoerbeek/backport-11890-to-rec-4.7.x
Otto Moerbeek [Mon, 12 Sep 2022 14:15:09 +0000 (16:15 +0200)] 
Merge pull request #11940 from omoerbeek/backport-11890-to-rec-4.7.x

rec: Backport 11890 to rec-4.7.x: Failure to retrieve DNSKEYs of an Insecure zone should not be fatal.

2 years agoFailure to retrieve DNSKEYs of an Insecure zone should not be fatal. 11940/head
Otto Moerbeek [Wed, 31 Aug 2022 08:34:18 +0000 (10:34 +0200)] 
Failure to retrieve DNSKEYs of an Insecure zone should not be fatal.

This issue happens if a record set is signed even though the zone
itself is Insecure. Syncres then tries to retrieve DNSKEYs and a
timeout on that would lead to an ImmediateServFailException.

Only throw exception later in validateRecordsWithSigs, after checking
zone cuts, when we are sure the zone is Secure.

(cherry picked from commit 6dc8b0b2c6fb2e628356f8dc5c5de4dfd919ec5d)

2 years agoFor zones having many NS records, we are not interested in all so take a sample. 11936/head
Otto Moerbeek [Tue, 6 Sep 2022 07:50:52 +0000 (09:50 +0200)] 
For zones having many NS records, we are not interested in all so take a sample.

(cherry picked from commit a49b0b40a0c1c1af9531b99e9266a8c2aa89cd68)

2 years agoMerge pull request #11897 from omoerbeek/backport-11848-to-rec-4.7.x
Otto Moerbeek [Fri, 9 Sep 2022 08:13:07 +0000 (10:13 +0200)] 
Merge pull request #11897 from omoerbeek/backport-11848-to-rec-4.7.x

rec: backport 11848 to rec-4.7.x: Also check qperq limit if throttling happened, as it increases counters.

2 years agoAlso check qperq limit if throttling happened, as it increases counters. 11897/head
Otto Moerbeek [Thu, 11 Aug 2022 12:30:48 +0000 (14:30 +0200)] 
Also check qperq limit if throttling happened, as it increases counters.

This condition would be caught when going out previously, so is
an optimisation, not a behaviour difference.

(cherry picked from commit c75d28f2b786b986ec10675e3c853a52eec11e37)

2 years agoMerge pull request #11879 from fredmorcos/backport-11850-to-rec-4.7.x
Otto Moerbeek [Wed, 24 Aug 2022 07:03:31 +0000 (09:03 +0200)] 
Merge pull request #11879 from fredmorcos/backport-11850-to-rec-4.7.x

Backport #11850 (Fix recursor not responsive after Lua config reload) to rec 4.7.x

2 years agoRec: Move FrameStreamServersInfo to rec-main 11879/head
Fred Morcos [Fri, 12 Aug 2022 11:25:25 +0000 (13:25 +0200)] 
Rec: Move FrameStreamServersInfo to rec-main

(cherry picked from commit 4354beb50caffdc4cb45ef3004402a780a0e2d81)

2 years agoRec: Asynchronously destroy old connections to dnstap servers
Fred Morcos [Thu, 11 Aug 2022 13:35:29 +0000 (15:35 +0200)] 
Rec: Asynchronously destroy old connections to dnstap servers

With @omoerbeek

Closes #11795

(cherry picked from commit 2e0757d5c661c124b58ac69e91da440ad9705c62)

2 years agoRec: Don't reload Lua config if it hasn't changed
Fred Morcos [Thu, 11 Aug 2022 13:27:38 +0000 (15:27 +0200)] 
Rec: Don't reload Lua config if it hasn't changed

This also groups together 1) the list of frame stream servers, 2) the config from which
the list was created and 3) the config's generation into a single struct called
FrameStreamServersInfo. The struct is used to compare the old and new configuration to
decide whether to destroy the old config object or not.

Part of #11795

(cherry picked from commit afaf1b5d87c4a4961eadaf114855a335711c33c8)

2 years agoMerge pull request #11847 from omoerbeek/backport-11843-to-rec-4.7.x
Otto Moerbeek [Tue, 23 Aug 2022 11:18:39 +0000 (13:18 +0200)] 
Merge pull request #11847 from omoerbeek/backport-11843-to-rec-4.7.x

rec: backport 11843 to rec-4.7.x: Clear the caches *after* loading authzones.

2 years agoMerge pull request #11774 from omoerbeek/backport-11773-to-rec-4.7.x
Otto Moerbeek [Tue, 23 Aug 2022 11:18:23 +0000 (13:18 +0200)] 
Merge pull request #11774 from omoerbeek/backport-11773-to-rec-4.7.x

rec: Backport 11773 to rec-4.7.x: Resize answer length to actual received length in udpQueryResponse

2 years agoMerge pull request #11877 from omoerbeek/rec-backport-to-rec-4.7.x-pb-size rec-4.7.2
Otto Moerbeek [Tue, 23 Aug 2022 10:17:35 +0000 (12:17 +0200)] 
Merge pull request #11877 from omoerbeek/rec-backport-to-rec-4.7.x-pb-size

Backport of protobuf PSA 2022-02 (CVE-2022-37428) to rec-4.7.x

3 years agoClear the caches *after* loading authzones. 11847/head
Otto Moerbeek [Wed, 10 Aug 2022 11:30:24 +0000 (13:30 +0200)] 
Clear the caches *after* loading authzones.

(cherry picked from commit 799114529470923a5e633dadc47b59c4e2a7e220)

3 years agoBackport of protobuf PSA 2022-02 (CVE-2022-37428) to rec-4.7.x 11877/head
Otto Moerbeek [Wed, 3 Aug 2022 13:30:44 +0000 (15:30 +0200)] 
Backport of protobuf PSA 2022-02 (CVE-2022-37428) to rec-4.7.x

3 years agoAdd regression test for #11771 (lenght of annswer in udpQueryResponse) 11774/head
Otto Moerbeek [Mon, 11 Jul 2022 08:22:43 +0000 (10:22 +0200)] 
Add regression test for #11771 (lenght of annswer in udpQueryResponse)

(cherry picked from commit 8ca70105ddd6fda10e98b6d3d8cb67523ebc81e1)

3 years agoRec: Resize answer length to actual received length in udpQueryResponse
Otto Moerbeek [Mon, 11 Jul 2022 08:21:48 +0000 (10:21 +0200)] 
Rec: Resize answer length to actual received length in udpQueryResponse

Fixes #11771

(cherry picked from commit cbb5ac45a90e4109ff1f8536bf5d99aafd62ef0c)

3 years agoMerge pull request #11750 from omoerbeek/backport-11726-to-rec-4.7.x rec-4.7.1
Otto Moerbeek [Tue, 5 Jul 2022 07:08:15 +0000 (09:08 +0200)] 
Merge pull request #11750 from omoerbeek/backport-11726-to-rec-4.7.x

rec: Backport 11726 to rec 4.7.x: Convert generic format while parsing zone files for ZoneToCache

3 years agoMerge pull request #11748 from omoerbeek/backport-11692-to-rec-4.7.x
Otto Moerbeek [Tue, 5 Jul 2022 07:08:04 +0000 (09:08 +0200)] 
Merge pull request #11748 from omoerbeek/backport-11692-to-rec-4.7.x

rec: Backport 11692 to rec-4.7.x: Run tasks from houskeeping thread in a proper way.

3 years agoMerge pull request #11747 from omoerbeek/backport-11641-to-rec-4.7.x
Otto Moerbeek [Tue, 5 Jul 2022 07:07:53 +0000 (09:07 +0200)] 
Merge pull request #11747 from omoerbeek/backport-11641-to-rec-4.7.x

rec: Backport 11641 to rec-4.7.x: Move to v2 for CodeQL action, v1 will be deprecated dec 2022

3 years agoAvoid log spam 11750/head
Otto Moerbeek [Mon, 4 Jul 2022 13:28:54 +0000 (15:28 +0200)] 
Avoid log spam

3 years agoFormatting
Otto Moerbeek [Mon, 27 Jun 2022 09:25:06 +0000 (11:25 +0200)] 
Formatting

(cherry picked from commit 83a2c32ef314bb2818bdbdecb2a183870b9c1664)

3 years agoUpdate structured logging for exceptions to be in line with rest of code
Otto Moerbeek [Mon, 27 Jun 2022 09:16:44 +0000 (11:16 +0200)] 
Update structured logging for exceptions to be in line with rest of code

(cherry picked from commit c85af1d0f0b560d1ed4150ba6d56b06eb290c913)

3 years agoConvert generic format while parsing zone files for ZoneToCache.
Otto Moerbeek [Mon, 27 Jun 2022 09:07:45 +0000 (11:07 +0200)] 
Convert generic format while parsing zone files for ZoneToCache.

Fixes #11724

(cherry picked from commit 52b2a1f2025906b34b8ac207c349773cf4e4b255)

3 years agoMerge pull request #11740 from Habbie/backport-11735-to-rec-4.7.x
Otto Moerbeek [Mon, 4 Jul 2022 12:53:26 +0000 (14:53 +0200)] 
Merge pull request #11740 from Habbie/backport-11735-to-rec-4.7.x

rec-4.7: dh_builddeb: force gzip compression, thanks Zash!

3 years agoRun tasks from houskeeping thread in a proper way. 11748/head
Otto Moerbeek [Fri, 10 Jun 2022 13:39:36 +0000 (15:39 +0200)] 
Run tasks from houskeeping thread in a proper way.

Previously, this was only done if log-common-errors was true, due
to argument reversal.  In general task *would* be executed, as they
are also run after each query processed by SyncRes (so not after
packet cache hits).

Thanks to @jelu!

(cherry picked from commit c42b6632e00eaa93911ce88a0b4aa8c598441e2a)

3 years agoMove to v2 for CodeQL action, v1 will be deprecated dec 2022 11747/head
Otto Moerbeek [Tue, 24 May 2022 10:36:28 +0000 (12:36 +0200)] 
Move to v2 for CodeQL action, v1 will be deprecated dec 2022

(cherry picked from commit a0c99342e7aa22e16a75d9e7daa4de69d087bc38)

3 years agodh_builddeb: force gzip compression, thanks Zash! 11740/head
Peter van Dijk [Thu, 30 Jun 2022 11:51:00 +0000 (13:51 +0200)] 
dh_builddeb: force gzip compression, thanks Zash!

(cherry picked from commit bbfa37c0232b56e2227668717dbb97ce4f01d990)

3 years agoMerge pull request #11699 from Habbie/backport-11658-to-rec-4.7.x
Otto Moerbeek [Fri, 17 Jun 2022 11:05:40 +0000 (13:05 +0200)] 
Merge pull request #11699 from Habbie/backport-11658-to-rec-4.7.x

rec-4.7.x: protobuf: use python implementation during tests

3 years agoprotobuf: use python implementation during tests 11699/head
Peter van Dijk [Tue, 31 May 2022 10:13:57 +0000 (12:13 +0200)] 
protobuf: use python implementation during tests

(cherry picked from commit 2dd4d60b8103a64c796296647ad7b45226d5a5bd)

3 years agoMerge pull request #11645 from omoerbeek/backport-11644-to-rec-4.7.x rec-4.7.0
Otto Moerbeek [Wed, 25 May 2022 08:31:04 +0000 (10:31 +0200)] 
Merge pull request #11645 from omoerbeek/backport-11644-to-rec-4.7.x

rec: Backport 11644 to rec-4.7.x: Deprecation warning for XPF settings.

3 years agoDeprecation warning for XPF settings. 11645/head
Otto Moerbeek [Wed, 25 May 2022 07:45:08 +0000 (09:45 +0200)] 
Deprecation warning for XPF settings.

(cherry picked from commit 7e32a0b96df460abd8fb98fbb63f4d336b9c3d03)

Backport of #11644

3 years agoMerge pull request #11632 from omoerbeek/backport-11609-to-rec-4.7.x
Otto Moerbeek [Tue, 24 May 2022 06:23:54 +0000 (08:23 +0200)] 
Merge pull request #11632 from omoerbeek/backport-11609-to-rec-4.7.x

rec: Backport 11609 to rec 4.7.x: Fix API issue when asking config values for allow-from or allow-notiy-from

3 years agoMerge pull request #11635 from omoerbeek/backport-11570-to-rec-4.7.x
Otto Moerbeek [Mon, 23 May 2022 13:02:38 +0000 (15:02 +0200)] 
Merge pull request #11635 from omoerbeek/backport-11570-to-rec-4.7.x

rec: Backport 11570 Reduce make -j parameter from 8 to 4, as dnsdist does.

3 years agoReduce make -j parameter from 8 to 4, as dnsdist does. 11635/head
Otto Moerbeek [Fri, 22 Apr 2022 09:02:12 +0000 (11:02 +0200)] 
Reduce make -j parameter from 8 to 4, as dnsdist does.

This might fix the occasional build issues with the CodeQL GH Action.

(cherry picked from commit d6b94fbd9664a7acac00f5dd8ebbacc4119ed045)

3 years agoDocument meaning of empty allow-from 11632/head
Otto Moerbeek [Fri, 6 May 2022 09:54:23 +0000 (11:54 +0200)] 
Document meaning of empty allow-from

(cherry picked from commit a75c8e8019462827dae4599b6a24ef7a0645c30c)

3 years agoAdd tests for empty allow-from and allow-notify-from case
Otto Moerbeek [Thu, 5 May 2022 08:19:47 +0000 (10:19 +0200)] 
Add tests for empty allow-from and allow-notify-from case

(cherry picked from commit bfa1ae26f5c174d6fe237dc0ed9d08043518648f)

3 years agoFix API issue when asking config values for allow-from or allow-notify-from
Otto Moerbeek [Thu, 5 May 2022 08:04:20 +0000 (10:04 +0200)] 
Fix API issue when asking config values for allow-from or allow-notify-from

(cherry picked from commit 3aa876deef257fc6d63da32df0742ed8cf91aaa1)

3 years agoMerge pull request #11559 from omoerbeek/backport-11539-to-rec-4.7.x rec-4.7.0-rc1
Otto Moerbeek [Tue, 26 Apr 2022 10:20:00 +0000 (12:20 +0200)] 
Merge pull request #11559 from omoerbeek/backport-11539-to-rec-4.7.x

rec: Backport 11539 to rec 4.7.x: DNSSEC counters track responses sent, not actual validations performed

3 years agoMerge pull request #11560 from omoerbeek/backport-11541-to-rec-4.7.x
Otto Moerbeek [Wed, 20 Apr 2022 14:26:03 +0000 (16:26 +0200)] 
Merge pull request #11560 from omoerbeek/backport-11541-to-rec-4.7.x

rec: Backport 11541 to rec 4.7.x: fix DoT port for probed authoritative servers

3 years agoMerge pull request #11558 from omoerbeek/backport-11529-to-rec-4.7.x
Otto Moerbeek [Wed, 20 Apr 2022 14:25:49 +0000 (16:25 +0200)] 
Merge pull request #11558 from omoerbeek/backport-11529-to-rec-4.7.x

rec: Backport of #11529: Zap a leftover debug line in test code

3 years agoDecide to use Dot earlier. 11560/head
Otto Moerbeek [Tue, 19 Apr 2022 07:57:23 +0000 (09:57 +0200)] 
Decide to use Dot earlier.

To keep the nsspeed table good, we need to decide to use DoT earlier.
Now the lookup and updats of the speed table occur in a proper way
(using the port that is actually used for the connetion) and when
we switch from/to DoT, the old nsspeeds are cleared by the already
existing code.

(cherry picked from commit dc777d96b2fedd5a33fbb94a8571ba1c0d11d284)

3 years agoMissing newline in dump output, noted by ph1
Otto Moerbeek [Thu, 14 Apr 2022 19:36:47 +0000 (21:36 +0200)] 
Missing newline in dump output, noted by ph1

(cherry picked from commit a8bd214e7c2a9ad357beae27378f59f3007578bf)

3 years agoFix port, as noted by ph1 on IRC
Otto Moerbeek [Thu, 14 Apr 2022 17:44:06 +0000 (19:44 +0200)] 
Fix port, as noted by ph1 on IRC

Without this, probed DoT actually becomes regular TCP.

(cherry picked from commit 9bea6fe3ee133b0075d34c30739298679393636e)

3 years agorec: Fix DNSSEC counters description in web/prometheus as well 11559/head
Remi Gacogne [Fri, 15 Apr 2022 09:15:02 +0000 (11:15 +0200)] 
rec: Fix DNSSEC counters description in web/prometheus as well

(cherry picked from commit d76a66060f94ccac92db5cee691f0f4bb1cde022)

3 years agorec: DNSSEC counters track responses sent, not actual validations performed
Remi Gacogne [Thu, 14 Apr 2022 15:20:15 +0000 (17:20 +0200)] 
rec: DNSSEC counters track responses sent, not actual validations performed

Since 4.1 these counters are updated for every response sent, even if the DNSSEC
status was fetched from the records cache and did not involve any actual
validation.

(cherry picked from commit 3aebcb3af2cea8f85502fe070ece1da6a531f85e)

3 years agoZap a leftover debug line in test code 11558/head
Otto Moerbeek [Wed, 13 Apr 2022 11:58:27 +0000 (13:58 +0200)] 
Zap a leftover debug line in test code

(cherry picked from commit ae901eb52569bc9eca6c4e871a3fc808c7e19002)