]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto Moerbeek [Thu, 19 Sep 2024 12:07:26 +0000 (14:07 +0200)]
rec: a few RPZ tweaks
- Log policyname on policyHit when updating root
- Do not register invalid file-based RPZs
- Do not return null SOA
Peter van Dijk [Thu, 19 Sep 2024 10:30:56 +0000 (12:30 +0200)]
Merge pull request #14686 from Habbie/newer-mssql
auth mssql CI: switch to 2022-CU12 image
Peter van Dijk [Thu, 19 Sep 2024 08:47:07 +0000 (10:47 +0200)]
auth mssql CI: switch to 2022-CU12 image
https://github.com/actions/runner-images/releases/tag/ubuntu22%
2F20240915 .1 broke mssql.
https://github.com/microsoft/mssql-docker/issues/868 fits the kernel upgrade.
this commit switches from 2017-GA to 2022-CU12, which unbreaks the build
Remi Gacogne [Wed, 18 Sep 2024 07:16:07 +0000 (09:16 +0200)]
Merge pull request #14681 from phonedph1/patch-4
dnsdist: very nitty Update dnsdist-lua-actions.cc
phonedph1 [Tue, 17 Sep 2024 21:50:24 +0000 (15:50 -0600)]
Update dnsdist-lua-actions.cc
Otto Moerbeek [Tue, 17 Sep 2024 14:41:25 +0000 (16:41 +0200)]
Merge pull request #14678 from omoerbeek/rec-meson-mplexer
rec: meson build: link in right multiplexer
Otto Moerbeek [Tue, 17 Sep 2024 13:44:47 +0000 (15:44 +0200)]
rec: meson build: link in right multiplexer
Remi Gacogne [Tue, 17 Sep 2024 10:58:21 +0000 (12:58 +0200)]
Merge pull request #14671 from rgacogne/ddist-store-tlsioctx
dnsdist: Always store the `OpenSSLTLSIOCtx` in the connection
Remi Gacogne [Mon, 16 Sep 2024 11:31:50 +0000 (13:31 +0200)]
dnsdist: Fix clang-tidy warnings
Fred Morcos [Mon, 16 Sep 2024 11:29:34 +0000 (13:29 +0200)]
Merge pull request #14674 from romeroalx/gh-actions-skip-debian-11-meson
GH actions: skip job build-auth with meson for Debian 11
Remi Gacogne [Mon, 16 Sep 2024 10:27:00 +0000 (12:27 +0200)]
dnsdist: Set the ALPN of TLS contexts right away
Remi Gacogne [Mon, 16 Sep 2024 08:59:21 +0000 (10:59 +0200)]
dnsdist: Remove NPN support, it has been deprecated for a very long time
Remi Gacogne [Fri, 13 Sep 2024 14:38:16 +0000 (16:38 +0200)]
dnsdist: Fix clang-tidy warnings
Remi Gacogne [Fri, 13 Sep 2024 13:57:38 +0000 (15:57 +0200)]
dnsdist: Always store the OpenSSLTLSIOCtx in the connection
Peter van Dijk [Mon, 16 Sep 2024 09:47:59 +0000 (11:47 +0200)]
Merge pull request #14045 from Habbie/auth-api-rrset-comments-spurious-records
auth API: when querying with rrset_name, respect it for comments too
romeroalx [Mon, 16 Sep 2024 04:39:26 +0000 (06:39 +0200)]
gh actions: skip build-auth with meson for debian 11
Otto Moerbeek [Fri, 13 Sep 2024 15:37:48 +0000 (17:37 +0200)]
Merge pull request #14669 from omoerbeek/rec-chain-test-tweaks
rec: make chain test more robust and fix max chain size accounting
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
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
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 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
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
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
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 [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.
Peter van Dijk [Wed, 28 Aug 2024 08:53:22 +0000 (10:53 +0200)]
Merge pull request #14509 from Habbie/auth-settings-removed
auth docs: mark settings removed in 4.9.0
Peter van Dijk [Wed, 28 Aug 2024 08:47:20 +0000 (10:47 +0200)]
Merge pull request #14576 from Habbie/sqlite-begin-immediate
ssqlite3: use "begin immediate" to avoid later fights over upgrading to write
Peter van Dijk [Wed, 28 Aug 2024 08:40:31 +0000 (10:40 +0200)]
Merge pull request #14590 from zeha/zeha-13039-doc
auth dnsproxy: document network ought to be trusted
Otto Moerbeek [Wed, 14 Aug 2024 08:05:48 +0000 (10:05 +0200)]
Be more strict with names we allow in the answer section