]>
git.ipfire.org Git - thirdparty/pdns.git/log
Peter van Dijk [Fri, 13 Sep 2024 13:46:06 +0000 (15:46 +0200)]
webserver.cc: try to pass exception text with 500 errors
fixes #14637 -if- the client sends `Accept: application/json`
Remi Gacogne [Fri, 13 Sep 2024 13:27:29 +0000 (15:27 +0200)]
Merge pull request #14667 from rgacogne/ddist-coverity-
20240913
dnsdist: Fix a few warnings from Coverity
Otto Moerbeek [Fri, 13 Sep 2024 09:00:14 +0000 (11:00 +0200)]
rec: make chain test more robust and fix max chain size accounting
Remi Gacogne [Fri, 13 Sep 2024 10:06:46 +0000 (12:06 +0200)]
Merge pull request #14668 from rgacogne/ddist-more-symlinks
dnsdist: Move yet more dnsdist-specific files to `dnsdistdist`
Otto Moerbeek [Fri, 13 Sep 2024 09:00:53 +0000 (11:00 +0200)]
Merge pull request #14666 from omoerbeek/fstrm-too-large-cout
Introduce a "too large" counter for the framestream remote logger
Remi Gacogne [Fri, 13 Sep 2024 08:03:06 +0000 (10:03 +0200)]
dnsdist: Move README-dnsdist.md and eBPF-related files to dnsdistdist/
Remi Gacogne [Fri, 13 Sep 2024 08:02:37 +0000 (10:02 +0200)]
dnsdist: Remove symbolic links for more dnsdist-specific files
Remi Gacogne [Fri, 13 Sep 2024 07:59:10 +0000 (09:59 +0200)]
dnsdist: Fix a few warnings from Coverity
Otto Moerbeek [Fri, 13 Sep 2024 07:26:34 +0000 (09:26 +0200)]
Introduce a "too large" counter for the framestream remote logger
Otto Moerbeek [Fri, 13 Sep 2024 05:28:50 +0000 (07:28 +0200)]
Merge pull request #14655 from omoerbeek/rec-dot-test-multiple
rec: use multiple forwarding targets for DoT forwarding test
Peter van Dijk [Thu, 12 Sep 2024 16:58:32 +0000 (18:58 +0200)]
sdig: print ID if we did not generate it
Remi Gacogne [Thu, 12 Sep 2024 15:53:35 +0000 (17:53 +0200)]
dnsdist: Add now needed sodium libs to the cache fuzzer
Peter van Dijk [Thu, 12 Sep 2024 14:49:29 +0000 (16:49 +0200)]
sdig: report Question vs. Reply correctly
phonedph1 [Thu, 12 Sep 2024 13:00:37 +0000 (07:00 -0600)]
Make fuzzer happy?
Remi Gacogne [Thu, 12 Sep 2024 12:20:46 +0000 (14:20 +0200)]
Merge pull request #14662 from rgacogne/ddist-mv-remaining-files
dnsdist: Move a few remaining dnsdist-specific files to `dnsdistdist/`
Remi Gacogne [Thu, 12 Sep 2024 11:58:06 +0000 (13:58 +0200)]
Merge pull request #14661 from rgacogne/remove-pdns_hw.cc
Remove unused pdns_hw.cc
Remi Gacogne [Thu, 12 Sep 2024 11:57:36 +0000 (13:57 +0200)]
Merge pull request #14663 from rgacogne/enable-sholder-unit-test
Enable the (tiny) shared holder unit test
Remi Gacogne [Tue, 10 Sep 2024 14:23:39 +0000 (16:23 +0200)]
Format and delint test-sholder_hh.cc
Remi Gacogne [Tue, 10 Sep 2024 14:23:14 +0000 (16:23 +0200)]
Actually enable the shared holder unit tests in dnsdist and rec
Remi Gacogne [Thu, 12 Sep 2024 10:01:35 +0000 (12:01 +0200)]
dnsdist: Fix a clang-tidy warning in bpf-filter.cc
Otto Moerbeek [Wed, 11 Sep 2024 08:18:38 +0000 (10:18 +0200)]
fIx API old-style to YAML conversion for ACLS using += and multiple entries
Candidate for backporting
phonedph1 [Wed, 11 Sep 2024 01:51:03 +0000 (19:51 -0600)]
Dump more packet cache info: ECS subnet, DO, raw query flags, and base64 encoded response
Otto Moerbeek [Tue, 10 Sep 2024 14:04:36 +0000 (16:04 +0200)]
Fix regression test now that quoting rules changed
Remi Gacogne [Tue, 10 Sep 2024 14:24:08 +0000 (16:24 +0200)]
Remove unused pdns_hw.cc
Otto Moerbeek [Tue, 10 Sep 2024 14:20:06 +0000 (16:20 +0200)]
rec: use multiple forwarding targets for DoT forwarding test
Remi Gacogne [Tue, 10 Sep 2024 14:07:05 +0000 (16:07 +0200)]
dnsdist: Format moved files
Remi Gacogne [Tue, 10 Sep 2024 14:05:18 +0000 (16:05 +0200)]
dnsdist: Move dnsdist-specific files
Remi Gacogne [Tue, 10 Sep 2024 14:04:08 +0000 (16:04 +0200)]
dnsdist: Remove symbolic links for dnsdist-specific files
Peter van Dijk [Tue, 10 Sep 2024 13:45:06 +0000 (15:45 +0200)]
Merge pull request #14642 from Habbie/lua-record-thread-names
auth: more and better thread names
Otto Moerbeek [Tue, 10 Sep 2024 13:21:55 +0000 (15:21 +0200)]
Tidy
Otto Moerbeek [Tue, 10 Sep 2024 12:35:33 +0000 (14:35 +0200)]
Start using serd_yml insdtead of the now deprecated serde_yaml, including Cargo.lock update
Otto Moerbeek [Tue, 10 Sep 2024 12:35:19 +0000 (14:35 +0200)]
Update to rust 1.81.0
Otto Moerbeek [Tue, 10 Sep 2024 11:06:30 +0000 (13:06 +0200)]
rec: stop supporting ucontext flavor for context switching
Otto Moerbeek [Tue, 10 Sep 2024 10:58:39 +0000 (12:58 +0200)]
Merge pull request #14633 from omoerbeek/boost-version
Move minmial boost version to 1.54
Otto Moerbeek [Tue, 10 Sep 2024 09:32:02 +0000 (11:32 +0200)]
Two more now redundant cases spotted by rgacogne
Otto Moerbeek [Tue, 10 Sep 2024 09:33:08 +0000 (11:33 +0200)]
Merge pull request #14634 from omoerbeek/rec-unit-tests-random
Randomize unit tests always
Otto Moerbeek [Tue, 10 Sep 2024 08:22:07 +0000 (10:22 +0200)]
Merge pull request #14650 from omoerbeek/rec-docs-upgrade-default
rec: document potential upgrade issue
Peter van Dijk [Tue, 10 Sep 2024 08:13:32 +0000 (10:13 +0200)]
auth signer: set thread name
Peter van Dijk [Tue, 10 Sep 2024 08:13:25 +0000 (10:13 +0200)]
auth communicator: fix retrieval thread name
Peter van Dijk [Tue, 10 Sep 2024 08:13:00 +0000 (10:13 +0200)]
auth LUA: reset thread name after async runs
Remi Gacogne [Tue, 10 Sep 2024 07:39:36 +0000 (09:39 +0200)]
dnsdist: Apply Otto's suggestions to the documentation
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Remi Gacogne [Tue, 10 Sep 2024 07:39:27 +0000 (09:39 +0200)]
dnsdist: Apply Otto's suggestions to the documentation
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Otto Moerbeek [Tue, 10 Sep 2024 07:35:27 +0000 (09:35 +0200)]
rec: document potential upgrade issue
Remi Gacogne [Tue, 10 Sep 2024 07:30:33 +0000 (09:30 +0200)]
Merge pull request #14636 from rgacogne/ddist-fix-proxy-protocol-outside-tls-dot
dnsdist: Fix handling of proxy protocol payload outside of TLS for DoT
Remi Gacogne [Tue, 10 Sep 2024 07:29:02 +0000 (09:29 +0200)]
Merge pull request #14577 from rgacogne/ddist-ffi-edns-version-extended
dnsdist: Add Lua FFI accessors for EDNS version and extended rcode
Peter van Dijk [Mon, 9 Sep 2024 14:04:00 +0000 (16:04 +0200)]
auth LUA: better thread names
Remi Gacogne [Mon, 9 Sep 2024 12:20:48 +0000 (14:20 +0200)]
dnsdist: Fix handling of proxy protocol payload outside of TLS for DoT
After reading the proxy protocol payload from the I/O buffer
we were clearing the buffer but failed to properly reset the
position, leading to an exception when trying to read the DNS
payload after processing the TLS handshake:
```
Got an exception while handling (reading) TCP query from 127.0.0.1:59426: Calling tryRead() with a too small buffer (2) for a read of
18446744073709551566 bytes starting at 52
```
The huge value comes from the fact that the position (52 here)
is larger than the size of the buffer (2 at this point to read
the size of the incoming DNS payload), leading to an unsigned
underflow. The code is properly detecting that the value makes
no sense in this context, but the connection is then dropped
because we cannot recover.
It turns out we had a end-to-end test for the "proxy protocol
outside of TLS" case but only over incoming DoH, and the DoH
case avoids this specific issue because the buffer is always
properly resized, and the position updated.
Otto Moerbeek [Mon, 9 Sep 2024 07:27:07 +0000 (09:27 +0200)]
Also do auth and dnsdist testrunner
Otto Moerbeek [Fri, 6 Sep 2024 14:12:47 +0000 (16:12 +0200)]
Move minmial boost version to 1.54
Otto Moerbeek [Mon, 9 Sep 2024 07:03:49 +0000 (09:03 +0200)]
Merge pull request #14628 from omoerbeek/rec-chain-waiterid
rec: avoid duplicated waiter ids for chained requests
Otto Moerbeek [Fri, 6 Sep 2024 12:23:31 +0000 (14:23 +0200)]
Disable tracing for test_Chain, it chokes GH
Peter van Dijk [Fri, 6 Sep 2024 13:07:08 +0000 (15:07 +0200)]
Merge pull request #14561 from jsoref/oversized-chunk-see-11804
Add doc reference to oversized chunk message
Otto Moerbeek [Fri, 6 Sep 2024 12:48:40 +0000 (14:48 +0200)]
Always randomize test runs
Otto Moerbeek [Fri, 6 Sep 2024 12:40:20 +0000 (14:40 +0200)]
Tidy
Otto Moerbeek [Fri, 6 Sep 2024 11:29:17 +0000 (13:29 +0200)]
Add basic chain test that hits the case of #14624
We do rely on that OS queueing the UDP packets, hope it will do so long enough
Otto Moerbeek [Fri, 6 Sep 2024 10:12:14 +0000 (12:12 +0200)]
rec: avoid duplicated waiter ids for chained requests
Fred Morcos [Thu, 5 Sep 2024 15:42:31 +0000 (17:42 +0200)]
Fix more lints
Fred Morcos [Thu, 5 Sep 2024 15:41:42 +0000 (17:41 +0200)]
Fix lints
Fred Morcos [Thu, 5 Sep 2024 10:55:39 +0000 (12:55 +0200)]
Fix formatting
Fred Morcos [Thu, 5 Sep 2024 10:55:11 +0000 (12:55 +0200)]
Fix comment
Peter van Dijk [Thu, 5 Sep 2024 09:47:29 +0000 (11:47 +0200)]
Merge pull request #14619 from Habbie/table-render
auth docs backends: fix table rendering
Fred Morcos [Thu, 5 Sep 2024 09:41:59 +0000 (11:41 +0200)]
Lint cleanups
Fred Morcos [Wed, 4 Sep 2024 20:27:17 +0000 (22:27 +0200)]
Fix env mem leak
Peter van Dijk [Tue, 3 Sep 2024 14:40:24 +0000 (16:40 +0200)]
auth docs backends: fix table rendering
Remi Gacogne [Tue, 3 Sep 2024 14:37:50 +0000 (16:37 +0200)]
Merge pull request #14618 from rgacogne/ddist-hashpassword-example
dnsdist: Add an example of how to use `hashPassword()`
Remi Gacogne [Tue, 3 Sep 2024 13:30:29 +0000 (15:30 +0200)]
spell-check: Allow argon/scrypt patterns
Remi Gacogne [Tue, 3 Sep 2024 13:18:40 +0000 (15:18 +0200)]
dnsdist: Add an example of how to use `hashPassword()`
Peter van Dijk [Tue, 3 Sep 2024 12:12:52 +0000 (14:12 +0200)]
Merge pull request #14546 from robertsilen/patch2
add mariadb to table
Otto Moerbeek [Tue, 3 Sep 2024 08:46:37 +0000 (10:46 +0200)]
Merge pull request #14595 from omoerbeek/rec-sanitize-rework
rec: rework sanitize code
Otto Moerbeek [Tue, 3 Sep 2024 08:46:17 +0000 (10:46 +0200)]
Merge pull request #14606 from omoerbeek/rec-tcp-in-limit
rec: rework the way tcp-in limits is maintained
Peter van Dijk [Tue, 3 Sep 2024 08:10:21 +0000 (10:10 +0200)]
Merge pull request #14613 from fredmorcos/cleanup-clang-tidy-config
Remove leftover config from old clang-tidy versions
Peter van Dijk [Tue, 3 Sep 2024 08:08:07 +0000 (10:08 +0200)]
Merge pull request #14612 from Habbie/qsize-threads-docs
auth docs: fix one error and expand a bit on queues and threads
Peter van Dijk [Tue, 3 Sep 2024 08:05:04 +0000 (10:05 +0200)]
Merge pull request #14614 from fredmorcos/lmdb-regtests-gdb
Add a way to run pdnsutil using a debugger as part of the LMDB regression tests
Otto Moerbeek [Tue, 3 Sep 2024 07:37:45 +0000 (09:37 +0200)]
Add upgrade note wrt changed incoming TCP handling
Otto Moerbeek [Tue, 3 Sep 2024 07:57:51 +0000 (09:57 +0200)]
Merge pull request #14602 from omoerbeek/ddist-test-async-obsd
dnsdist: adapt unit test to avoid race on OpenBSD
Otto Moerbeek [Tue, 3 Sep 2024 07:55:35 +0000 (09:55 +0200)]
Add/fix a comment
Peter van Dijk [Tue, 3 Sep 2024 07:36:14 +0000 (09:36 +0200)]
clarify that we restart the entire pdns on a queue overfill in this place too
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Otto Moerbeek [Wed, 28 Aug 2024 07:28:48 +0000 (09:28 +0200)]
dnsdist: adapt unit test to avoid race on OpenBSD
It looks like OpenBSD has different thread scheduler behaviour, and it
can take a while for the error condition to be set.
Peter van Dijk [Tue, 3 Sep 2024 07:04:30 +0000 (09:04 +0200)]
clarify that we restart the entire pdns on a queue overfill
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Peter van Dijk [Mon, 2 Sep 2024 11:52:05 +0000 (13:52 +0200)]
auth docs: fix one error and expand a bit on queues and threads
Fred Morcos [Mon, 2 Sep 2024 16:16:47 +0000 (18:16 +0200)]
Add a way to run pdnsutil using gdb in lmdb regression test
Fred Morcos [Fri, 30 Aug 2024 11:25:04 +0000 (13:25 +0200)]
Whitespace cleanup
Fred Morcos [Thu, 29 Aug 2024 10:13:19 +0000 (12:13 +0200)]
Remove leftover config from old clang-tidy versions
Otto Moerbeek [Fri, 30 Aug 2024 11:18:19 +0000 (13:18 +0200)]
rec: Only log MOADNSExceptions if logging.log_common_errors is true.
But do not ratelimit them
Otto Moerbeek [Wed, 28 Aug 2024 09:32:20 +0000 (11:32 +0200)]
Add metrics
Remi Gacogne [Thu, 29 Aug 2024 09:22:26 +0000 (11:22 +0200)]
Merge pull request #14573 from rgacogne/ddist-top-timeouts
dnsdist: Stop reporting timeouts in `topSlow()`, add `topTimeouts()`
Peter van Dijk [Thu, 29 Aug 2024 07:29:09 +0000 (09:29 +0200)]
Merge pull request #14608 from fredmorcos/gitignore-ccls-cache
Gitignore the ccls cache
Peter van Dijk [Thu, 29 Aug 2024 07:28:17 +0000 (09:28 +0200)]
Merge pull request #14607 from omoerbeek/rec-docs-lua-pattern
rec docs: fix *.lua, * has special meaning
Peter van Dijk [Thu, 29 Aug 2024 07:26:59 +0000 (09:26 +0200)]
Merge pull request #14605 from cloudandheat/doc/dont-query-meets-forward-zones
Mention effect of dont_query on forward_zones
Remi Gacogne [Thu, 29 Aug 2024 06:32:23 +0000 (08:32 +0200)]
Merge pull request #14534 from rgacogne/ddist-warn-setmaxtcpclientthreads
dnsdist: Add warnings about large values passed to `setMaxTCPClientThreads`
Remi Gacogne [Thu, 29 Aug 2024 06:31:14 +0000 (08:31 +0200)]
Merge pull request #14570 from rgacogne/ddist-fix-dynblocks-lua-until
dnsdist: Return a valid unix timestamp for Dynamic Block's `until`
Fred Morcos [Wed, 28 Aug 2024 18:27:15 +0000 (20:27 +0200)]
Gitignore the ccls cache
Otto Moerbeek [Wed, 28 Aug 2024 13:38:08 +0000 (15:38 +0200)]
rec docs: fix *.lua, * has special meaning
Jonas Schäfer [Wed, 28 Aug 2024 12:04:53 +0000 (14:04 +0200)]
Mention effect of dont_query on forward_zones
Peter van Dijk [Wed, 28 Aug 2024 10:00:06 +0000 (12:00 +0200)]
Merge pull request #14597 from zeha/zeha-auth-backend-state
auth: encapsulate lookup()-cleanup
Peter van Dijk [Wed, 28 Aug 2024 09:58:04 +0000 (11:58 +0200)]
Merge pull request #14586 from jsoref/check-spelling-md
Let check-spelling check `.md` files
Peter van Dijk [Wed, 28 Aug 2024 09:51:24 +0000 (11:51 +0200)]
Merge pull request #14599 from zeha/zeha-auth-regtestspy-aliasaaaa
regression-tests.auth-py: actually test ALIAS AAAA cases
Peter van Dijk [Wed, 28 Aug 2024 09:48:22 +0000 (11:48 +0200)]
Merge pull request #14598 from zeha/zeha-auth-regtestspy-meson
regression-tests.auth-py: allow running with meson, and on macOS
Peter van Dijk [Wed, 28 Aug 2024 09:48:13 +0000 (11:48 +0200)]
Merge pull request #14592 from zeha/luadocfix
auth docs: reword LUA return paragraph
Otto Moerbeek [Wed, 28 Aug 2024 08:55:39 +0000 (10:55 +0200)]
rec: change the way incoming TCP higher than max_tcp_clients is handled
Keep accepting connections, but drop them immediately if we're over limit. This
- avoids having lots of incoming TCP connections at the listen queue in the OS
- Immediately takes effect, instead of relying on the lazy enforming of the limit
No seperate counter for now, also, maybe a log message should be added?
Also consider the per client limit for that.