]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
12 months agodnsdist: Avoid a double lookup when UMEM state debugging is enabled 14429/head
Remi Gacogne [Fri, 12 Jul 2024 09:49:44 +0000 (11:49 +0200)] 
dnsdist: Avoid a double lookup when UMEM state debugging is enabled

12 months agodnsdist: Set the shared XSK frames in the XskWorker constructor
Remi Gacogne [Fri, 12 Jul 2024 07:41:53 +0000 (09:41 +0200)] 
dnsdist: Set the shared XSK frames in the XskWorker constructor

12 months agodnsdist: Fix wrong assertions in AF_XDP/XSK code
Remi Gacogne [Tue, 9 Jul 2024 08:33:48 +0000 (10:33 +0200)] 
dnsdist: Fix wrong assertions in AF_XDP/XSK code

12 months agodnsdist: Fix code formatting
Remi Gacogne [Mon, 8 Jul 2024 12:58:20 +0000 (14:58 +0200)] 
dnsdist: Fix code formatting

12 months agodnsdist: Make the code used to debug UMEM issues work with multiple queues
Remi Gacogne [Mon, 8 Jul 2024 12:47:54 +0000 (14:47 +0200)] 
dnsdist: Make the code used to debug UMEM issues work with multiple queues

12 months agodnsdist: Fix a data race in the AF_XDP/XSK dnsdist <-> backend code
Remi Gacogne [Mon, 8 Jul 2024 12:43:21 +0000 (14:43 +0200)] 
dnsdist: Fix a data race in the AF_XDP/XSK dnsdist <-> backend code

The existing code was sharing the same XskWorker between the thread
handling incoming queries (possibly replying right away for
self-answered and cache hit responses) and the one handling responses
coming from a backend (without XSK), which is wrong since the internal
queues are single-producer (and single consumer, but a worker is only
assigned to a single XskRouter which is OK).
This commit introduces a new, separate worker for the threads handling
responses coming from a backend without XSK (it was already the case
for responses coming from a backend via XSK). The new worker is marked
"outgoing-only" to ensure we are not confused about what it can be used
for, which is only sending packets, not receiving any.

12 months agodnsdist: Fix a race in the XSK/AF_XDP backend handling code
Remi Gacogne [Thu, 4 Jul 2024 15:16:54 +0000 (17:16 +0200)] 
dnsdist: Fix a race in the XSK/AF_XDP backend handling code

For performance reasons we used to keep a local list of available frames
in our `XskWorker` object, like we are doing in the `XskSocket` one,
to avoid having to go to the shared list which is protected by a lock.
Unfortunately, while it works well for the `XskSocket` because it is
accessed by a single `XskRouter` thread, the `XskWorker` object can
be accessed by multiple threads at once: `XskResponderThread`,
`responderThread`, `XskClientThread` and `XskRouter`. Most of the
time these threads do not acquire nor release frames to the local
list, but `responderThread` does acquire one when a response frame
is punted to the regular networking stack, and all of them release
frames when an unexpected condition occurs, for example when a queue
is full. This leads to memory corruption and to a crash.

This commit gets rid of the local list of frames in the `XskWorker`
object, acquiring and releasing them to the shared list instead, since
performance in these cases is likely not as critical. If it turns out
to be too slow, we can look into caching a few frames in a thread-local
list, but then we need to be careful not to hold on them indefinitely
which might be tricky.

12 months agoMerge pull request #14419 from omoerbeek/followup-14327
Otto Moerbeek [Thu, 4 Jul 2024 12:29:05 +0000 (14:29 +0200)] 
Merge pull request #14419 from omoerbeek/followup-14327

Fix compile error on OPENSSL_VERSION_MAJOR < 3

12 months agoFix compile error on OPENSSL_VERSION_MAJOR < 3 14419/head
Otto Moerbeek [Thu, 4 Jul 2024 11:56:21 +0000 (13:56 +0200)] 
Fix compile error on OPENSSL_VERSION_MAJOR < 3

../pdns/libssl.cc:637:28: error: no member named 'content' in 'OpenSSLTLSTicketKey'

12 months agoMerge pull request #14327 from chbruyand/dnsdist-tickets-key-hook
Remi Gacogne [Thu, 4 Jul 2024 11:17:32 +0000 (13:17 +0200)] 
Merge pull request #14327 from chbruyand/dnsdist-tickets-key-hook

dnsdist: add support for a callback when a new tickets key is added

12 months agodnsdist: Use a narrower scope for tickets_key_added_hook 14327/head
Remi Gacogne [Thu, 4 Jul 2024 10:09:51 +0000 (12:09 +0200)] 
dnsdist: Use a narrower scope for tickets_key_added_hook

12 months agodnsdist: Use a recursive mutex for the Lua lock
Remi Gacogne [Wed, 3 Jul 2024 12:25:39 +0000 (14:25 +0200)] 
dnsdist: Use a recursive mutex for the Lua lock

12 months agodnsdist: fix build of dnsdist least version
Charles-Henri Bruyand [Wed, 3 Jul 2024 11:23:30 +0000 (13:23 +0200)] 
dnsdist: fix build of dnsdist least version

12 months agodnsdist: fix gnutls lib flags
Charles-Henri Bruyand [Wed, 3 Jul 2024 11:22:57 +0000 (13:22 +0200)] 
dnsdist: fix gnutls lib flags

12 months agoMerge pull request #14409 from fredmorcos/various-cleanups
Fred Morcos [Wed, 3 Jul 2024 09:37:03 +0000 (11:37 +0200)] 
Merge pull request #14409 from fredmorcos/various-cleanups

Various cleanups

12 months agoMerge pull request #14401 from omoerbeek/rec-prep-20240703
Otto Moerbeek [Wed, 3 Jul 2024 09:00:52 +0000 (11:00 +0200)] 
Merge pull request #14401 from omoerbeek/rec-prep-20240703

rec: Prep for rec-4.9.7 and 5.0.7 releases

12 months agoSome formatting of pdnsutil.cc 14409/head
Fred Morcos [Tue, 2 Jul 2024 20:21:28 +0000 (22:21 +0200)] 
Some formatting of pdnsutil.cc

12 months agoFix missing includes in lua2api2.hh
Fred Morcos [Tue, 2 Jul 2024 20:20:33 +0000 (22:20 +0200)] 
Fix missing includes in lua2api2.hh

12 months agodndist: apply Remi's comments, thanks
Charles-Henri Bruyand [Tue, 2 Jul 2024 13:41:18 +0000 (15:41 +0200)] 
dndist: apply Remi's comments, thanks

12 months agotidy
Charles-Henri Bruyand [Fri, 28 Jun 2024 08:52:01 +0000 (10:52 +0200)] 
tidy

13 months agoCleanup geoipbackend.cc
Fred Morcos [Tue, 2 Jul 2024 20:20:04 +0000 (22:20 +0200)] 
Cleanup geoipbackend.cc

13 months agoCleanup dnspacket.cc
Fred Morcos [Tue, 2 Jul 2024 20:19:34 +0000 (22:19 +0200)] 
Cleanup dnspacket.cc

13 months agoFormatting and minor fix in misc.hh
Fred Morcos [Tue, 2 Jul 2024 20:19:17 +0000 (22:19 +0200)] 
Formatting and minor fix in misc.hh

13 months agoFix config.h include in opensslsigners
Fred Morcos [Tue, 2 Jul 2024 20:18:55 +0000 (22:18 +0200)] 
Fix config.h include in opensslsigners

13 months agoMerge pull request #14408 from omoerbeek/rec-throttle-reason
Otto Moerbeek [Tue, 2 Jul 2024 13:59:12 +0000 (15:59 +0200)] 
Merge pull request #14408 from omoerbeek/rec-throttle-reason

Rec throttle reason

13 months agoMerge pull request #14406 from Habbie/daily-build-el-7
Peter van Dijk [Tue, 2 Jul 2024 13:02:49 +0000 (15:02 +0200)] 
Merge pull request #14406 from Habbie/daily-build-el-7

daily package build: use el-7 target instead of centos-7

13 months agoReformat 14408/head
Otto Moerbeek [Tue, 2 Jul 2024 12:47:50 +0000 (14:47 +0200)] 
Reformat

13 months agoMerge pull request #14404 from omoerbeek/yahttp-router
Otto Moerbeek [Tue, 2 Jul 2024 12:21:55 +0000 (14:21 +0200)] 
Merge pull request #14404 from omoerbeek/yahttp-router

Yahttp router: appease coverity wrt unsigned underflow in match()

13 months agoMerge pull request #14343 from PowerDNS/dependabot/github_actions/docker/build-push...
Remi Gacogne [Tue, 2 Jul 2024 12:16:24 +0000 (14:16 +0200)] 
Merge pull request #14343 from PowerDNS/dependabot/github_actions/docker/build-push-action-6

Bump docker/build-push-action from 5 to 6

13 months agoMerge pull request #14407 from PowerDNS/dependabot/pip/pdns/dnsdistdist/docs/urllib3...
Remi Gacogne [Tue, 2 Jul 2024 12:02:31 +0000 (14:02 +0200)] 
Merge pull request #14407 from PowerDNS/dependabot/pip/pdns/dnsdistdist/docs/urllib3-2.2.2

build(deps): bump urllib3 from 2.2.0 to 2.2.2 in /pdns/dnsdistdist/docs

13 months agoRemember reason we're throttling
Otto Moerbeek [Fri, 28 Jun 2024 14:01:51 +0000 (16:01 +0200)] 
Remember reason we're throttling

13 months agobuild(deps): bump urllib3 from 2.2.0 to 2.2.2 in /pdns/dnsdistdist/docs 14407/head
dependabot[bot] [Tue, 2 Jul 2024 11:17:47 +0000 (11:17 +0000)] 
build(deps): bump urllib3 from 2.2.0 to 2.2.2 in /pdns/dnsdistdist/docs

Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.0 to 2.2.2.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.2.0...2.2.2)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
13 months agodaily package build: use el-7 target instead of centos-7 14406/head
Peter van Dijk [Tue, 2 Jul 2024 11:17:16 +0000 (13:17 +0200)] 
daily package build: use el-7 target instead of centos-7

13 months agoMerge pull request #14399 from rgacogne/pkgs-slsa-dir
Remi Gacogne [Tue, 2 Jul 2024 11:16:38 +0000 (13:16 +0200)] 
Merge pull request #14399 from rgacogne/pkgs-slsa-dir

build-packages: Upload SLSA attestations to the right directory

13 months agoMerge pull request #14396 from omoerbeek/tidy-20240627
Otto Moerbeek [Tue, 2 Jul 2024 11:09:03 +0000 (13:09 +0200)] 
Merge pull request #14396 from omoerbeek/tidy-20240627

Tidy sstuf.hh and shuffle.??

13 months agoAvoid upos underflowing in match loop 14404/head
Otto Moerbeek [Tue, 2 Jul 2024 10:22:29 +0000 (12:22 +0200)] 
Avoid upos underflowing in match loop

13 months agono else block after break statement
Otto Moerbeek [Tue, 2 Jul 2024 10:20:48 +0000 (12:20 +0200)] 
no else block after break statement

13 months agoMerge pull request #14400 from Habbie/el7-on-ol7
Peter van Dijk [Tue, 2 Jul 2024 10:17:15 +0000 (12:17 +0200)] 
Merge pull request #14400 from Habbie/el7-on-ol7

switch el7 builds to Oracle Linux 7

13 months agoPrep for rec-4.9.7 and 5.0.7 releases 14401/head
Otto Moerbeek [Tue, 2 Jul 2024 07:46:10 +0000 (09:46 +0200)] 
Prep for rec-4.9.7 and 5.0.7 releases

13 months agoAlso convert callers of readWithTimeout(), as suggested by @rgacogne 14396/head
Otto Moerbeek [Tue, 2 Jul 2024 10:02:52 +0000 (12:02 +0200)] 
Also convert callers of readWithTimeout(), as suggested by @rgacogne

13 months agoswitch el7 builds to Oracle Linux 7 14400/head
Peter van Dijk [Tue, 2 Jul 2024 09:19:31 +0000 (11:19 +0200)] 
switch el7 builds to Oracle Linux 7

13 months agobuild-packages: Upload SLSA attestations to the right directory 14399/head
Remi Gacogne [Tue, 2 Jul 2024 07:41:28 +0000 (09:41 +0200)] 
build-packages: Upload SLSA attestations to the right directory

13 months agoUntemplatize Throttle class
Otto Moerbeek [Fri, 28 Jun 2024 13:17:59 +0000 (15:17 +0200)] 
Untemplatize Throttle class

13 months agoTidy sstuff.hh
Otto Moerbeek [Wed, 26 Jun 2024 13:32:52 +0000 (15:32 +0200)] 
Tidy sstuff.hh

Note the readWithTimeout() return type change to make things more consistent
Plus some asserted things that caught my eye.

13 months agoMerge pull request #14395 from rgacogne/ddist-dedup-prometheus-help-type-custom-labels
Remi Gacogne [Fri, 28 Jun 2024 09:28:19 +0000 (11:28 +0200)] 
Merge pull request #14395 from rgacogne/ddist-dedup-prometheus-help-type-custom-labels

dnsdist: Dedup Prometheus help and type lines for custom metrics with labels

13 months agodnsdist: Do not implicitly convert count()'s `size_type` to `bool` 14395/head
Remi Gacogne [Fri, 28 Jun 2024 08:51:30 +0000 (10:51 +0200)] 
dnsdist: Do not implicitly convert count()'s `size_type` to `bool`

13 months agodnsdist: Dedup Prometheus help and type lines for custom metrics with labels
Remi Gacogne [Fri, 28 Jun 2024 08:45:56 +0000 (10:45 +0200)] 
dnsdist: Dedup Prometheus help and type lines for custom metrics with labels

13 months agoMerge pull request #14376 from rgacogne/ddist-upstatus-race
Remi Gacogne [Fri, 28 Jun 2024 08:33:26 +0000 (10:33 +0200)] 
Merge pull request #14376 from rgacogne/ddist-upstatus-race

dnsdist: Fix a race when accessing a backend health status

13 months agoMerge pull request #14392 from rgacogne/ddist-quiche-0.22.0
Remi Gacogne [Fri, 28 Jun 2024 08:33:07 +0000 (10:33 +0200)] 
Merge pull request #14392 from rgacogne/ddist-quiche-0.22.0

dnsdist: Handle Quiche >= 0.22.0

13 months agodnsdist: make sure to acquire lua context lock before calling TicketsKeyAdded callback
Charles-Henri Bruyand [Fri, 28 Jun 2024 08:26:49 +0000 (10:26 +0200)] 
dnsdist: make sure to acquire lua context lock before calling TicketsKeyAdded callback

13 months agoMerge pull request #14393 from rgacogne/port-mask
Remi Gacogne [Fri, 28 Jun 2024 07:54:30 +0000 (09:54 +0200)] 
Merge pull request #14393 from rgacogne/port-mask

AddressAndPortRange: Make it clearer only low-order bits matter to us

13 months agodnsdist: Be consistent when accessing a backend health status 14376/head
Remi Gacogne [Fri, 28 Jun 2024 07:53:26 +0000 (09:53 +0200)] 
dnsdist: Be consistent when accessing a backend health status

13 months agoMerge pull request #14387 from omoerbeek/tidy-20240626
Otto Moerbeek [Fri, 28 Jun 2024 05:46:24 +0000 (07:46 +0200)] 
Merge pull request #14387 from omoerbeek/tidy-20240626

Tidy lock.hh, cachecleaner.hh and sholder.hh

13 months agoMerge pull request #14386 from omoerbeek/rec-coverity-1544951
Otto Moerbeek [Fri, 28 Jun 2024 05:46:07 +0000 (07:46 +0200)] 
Merge pull request #14386 from omoerbeek/rec-coverity-1544951

rec: Fix coverity 1544951 copy_instead_of_move

13 months agoMerge pull request #14385 from omoerbeek/tidy-axfrtimeout
Otto Moerbeek [Fri, 28 Jun 2024 05:45:50 +0000 (07:45 +0200)] 
Merge pull request #14385 from omoerbeek/tidy-axfrtimeout

Tidy AXFRRetriever::timeoutReadn

13 months agoAddressAndPortRange: Make it clearer only low-order bits matter to us 14393/head
Remi Gacogne [Thu, 27 Jun 2024 14:27:54 +0000 (16:27 +0200)] 
AddressAndPortRange: Make it clearer only low-order bits matter to us

Hopefully Coverity will take the hint.

13 months agodnsdist: Handle Quiche >= 0.22.0 14392/head
Remi Gacogne [Thu, 27 Jun 2024 14:07:20 +0000 (16:07 +0200)] 
dnsdist: Handle Quiche >= 0.22.0

Quiche broke its existing API in 0.22.0: https://github.com/cloudflare/quiche/pull/1726
This pull request adds m4 code to detect whether the Quiche version
we are building against is >= 0.22.0, and if it is defines
`HAVE_QUICHE_STREAM_ERROR_CODES` which is later used by the code
using Quiche to know which version of the API to use.

13 months agodnsdist: move the setTicketsKeyAddedHook to a unique callback for every tls context
Charles-Henri Bruyand [Thu, 27 Jun 2024 13:02:39 +0000 (15:02 +0200)] 
dnsdist: move the setTicketsKeyAddedHook to a unique callback for every tls context

13 months agodnsdist: add support for a callback when a new tickets key is added to the tls context
Charles-Henri Bruyand [Fri, 14 Jun 2024 15:34:04 +0000 (17:34 +0200)] 
dnsdist: add support for a callback when a new tickets key is added to the tls context

13 months agoMerge pull request #14368 from omoerbeek/auth-odbc-build
Fred Morcos [Wed, 26 Jun 2024 13:13:08 +0000 (15:13 +0200)] 
Merge pull request #14368 from omoerbeek/auth-odbc-build

auth: allow -lodbc in a non-standard location

13 months agoFormat sstuff.hh
Otto Moerbeek [Wed, 26 Jun 2024 12:57:19 +0000 (14:57 +0200)] 
Format sstuff.hh

13 months agoTidy shuffle.cc
Otto Moerbeek [Wed, 26 Jun 2024 12:53:33 +0000 (14:53 +0200)] 
Tidy shuffle.cc

13 months agoMerge pull request #14384 from omoerbeek/rec-debian-lua
Otto Moerbeek [Wed, 26 Jun 2024 12:37:17 +0000 (14:37 +0200)] 
Merge pull request #14384 from omoerbeek/rec-debian-lua

rec: keep Lua config for now as existing configs might use it

13 months agoMerge pull request #14388 from omoerbeek/auth-followup-14370
Otto Moerbeek [Wed, 26 Jun 2024 12:34:08 +0000 (14:34 +0200)] 
Merge pull request #14388 from omoerbeek/auth-followup-14370

auth: followup to 14370: add boost depedendency

13 months agoUpdate meson.build 14388/head
Otto Moerbeek [Wed, 26 Jun 2024 12:00:48 +0000 (14:00 +0200)] 
Update meson.build

Co-authored-by: Fred Morcos <fm@fredmorcos.com>
13 months agoauth: followup to 14370: add boost depedendency
Otto Moerbeek [Wed, 26 Jun 2024 11:23:31 +0000 (13:23 +0200)] 
auth: followup to 14370: add boost depedendency

13 months agorec: keep Lua config as existing configs might use it 14384/head
Otto Moerbeek [Tue, 25 Jun 2024 14:31:48 +0000 (16:31 +0200)] 
rec: keep Lua config as existing configs might use it

13 months agoMerge pull request #14370 from fredmorcos/fix-lmdb-backend-symbols
Fred Morcos [Wed, 26 Jun 2024 10:22:28 +0000 (12:22 +0200)] 
Merge pull request #14370 from fredmorcos/fix-lmdb-backend-symbols

Fix the LMDB backend not finding symbols in `pdns-auth` and `pdns-auth-util`

13 months agoTidy 14387/head
Otto Moerbeek [Wed, 26 Jun 2024 09:53:57 +0000 (11:53 +0200)] 
Tidy

13 months agoReformat
Otto Moerbeek [Wed, 26 Jun 2024 09:37:23 +0000 (11:37 +0200)] 
Reformat

13 months agoFix coverity 1544951 copy_instead_of_move 14386/head
Otto Moerbeek [Wed, 26 Jun 2024 08:13:28 +0000 (10:13 +0200)] 
Fix coverity 1544951 copy_instead_of_move

13 months agoTidy AXFRRetriever::timeoutReadn 14385/head
Otto Moerbeek [Wed, 26 Jun 2024 08:06:25 +0000 (10:06 +0200)] 
Tidy AXFRRetriever::timeoutReadn

Including a fix to timeout potentially underflowing.
Coverity complains about n (now called bytesRead) overflowing, but that's a false positive, as numread is bounded.

13 months agoMerge pull request #14381 from omoerbeek/readn2-cleanup
Otto Moerbeek [Tue, 25 Jun 2024 14:12:15 +0000 (16:12 +0200)] 
Merge pull request #14381 from omoerbeek/readn2-cleanup

Cleanup read2n and mark unixDie as [[noreturn]]

13 months agoCleanup read2n and mark unixDie as [[noreturtn]] 14381/head
Otto Moerbeek [Tue, 25 Jun 2024 12:46:30 +0000 (14:46 +0200)] 
Cleanup read2n and mark unixDie as [[noreturtn]]

It might even be the case that this makes Coverity realize
pos does not overflow.

13 months agoMerge pull request #14377 from omoerbeek/rec-prep-5.1.0-rc1
Otto Moerbeek [Tue, 25 Jun 2024 09:55:36 +0000 (11:55 +0200)] 
Merge pull request #14377 from omoerbeek/rec-prep-5.1.0-rc1

Prep for rec-5.1.0-rc1

13 months agoPrep for rec-5.1.0-rc1 14377/head
Otto Moerbeek [Mon, 24 Jun 2024 13:56:10 +0000 (15:56 +0200)] 
Prep for rec-5.1.0-rc1

13 months agodnsdist: Fix a race when accessing a backend health status
Remi Gacogne [Mon, 24 Jun 2024 11:19:01 +0000 (13:19 +0200)] 
dnsdist: Fix a race when accessing a backend health status

While there should not be much risk in a data race involving a boolean
apart from getting an outdated value, it's still undefined behaviour
and it rightfully makes TSAN unhappy.
This commit makes the status atomic: hopefully using relaxed memory
ordering when reading the status will make it as cheap as a regular
non-atomic read on most platforms.

13 months agoMerge pull request #14374 from omoerbeek/rec-debian-tweaks rec-5.2.0-alpha0
Otto Moerbeek [Mon, 24 Jun 2024 10:56:34 +0000 (12:56 +0200)] 
Merge pull request #14374 from omoerbeek/rec-debian-tweaks

Rec followup to #14265: use correct file suffix for reloading and debian tweaks

13 months agoAlso use variable suffix for file when reloading YAML-Lua config 14374/head
Otto Moerbeek [Mon, 24 Jun 2024 09:32:00 +0000 (11:32 +0200)] 
Also use variable suffix for file when reloading YAML-Lua config

13 months agoMerge pull request #14363 from omoerbeek/rec-rename-new-udr-settings
Otto Moerbeek [Mon, 24 Jun 2024 09:10:51 +0000 (11:10 +0200)] 
Merge pull request #14363 from omoerbeek/rec-rename-new-udr-settings

rec: make names of new udr settings consistent with existing scheme

13 months agoMerge pull request #14373 from omoerbeek/rec-dns64-double-soa
Otto Moerbeek [Mon, 24 Jun 2024 07:54:58 +0000 (09:54 +0200)] 
Merge pull request #14373 from omoerbeek/rec-dns64-double-soa

rec: don't send double SOA record in the case of a dns64 CNAME that does not resolve

13 months agoAdd test for duplicate SOA record in the dns64/NODATA case 14373/head
Otto Moerbeek [Fri, 21 Jun 2024 14:31:24 +0000 (16:31 +0200)] 
Add test for duplicate SOA record in the dns64/NODATA case

13 months agorec: tweak debian install, as suggested by @zeha
Otto Moerbeek [Mon, 24 Jun 2024 07:12:58 +0000 (09:12 +0200)] 
rec: tweak debian install, as suggested by @zeha

13 months agoAuth/meson: Fix LMDB backend not finding symbols in `pdns-auth-util` 14370/head
Fred Morcos [Sun, 23 Jun 2024 18:46:01 +0000 (20:46 +0200)] 
Auth/meson: Fix LMDB backend not finding symbols in `pdns-auth-util`

This also makes `uuid-utils.{cc,hh}` a separate `link_whole` library to allow keeping its
symbols from being stripped at link time.

13 months agoAuth/Meson: Add libsystemd dependency to LMDB backend
Fred Morcos [Sun, 23 Jun 2024 18:45:42 +0000 (20:45 +0200)] 
Auth/Meson: Add libsystemd dependency to LMDB backend

13 months agoauth: allow -lodbc in a non-standard location 14368/head
Otto Moerbeek [Fri, 21 Jun 2024 12:29:20 +0000 (14:29 +0200)] 
auth: allow -lodbc in a non-standard location

needed for e.g. macOS with non-dylib odbc

13 months agoMerge pull request #14265 from omoerbeek/rec-yaml-as-conf
Otto Moerbeek [Fri, 21 Jun 2024 10:20:34 +0000 (12:20 +0200)] 
Merge pull request #14265 from omoerbeek/rec-yaml-as-conf

rec: allow recursor.conf file to contain YAML to ease transition to YAML config

13 months agoMerge pull request #14366 from PowerDNS/dependabot/pip/pdns/keyroller/urllib3-1.26.19
Remi Gacogne [Fri, 21 Jun 2024 10:07:23 +0000 (12:07 +0200)] 
Merge pull request #14366 from PowerDNS/dependabot/pip/pdns/keyroller/urllib3-1.26.19

build(deps): bump urllib3 from 1.26.18 to 1.26.19 in /pdns/keyroller

13 months agoMerge pull request #14360 from rgacogne/auth-fix-distributor-unit-test-leak
Remi Gacogne [Fri, 21 Jun 2024 10:04:06 +0000 (12:04 +0200)] 
Merge pull request #14360 from rgacogne/auth-fix-distributor-unit-test-leak

auth: Better fix for the leak reported by LSAN in test-distributor_hh.cc

13 months agobuild(deps): bump urllib3 from 1.26.18 to 1.26.19 in /pdns/keyroller 14366/head
dependabot[bot] [Fri, 21 Jun 2024 09:27:02 +0000 (09:27 +0000)] 
build(deps): bump urllib3 from 1.26.18 to 1.26.19 in /pdns/keyroller

Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.18 to 1.26.19.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.18...1.26.19)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
13 months agoMerge pull request #14345 from PowerDNS/dependabot/pip/pdns/recursordist/docs/urllib3...
Otto Moerbeek [Fri, 21 Jun 2024 09:21:42 +0000 (11:21 +0200)] 
Merge pull request #14345 from PowerDNS/dependabot/pip/pdns/recursordist/docs/urllib3-2.2.2

build(deps): bump urllib3 from 2.2.0 to 2.2.2 in /pdns/recursordist/docs

13 months agoauth: Use [[maybe_unused]] in the distributor unit tests 14360/head
Remi Gacogne [Fri, 21 Jun 2024 09:10:28 +0000 (11:10 +0200)] 
auth: Use [[maybe_unused]] in the distributor unit tests

As suggested by Otto.

13 months agoMerge pull request #14318 from omoerbeek/rec-nsname-pbout
Otto Moerbeek [Fri, 21 Jun 2024 09:07:03 +0000 (11:07 +0200)] 
Merge pull request #14318 from omoerbeek/rec-nsname-pbout

rec: add nsName into outgoing protobuf request/response messages

13 months agoInstall a small YAML default config instead of one with everything commented out 14265/head
Otto Moerbeek [Fri, 7 Jun 2024 11:49:49 +0000 (13:49 +0200)] 
Install a small YAML default config instead of one with everything commented out

13 months agoDocument the new approach of reading YAML from a recursor.conf file
Otto Moerbeek [Fri, 7 Jun 2024 08:01:17 +0000 (10:01 +0200)] 
Document the new approach of reading YAML from a recursor.conf file

13 months agoGenerate no more .conf-dist file
Otto Moerbeek [Mon, 3 Jun 2024 12:37:35 +0000 (14:37 +0200)] 
Generate no more .conf-dist file

13 months agoAdapt RH packaging
Otto Moerbeek [Mon, 3 Jun 2024 12:59:08 +0000 (14:59 +0200)] 
Adapt RH packaging

13 months agoAdapt Debian packaging
Otto Moerbeek [Mon, 3 Jun 2024 14:07:27 +0000 (16:07 +0200)] 
Adapt Debian packaging

13 months agorec: allow recursor.conf file to contain YAML
Otto Moerbeek [Wed, 29 May 2024 09:20:52 +0000 (11:20 +0200)] 
rec: allow recursor.conf file to contain YAML

This should us to work around the packaging issues discussed in #13935.
THe idea is that modify the parsing so that .conf files also *may* contain YAML.

The search for a config file then becomes:

1. Try read recuror.yml if it exists. If valid, done. If it is invalid punt.
2. Try read recursor.conf as YAML. If it is valid, done.
3. If it is invalid, try to read as old-style.

This means that the status of recursor.conf as a config file does not change.

This allows us to install a default YAML config into recursor.conf for new installs.
Of course we leave recursor.conf (and recursor.yml) alone for existing installs.

This is a draft. I will add docs and packaging changes after this is deemed
the way to proceed.

13 months agorec: make names of new udr settings consistent with existing scheme 14363/head
Otto Moerbeek [Wed, 19 Jun 2024 14:26:29 +0000 (16:26 +0200)] 
rec: make names of new udr settings consistent with existing scheme