]>
git.ipfire.org Git - thirdparty/pdns.git/log
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.
Remi Gacogne [Wed, 21 Jun 2023 08:16:29 +0000 (10:16 +0200)]
Merge pull request #11427 from rgacogne/ddist-channels
dnsdist: Implement Channels for communication between threads
Remi Gacogne [Wed, 21 Jun 2023 08:15:22 +0000 (10:15 +0200)]
Merge pull request #12923 from rgacogne/ddist-auto-include-ffi-inspection
dnsdist: Automatically load Lua FFI inspection functions
Remi Gacogne [Tue, 20 Jun 2023 16:47:36 +0000 (18:47 +0200)]
channel: Rename 'fd' to 'descriptor'
Peter van Dijk [Tue, 20 Jun 2023 16:10:16 +0000 (18:10 +0200)]
Merge pull request #11510 from klaus-nicat/ignore-axfr-expand-alias-errors
new option 'ignore-errors' for setting 'outgoing-axfr-expand-alias'
Remi Gacogne [Tue, 20 Jun 2023 15:05:36 +0000 (17:05 +0200)]
Merge pull request #12924 from rgacogne/ddist-luaffi-rawtag-test
dnsdist: Add a regression test for the Lua FFI raw tag interface
Remi Gacogne [Tue, 20 Jun 2023 15:05:26 +0000 (17:05 +0200)]
Merge pull request #12925 from rgacogne/ddist-pp-doc
dnsdist: Clarify the proxy protocol documentation
Chris Hofstaedtler [Wed, 7 Jun 2023 12:08:28 +0000 (14:08 +0200)]
auth: ignore readability-function-cognitive-complexity for doAXFR for now
Chris Hofstaedtler [Mon, 5 Jun 2023 20:51:59 +0000 (22:51 +0200)]
auth: docs: warn more clearly about setting-outgoing-axfr-expand-alias=ignore-errors
Chris Hofstaedtler [Mon, 5 Jun 2023 20:38:34 +0000 (22:38 +0200)]
auth: add startup warning about outgoing-axfr-expand-alias=ignore-errors
Otto Moerbeek [Tue, 20 Jun 2023 14:21:36 +0000 (16:21 +0200)]
Merge pull request #12928 from omoerbeek/rec-fix-daemonize
rec: fix daemonize(), followup to #12836
Otto Moerbeek [Tue, 20 Jun 2023 14:08:35 +0000 (16:08 +0200)]
Merge pull request #12930 from omoerbeek/fix-unused-warnings
Fix compile warnings
Otto Moerbeek [Tue, 20 Jun 2023 12:56:29 +0000 (14:56 +0200)]
Fix typos in comment
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Tue, 20 Jun 2023 11:55:11 +0000 (13:55 +0200)]
Avoid main() throwing an exception
Otto Moerbeek [Tue, 20 Jun 2023 07:24:50 +0000 (09:24 +0200)]
Fix unused warnings coming from our own code.
Some third party warning remain, mostly coming from boost.
Otto Moerbeek [Tue, 20 Jun 2023 07:22:01 +0000 (09:22 +0200)]
Merge pull request #12929 from ddmler/patch-1
Fix wrong rfc number in docs for ZONEMD record
Enrico Höschler [Tue, 20 Jun 2023 07:15:05 +0000 (09:15 +0200)]
Fix wrong rfc number for zonemd record
Otto Moerbeek [Tue, 20 Jun 2023 07:01:21 +0000 (09:01 +0200)]
rec: fix daemonize(), followup to #12836
Originally the code did not distinguish between parent return and error.
Otto Moerbeek [Tue, 20 Jun 2023 05:30:09 +0000 (07:30 +0200)]
Merge pull request #12927 from omoerbeek/rec-zonetocache-local
rec: fix documentation of zoneToCache localAddress attribute
Otto Moerbeek [Tue, 20 Jun 2023 05:29:53 +0000 (07:29 +0200)]
Merge pull request #12913 from omoerbeek/dns_random
dns random: add method to get full 32-bits of randomness
Otto Moerbeek [Mon, 19 Jun 2023 11:19:22 +0000 (13:19 +0200)]
rec: fix documentation of zoneToCache localAddress attribute
Fixes #12919
Remi Gacogne [Mon, 19 Jun 2023 10:12:43 +0000 (12:12 +0200)]
Merge pull request #12911 from rgacogne/ddist-increment-dyn-blocked-ebpf
dnsdist: Increment the "dyn blocked" counter for eBPF blocks as well
Otto Moerbeek [Mon, 19 Jun 2023 09:33:02 +0000 (11:33 +0200)]
Convert a couple of calls from dns_random() to dns_random_uint32()
Otto Moerbeek [Mon, 19 Jun 2023 09:23:05 +0000 (11:23 +0200)]
Don't close the urandom file descriptor
Remi Gacogne [Fri, 16 Jun 2023 13:35:53 +0000 (15:35 +0200)]
dnsdist: Clarify the proxy protocol documentation
- A proxy protocol payload is actually required from incoming clients
configured with setProxyProtocolACL, not just allowed.
- setProxyProtocolApplyACLToProxiedClients was wrongly documented as
setProxyProtocolApplyACL
Remi Gacogne [Fri, 16 Jun 2023 08:14:21 +0000 (10:14 +0200)]
dnsdist: Add a regression test for the Lua FFI raw tag interface
Remi Gacogne [Fri, 16 Jun 2023 07:46:16 +0000 (09:46 +0200)]
dnsdist: Automatically load Lua FFI inspection functions
We used to do that for all Lua FFI functions except the ones used
for inspecting StatNode objects.
Remi Gacogne [Thu, 15 Jun 2023 13:51:43 +0000 (15:51 +0200)]
Merge pull request #12783 from rgacogne/ddist-fix-pool-cache-metrics
dnsdist: Fix cache hit and miss metrics with DoH queries
Peter van Dijk [Thu, 15 Jun 2023 08:46:29 +0000 (10:46 +0200)]
Merge pull request #12918 from omoerbeek/rec-prep-4.9.0-rc1
rec: Prep for rec-4.9.0-rc1
Remi Gacogne [Wed, 14 Jun 2023 10:33:09 +0000 (12:33 +0200)]
Merge pull request #12916 from Houtworm/master
edited webserver config template for dnsdist docker container.
Otto Moerbeek [Tue, 13 Jun 2023 08:30:39 +0000 (10:30 +0200)]
Prep for rec-4.9.0-rc1
Houtworm [Wed, 14 Jun 2023 08:09:15 +0000 (10:09 +0200)]
Update dockerdata/startup.py
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Wed, 14 Jun 2023 06:55:48 +0000 (08:55 +0200)]
delint
djonker [Tue, 13 Jun 2023 22:34:09 +0000 (00:34 +0200)]
fixed the webserver config line?
Otto Moerbeek [Tue, 13 Jun 2023 11:02:36 +0000 (13:02 +0200)]
Fix loops
Remi Gacogne [Tue, 13 Jun 2023 12:08:56 +0000 (14:08 +0200)]
dnsdist: Increment the "dyn blocked" counter for eBPF blocks as well
Regular, userspace blocks increment the "dyn blocked" counter for every
dropped query. The eBPF blocks are executed in kernelspace and thus do
not increment that counter at all, which makes it challenging for
reporting to do its job. On the other hand we want our eBPF code to
be as efficient as possible since it is used when performance really
matters.
This commit updates the counter when a eBPF dynamic block is removed,
which is a compromise between the performance impact and a slight
reporting delay.
Remi Gacogne [Tue, 13 Jun 2023 11:16:41 +0000 (13:16 +0200)]
Merge pull request #12811 from rgacogne/ddist-health-check-better-messages
dnsdist: Add the query ID to health-check log messages, fix nits
Otto Moerbeek [Tue, 13 Jun 2023 10:58:12 +0000 (12:58 +0200)]
Actually start testing this on !gcc and refactor
Otto Moerbeek [Tue, 13 Jun 2023 09:17:45 +0000 (11:17 +0200)]
Add basic test for dns_random_uint32
Otto Moerbeek [Tue, 13 Jun 2023 09:08:50 +0000 (11:08 +0200)]
Introduce dns_random_uint32()
To be used when a full 32 bits of randomness are needed, also avoiding
the modulo dance
Otto Moerbeek [Tue, 13 Jun 2023 09:02:59 +0000 (11:02 +0200)]
Replace boost lexical casts, including the header produces a lot of warnings on some platforms for some time
We now produce a string runtime, but since the to_string() call should never be executed, it does not matter.
Otto Moerbeek [Tue, 13 Jun 2023 08:58:49 +0000 (10:58 +0200)]
delint
Otto Moerbeek [Tue, 13 Jun 2023 08:49:45 +0000 (10:49 +0200)]
Reformat
Otto Moerbeek [Tue, 13 Jun 2023 10:50:33 +0000 (12:50 +0200)]
Merge pull request #12909 from omoerbeek/fix-speedtest
Fix build of speedtest and make sure it gets built automatically to avoid bitrot
Otto Moerbeek [Tue, 13 Jun 2023 09:55:39 +0000 (11:55 +0200)]
Add GGS_LIB to speedtest link if needed
Otto Moerbeek [Tue, 13 Jun 2023 09:35:20 +0000 (11:35 +0200)]
Fix build of speedtest and make sure it gets built automatically to avoid bitrot
Remi Gacogne [Tue, 13 Jun 2023 08:52:33 +0000 (10:52 +0200)]
channel: Fix clang-tidy warnings
Remi Gacogne [Tue, 13 Jun 2023 08:48:20 +0000 (10:48 +0200)]
Merge pull request #12804 from rgacogne/ddist-health-check-resize-response
dnsdist: Properly set the size of the UDP health-check response
Remi Gacogne [Tue, 13 Jun 2023 08:47:26 +0000 (10:47 +0200)]
Merge pull request #12892 from rgacogne/yahttp-fuzz-overflow
YaHTTP: Prevent integer overflow on very large chunks
Remi Gacogne [Tue, 13 Jun 2023 08:47:13 +0000 (10:47 +0200)]
Merge pull request #12802 from rgacogne/ddist-health-check-wait-time
dnsdist: Account for the health-check run time between two runs
Otto Moerbeek [Tue, 13 Jun 2023 08:31:39 +0000 (10:31 +0200)]
Merge pull request #12808 from omoerbeek/args-delint
Reformat and delint arguments.cc and arguments.hh
Remi Gacogne [Thu, 11 May 2023 13:22:25 +0000 (15:22 +0200)]
dnsdist: Add the query ID to health-check log messages, fix nits
Remi Gacogne [Tue, 13 Jun 2023 08:02:45 +0000 (10:02 +0200)]
dnsdist: Fix a boolean nit as suggested by Otto
Remi Gacogne [Fri, 12 May 2023 15:56:05 +0000 (17:56 +0200)]
dnsdist: Fix formatting in channel.cc
Remi Gacogne [Fri, 12 May 2023 15:42:27 +0000 (17:42 +0200)]
dnsdist: Hopefully make clang-tidy happy
Remi Gacogne [Thu, 22 Dec 2022 09:25:00 +0000 (10:25 +0100)]
channel: Transfer the object to a local pointer before sending it
Even calling release() on the initial unique_ptr after sending the
object could cause a use-after-free, as the unique_ptr might have
been destroyed in the meantime.
Remi Gacogne [Mon, 19 Dec 2022 11:00:31 +0000 (12:00 +0100)]
channel unit tests: Fix formatting
Remi Gacogne [Mon, 19 Dec 2022 10:57:31 +0000 (11:57 +0100)]
channel: Add unit tests
Remi Gacogne [Sat, 17 Dec 2022 09:22:09 +0000 (10:22 +0100)]
dnsdist: Fix invalid parameter name in the channel
Remi Gacogne [Fri, 16 Dec 2022 14:47:46 +0000 (15:47 +0100)]
channel: Rename the pointer to object 'objPtr' instead of 'obj'
Remi Gacogne [Fri, 16 Dec 2022 14:47:08 +0000 (15:47 +0100)]
channel: Use the template deleter parameter
Remi Gacogne [Fri, 16 Dec 2022 14:46:34 +0000 (15:46 +0100)]
channel: Cleaner handling of EOF when writing on the pipe
Remi Gacogne [Fri, 16 Dec 2022 14:45:49 +0000 (15:45 +0100)]
dnsdist: TCPCrossProtocolResponse is a struct, not a class
Remi Gacogne [Mon, 12 Dec 2022 09:06:56 +0000 (10:06 +0100)]
channel: Fix formatting
Remi Gacogne [Fri, 9 Dec 2022 15:58:15 +0000 (16:58 +0100)]
dnsdist: Add TSAN annotations in the channel code
So Thread Sanitizer knows that the object we are passing is no longer
used in the sender, and will now be used in the receiver (happens-before).
Remi Gacogne [Sat, 22 Oct 2022 14:59:22 +0000 (16:59 +0200)]
rec: Add missing channel.cc and channel.hh symbolic links
Remi Gacogne [Fri, 21 Oct 2022 18:12:01 +0000 (20:12 +0200)]
dnsdist: Move the DelayPipe to pdns::channel
Remi Gacogne [Fri, 10 Jun 2022 15:34:56 +0000 (17:34 +0200)]
Move channel files from pdns/dnsdistdist to pdns
Remi Gacogne [Fri, 8 Apr 2022 18:02:23 +0000 (20:02 +0200)]
dnsdist: Add missing pragma once to DoH
Remi Gacogne [Fri, 8 Apr 2022 15:57:44 +0000 (17:57 +0200)]
dnsdist: Convert DoH to pdns::channel
Remi Gacogne [Fri, 8 Apr 2022 15:17:00 +0000 (17:17 +0200)]
dnsdist: Refactoring of the SNMP code with channels
Remi Gacogne [Fri, 18 Mar 2022 09:32:42 +0000 (10:32 +0100)]
dnsdist: Wrap the pipe descriptors earlier, do not leak on send errors
Remi Gacogne [Fri, 18 Mar 2022 09:22:10 +0000 (10:22 +0100)]
dnsdist: Fix formatting in channel.{cc,hh}
Remi Gacogne [Thu, 17 Mar 2022 15:26:08 +0000 (16:26 +0100)]
dnsdist: Refactoring of the TCP/TLS workers using channels
Remi Gacogne [Thu, 17 Mar 2022 09:12:08 +0000 (10:12 +0100)]
dnsdist: Refactoring of the outgoing DoH code with pdns::channel
Remi Gacogne [Thu, 17 Mar 2022 16:02:05 +0000 (17:02 +0100)]
dnsdist: Implement Channels for communication between threads
Internally this uses the same mechanism as before, passing pointers
over a pipe, but the new classes make that easier to use:
- clear separation between sender and receiver
- clear ownership of the descriptor
- less code duplication
Otto Moerbeek [Tue, 13 Jun 2023 07:27:39 +0000 (09:27 +0200)]
Typo in var name spotted by @Habbie
Otto Moerbeek [Mon, 12 Jun 2023 11:49:37 +0000 (13:49 +0200)]
Merge pull request #12904 from omoerbeek/rec-gid_t-uid_t-can-be-unsigned
rec: uid_t and gid_t can be unsigned, so doing > on an -1 value is tricky
Otto Moerbeek [Mon, 12 Jun 2023 11:49:22 +0000 (13:49 +0200)]
Merge pull request #12906 from omoerbeek/rec-sdjournal-escape
rec: systemd-journal backend: escape keys that are special
Otto Moerbeek [Mon, 12 Jun 2023 11:48:51 +0000 (13:48 +0200)]
Merge pull request #12893 from omoerbeek/rec-dnssec-alg-setting
rec: add feature to switch off unsupported DNSSEC algos
Otto Moerbeek [Wed, 7 Jun 2023 11:11:33 +0000 (13:11 +0200)]
Tidy and process review comments
Remi Gacogne [Mon, 12 Jun 2023 09:49:26 +0000 (11:49 +0200)]
Merge pull request #12905 from rgacogne/ddist-async-test-racy
dnsdist: Remove a racy test in the AsynchronousHolder unit tests
Peter van Dijk [Mon, 12 Jun 2023 09:41:29 +0000 (11:41 +0200)]
Merge pull request #12881 from Habbie/dispatch-bookworm
builder-dispatch: add debian-bookworm target to defaults
Otto Moerbeek [Mon, 12 Jun 2023 09:22:56 +0000 (11:22 +0200)]
Merge pull request #12900 from omoerbeek/rec-serve-stale-dup-cname
rec: Prevent duplicate C/DNAMEs being included when doing serve-stale
Otto Moerbeek [Mon, 12 Jun 2023 09:02:02 +0000 (11:02 +0200)]
Don't double print and delint
Remi Gacogne [Mon, 12 Jun 2023 09:04:51 +0000 (11:04 +0200)]
dnsdist: Remove a racy test in the AsynchronousHolder unit tests
We are adding an expired event so the worker thread of the
AsynchronousHolder can pick it up immediately, even before we come
back from the call to push(), which leads to a racy test.
This was observed on GitHub Actions when running with TSAN:
```
FAIL: testrunner
================
Running 170 test cases...
test-dnsdistasync.cc(156): error: in "test_dnsdistasync/test_AddingExpiredEvent": check !holder->empty() has failed
*** 1 failure is detected in the test module "unit"
FAIL testrunner (exit status: 201)
```
Otto Moerbeek [Mon, 12 Jun 2023 09:03:50 +0000 (11:03 +0200)]
Merge pull request #12896 from omoerbeek/rec-nod-metrics
rec: expose NOD/UDR metrics
Otto Moerbeek [Mon, 12 Jun 2023 08:41:02 +0000 (10:41 +0200)]
rec: uid_t and gid_t can be unsigned, so doing > on and -1 value is tricky
Otto Moerbeek [Mon, 12 Jun 2023 08:35:34 +0000 (10:35 +0200)]
Merge pull request #12883 from omoerbeek/rec-rpz-soa
rec: add SOA to RPZ modified answers if configured to do so
Otto Moerbeek [Mon, 12 Jun 2023 08:33:47 +0000 (10:33 +0200)]
delint
Otto Moerbeek [Mon, 12 Jun 2023 08:14:03 +0000 (10:14 +0200)]
Process review comments
Remi Gacogne [Mon, 12 Jun 2023 08:10:20 +0000 (10:10 +0200)]
Merge pull request #12840 from phonedph1/patch-39
Update dnsdist-console.cc
Otto Moerbeek [Mon, 12 Jun 2023 07:08:10 +0000 (09:08 +0200)]
Add tests to see if CNAME records are not included multiple times
Remi Gacogne [Mon, 12 Jun 2023 08:08:45 +0000 (10:08 +0200)]
Merge pull request #12839 from phonedph1/patch-38
Update rules-actions.rst
Otto Moerbeek [Mon, 12 Jun 2023 07:40:18 +0000 (09:40 +0200)]
rec: Escape (by prepending "PDNS") message keys that are special to systemd-journal
Otto Moerbeek [Fri, 12 May 2023 09:01:14 +0000 (11:01 +0200)]
Delint arguments.cc and arguments.hh
Otto Moerbeek [Fri, 12 May 2023 09:00:25 +0000 (11:00 +0200)]
Reformat
Otto Moerbeek [Fri, 9 Jun 2023 09:51:04 +0000 (11:51 +0200)]
rec: Prevent duplicate C/DNAMEs to be included when doing serve-stale
This can happen if the CNAME record itself was found, but its target not
Otto Moerbeek [Fri, 9 Jun 2023 06:06:06 +0000 (08:06 +0200)]
Merge pull request #12898 from omoerbeek/rec-depth
rec: keep track of max depth reached and report it if !quiet
Otto Moerbeek [Thu, 8 Jun 2023 11:22:43 +0000 (13:22 +0200)]
Prometheus does not like counter names ending in -count