]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Thu, 10 Jul 2025 07:55:13 +0000 (09:55 +0200)]
dnsdist: Properly link with `libdl` when building with `autotools`
Depending on the system we might actually need to link with `libdl`
when our Rust library is used, and the mechanism to do that was not
properly set up when building with `autotools` (we were adding `LIBDL`
to the the libraries we need but the variable was not properly filled).
Unfortunately the systems we are exercising in our CI do not need to
explicitly link with `libdl` so we did not notice.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
83416a76b6df3af560514caea8c45e750f1fd24b )
Remi Gacogne [Tue, 8 Jul 2025 10:17:00 +0000 (12:17 +0200)]
Merge pull request #15805 from rgacogne/ddist20-backport-15639
dnsdist-2.0.x: Backport 15639 - Add el-10 target
Peter van Dijk [Fri, 6 Jun 2025 13:23:23 +0000 (15:23 +0200)]
builder: avoid duplicate installation of meson/quiche/rust
(cherry picked from commit
adc4a45244c64cfcd52d03b8a392224c3851e1ff )
Remi Gacogne [Tue, 8 Jul 2025 09:38:56 +0000 (11:38 +0200)]
builder: add el-10 target, based on rockylinux:10 for now
cherry-picked from
32a5ef17f4aa04822b79aafd2c783c19433955a5
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Mon, 7 Jul 2025 13:04:22 +0000 (15:04 +0200)]
Merge pull request #15787 from rgacogne/ddist20-remove-more-workflows
dnsdist-2.0.x: Remove more useless workflows
Remi Gacogne [Mon, 7 Jul 2025 13:04:06 +0000 (15:04 +0200)]
Merge pull request #15784 from rgacogne/ddist20-backport-15747
dnsdist-2.0.x: Backport 15747 - Add a Lua binding to get objects declared in YAML
Remi Gacogne [Thu, 3 Jul 2025 15:26:32 +0000 (17:26 +0200)]
dnsdist-2.0.x: Remove more useless workflows
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 1 Jul 2025 08:01:06 +0000 (10:01 +0200)]
dnsdist: Add an explicit return type to getObjectFromYAMLConfiguration
As suggested by Otto.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
9263b481855ffc6e3324f2d342ce66b57e4ac0fa )
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Mon, 30 Jun 2025 11:37:20 +0000 (13:37 +0200)]
dnsdist: Add a regression test for `getObjectFromYAMLConfiguration`
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
80f292fc5d96ab59afea63aaf8323267081b9114 )
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Mon, 30 Jun 2025 10:23:56 +0000 (12:23 +0200)]
dnsdist: Add a Lua binding to get objects declared in YAML
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
d98d50b1939016d03a522cb6a79834088949e913 )
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Thu, 3 Jul 2025 12:05:05 +0000 (14:05 +0200)]
Merge pull request #15780 from rgacogne/ddist20-backport-15751
dnsdist-2.0.x: Backport to 15751 - Error on unsupported backend protocols from YAML
Remi Gacogne [Thu, 3 Jul 2025 12:04:53 +0000 (14:04 +0200)]
Merge pull request #15779 from rgacogne/ddist20-backport-15750
dnsdist-2.0.x: Backport 15750 - Fix logging and XSK YAML settings being ignored
Remi Gacogne [Thu, 3 Jul 2025 12:04:39 +0000 (14:04 +0200)]
Merge pull request #15778 from rgacogne/ddist20-backport-15739
dnsdist-2.0.x: Backport 15739 - lmdb-safe: Fix a small race in `getMDBEnv`
Remi Gacogne [Thu, 3 Jul 2025 12:04:27 +0000 (14:04 +0200)]
Merge pull request #15777 from rgacogne/ddist20-backport-15738
dnsdist-2.0.x: Backport 15738 - Prevent users from opening the same LMDB twice
Remi Gacogne [Thu, 3 Jul 2025 12:04:13 +0000 (14:04 +0200)]
Merge pull request #15776 from rgacogne/ddist20-backport-15735
dnsdist-2.0.x: Backport 15735 - lmdb-safe: Improve the scalability of transaction maps
Remi Gacogne [Thu, 3 Jul 2025 12:04:00 +0000 (14:04 +0200)]
Merge pull request #15775 from rgacogne/ddist20-backport-15718
dnsdist-2.0.x: Backport 15718 - Return nil for non-existing Lua objects
Remi Gacogne [Thu, 3 Jul 2025 12:03:48 +0000 (14:03 +0200)]
Merge pull request #15774 from rgacogne/ddist20-backport-15707
dnsdist-2.0.x: Backport 15707 - Prevent Lua bindings for backend from crashing on empty backend
Remi Gacogne [Thu, 3 Jul 2025 12:02:37 +0000 (14:02 +0200)]
Merge pull request #15781 from rgacogne/ddist20-backport-15754
dnsdist-2.0.x: Backport 15754 - Error if backend certificate validation is enabled without a subject name
Remi Gacogne [Mon, 30 Jun 2025 13:58:07 +0000 (15:58 +0200)]
dnsdist: Lowercase the TLS provider name for YAML-originated backends
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
7106cda315dff6969062899ecb6360768e9f3fee )
Remi Gacogne [Mon, 30 Jun 2025 13:57:10 +0000 (15:57 +0200)]
dnsdist: Error if backend certificate validation is enabled without a subject name
We can only validate if a proper subject name or subject address is passed,
and we do not want to silently disable validation, so let's refuse to start.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
8a9142058f82e0fd70b428ddc50848f00a59d2c4 )
Remi Gacogne [Mon, 30 Jun 2025 13:15:46 +0000 (15:15 +0200)]
dnsdist: Error on unsupported backend protocols from YAML
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
def4733d1eb32c80ccc79f7f6ed39ab7be49f33f )
Remi Gacogne [Mon, 30 Jun 2025 13:00:51 +0000 (15:00 +0200)]
dnsdist: Fix logging and XSK YAML settings being ignored
It turns out that the configuration we receive from the
serde parser was not correctly translated to our own
configuration.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
f18dbfa050241f925b19c53653b3ef4061afa1e1 )
Remi Gacogne [Fri, 27 Jun 2025 19:54:41 +0000 (21:54 +0200)]
lmdb-safe: Do not use strerror() which is not thread-safe
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
7ad3b74ea624b47441f717ad7ced209ef01869c8 )
Remi Gacogne [Fri, 27 Jun 2025 14:40:38 +0000 (16:40 +0200)]
lmdb-safe: Fix a small race in `getMDBEnv`
I believe there is a small race in the `getMDBEnv`: if the database
file does not exist when we first try to get the file metadata, we
acquire the lock then create a new `MDBEnv` and store it in the map.
But what happens if a different thread created the database between
our first check and the call to `MDBEnv`? I believe we would create
a new environment and override the existing entry in the map, bypassing
the check.
This commit introduces a second check right after acquiring the lock
to prevent that.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
57224e94d9189f4916bbd7b2aaf61fa0821b1a2c )
Remi Gacogne [Fri, 27 Jun 2025 14:37:46 +0000 (16:37 +0200)]
dnsdist: Prevent users from opening the same LMDB twice
As noted by Peter: "LMBD requires that database is opened
exactly once per process. Opening multiple times breaks file
locks silently, which leads to corrupting the database."
While I don't expect users to actually do that, we already have
a nice helper function to prevent this mistake in the lmdb-safe
code base, so let's use it.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
0cfa000e3f7a47c96a3129d5ef27ce13022707f6 )
Remi Gacogne [Fri, 27 Jun 2025 10:15:48 +0000 (12:15 +0200)]
lmdb-safe: Use unordered maps for the transaction maps
We don't need the maps to be ordered, and unordered maps are usually
slightly faster.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
883aec59cf56f9345b0a229ed7af35490a113494 )
Remi Gacogne [Fri, 27 Jun 2025 10:12:29 +0000 (12:12 +0200)]
lmdb-safe: Improve the scalability of transaction maps
This commit improves the scalability of the transaction maps by
moving from a `mutex` to a `shared_mutex` and making the stored value
atomic. This allows accessing the maps concurrently from different threads
as long as the entry for the thread exists, and we fall back to
taking a full lock otherwise.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
c340aa91bf37d8105d2b2390eecbadfca88c1d27 )
Remi Gacogne [Mon, 23 Jun 2025 12:55:34 +0000 (14:55 +0200)]
dnsdist: Rely upon type deduction, as suggested by Miod
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
a5ede88eea4c55f8e5536ca17b4fbb2992bb6271 )
Remi Gacogne [Mon, 23 Jun 2025 12:30:33 +0000 (14:30 +0200)]
dnsdist: Return `nil` for non-existing Lua objects
Until now we were returning an empty shared pointer, but unfortunately
LuaWrapper is currently not smart enough to turn that into a `nil`
value.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
4b07e08e8b5aeef617c016c00ca344669870a8ce )
Remi Gacogne [Fri, 20 Jun 2025 12:06:22 +0000 (14:06 +0200)]
dnsdist: Prevent Lua bindings for backend from crashing on empty backend
We currently return an empty `std::shared_ptr` when the backend is not
set (self-answered response, for example), and unfortunately LuaWrapper
is not smart enough to make that equivalent to `nil`, so testing whether
the backend is valid from Lua is not possible. While I would prefer to
fix that, this fix prevents us from crashing when calling the bindings
associated to a backend with an empty shared pointer.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
a12bea636790a3be73516a2a24af1a8351c016c5 )
Remi Gacogne [Wed, 2 Jul 2025 13:58:00 +0000 (15:58 +0200)]
Merge pull request #15760 from rgacogne/ddist20-disable-unneeded-workflows
dnsdist-2.0.x: Disable non-dnsdist workflows
Remi Gacogne [Tue, 1 Jul 2025 08:28:48 +0000 (10:28 +0200)]
dnsdist-2.0.x: Disable non-dnsdist workflows
Remi Gacogne [Tue, 1 Jul 2025 07:52:07 +0000 (09:52 +0200)]
Merge pull request #15734 from rgacogne/ddist20-15729
dnsdist-2.0.x: Backport 15729 - Enforce that additional addresses are DoT/DoH only
Remi Gacogne [Thu, 26 Jun 2025 12:24:10 +0000 (14:24 +0200)]
dnsdist: Remove useless empty line
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
8f90541906c3040727bca08bafbe63ce38a23153 )
Remi Gacogne [Thu, 26 Jun 2025 12:21:38 +0000 (14:21 +0200)]
dnsdist: Reduce the complexity of the YAML frontend code
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
d64936e33c62fda11e5b5cd2832b2daefae67b26 )
Remi Gacogne [Thu, 26 Jun 2025 10:46:49 +0000 (12:46 +0200)]
dnsdist: Enforce that additional addresses are DoT/DoH only
I want to support additional addresses on frontends for all protocols,
but the amount of code to change is too important for the 2.0 branch.
So for now, let's document and enforce the current limitation to prevent
surprises.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit
df7cbdb3d7f66e3bfe788d149661101bcac36647 )
Remi Gacogne [Mon, 23 Jun 2025 08:42:56 +0000 (10:42 +0200)]
dnsdist: Generate files when building the release tarball
Some build systems are very unhappy with `dnsdist-rust-lib/rust/src/lib.rs`
not existing before actually starting the build process (mostly because
of `cargo-vendor`), so let's make their life easier.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Otto Moerbeek [Fri, 20 Jun 2025 14:23:23 +0000 (16:23 +0200)]
Merge pull request #15709 from omoerbeek/libssl-depends-on-libcrypto
libssl depends on libcrypto
Otto Moerbeek [Fri, 20 Jun 2025 13:50:14 +0000 (15:50 +0200)]
libssl depends on libcrypto
Otherwise all kinds of meson setup logic goes wrong,
symptom: DoH connection from 127.0.0.1:44825 expected ALPN value 'h2', got ''
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Otto Moerbeek [Fri, 20 Jun 2025 12:03:49 +0000 (14:03 +0200)]
Merge pull request #15706 from rgacogne/rec-fix-zonetocache-unit-tests
rec: Prevent a crash in the ZoneToCache unit tests
Remi Gacogne [Fri, 20 Jun 2025 11:49:07 +0000 (13:49 +0200)]
Merge pull request #15703 from rgacogne/ddist-fix-documentation-workflow
dnsdist: Fix the documentation workflow
Otto Moerbeek [Fri, 20 Jun 2025 11:30:04 +0000 (13:30 +0200)]
Merge pull request #15705 from omoerbeek/lmdb-unsafe
auth: rename bswap64 to pdns_bswap64.
Remi Gacogne [Fri, 20 Jun 2025 11:23:01 +0000 (13:23 +0200)]
rec: Prevent a crash in the ZoneToCache unit tests
Since
753ad2390bfbc90f6bc1b68f980ef4bcdc2cfddc ZoneToCache checks
whether a given zone has a recursive forward rule, so we need the
Domain map to be properly initialized in all tests, as they can be
executed in random order.
Fixes:
```
ThreadSanitizer:DEADLYSIGNAL
==35969==ERROR: ThreadSanitizer: SEGV on unknown address 0x000000000018 (pc 0x5568e9f8bb04 bp 0x4c00000000000 sp 0x7ffcc13b77f0 T35969)
==35969==The signal is caused by a READ memory access.
==35969==Hint: address points to the zero page.
#0 std::_Hashtable<DNSName, std::pair<DNSName const, SyncRes::AuthDomain>, std::allocator<std::pair<DNSName const, SyncRes::AuthDomain> >, std::__detail::_Select1st, std::equal_to<DNSName>, std::hash<DNSName>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::empty() const /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/hashtable.h:653:23 (testrunner+0x47fb04)
#1 std::unordered_map<DNSName, SyncRes::AuthDomain, std::hash<DNSName>, std::equal_to<DNSName>, std::allocator<std::pair<DNSName const, SyncRes::AuthDomain> > >::empty() const /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/unordered_map.h:306:21 (testrunner+0x47fb04)
#2 SyncRes::getBestAuthZone(DNSName*) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/syncres.cc:2464:29 (testrunner+0x47fb04)
#3 SyncRes::isRecursiveForward(DNSName const&) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/syncres.cc:1098:21 (testrunner+0x47fb04)
#4 ZoneData::ZoneToCache(RecZoneToCache::Config const&) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/rec-zonetocache.cc:423:28 (testrunner+0x404931)
#5 RecZoneToCache::ZoneToCache(RecZoneToCache::Config const&, RecZoneToCache::State&) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/rec-zonetocache.cc:473:10 (testrunner+0x4059fd)
#6 rec_zonetocache::zonemdGenericTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pdns::ZoneMD::Config, pdns::ZoneMD::Config, unsigned long) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/test-rec-zonetocache.cc:157:3 (testrunner+0x7a7113)
#7 rec_zonetocache::test_zonetocachegeneric::test_method() /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/test-rec-zonetocache.cc:177:3 (testrunner+0x7a60a5)
#8 rec_zonetocache::test_zonetocachegeneric_invoker() /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/test-rec-zonetocache.cc:173:1 (testrunner+0x7a60a5)
#9 boost::detail::function::void_function_invoker0<void (*)(), void>::invoke(boost::detail::function::function_buffer&) /usr/include/boost/function/function_template.hpp:117:11 (testrunner+0x57dfab)
#10 <null> <null> (libboost_unit_test_framework.so.1.74.0+0x323fd)
#11 boost::execution_monitor::catch_signals(boost::function<int ()> const&) <null> (libboost_unit_test_framework.so.1.74.0+0x30b0c)
#12 boost::execution_monitor::execute(boost::function<int ()> const&) <null> (libboost_unit_test_framework.so.1.74.0+0x30b90)
#13 boost::execution_monitor::vexecute(boost::function<void ()> const&) <null> (libboost_unit_test_framework.so.1.74.0+0x30c60)
#14 boost::unit_test::unit_test_monitor_t::execute_and_translate(boost::function<void ()> const&, unsigned long) <null> (libboost_unit_test_framework.so.1.74.0+0x5f1a0)
#15 <null> <null> (libboost_unit_test_framework.so.1.74.0+0x37cdf)
#16 <null> <null> (libboost_unit_test_framework.so.1.74.0+0x381d0)
#17 <null> <null> (libboost_unit_test_framework.so.1.74.0+0x381d0)
#18 boost::unit_test::framework::run(unsigned long, bool) <null> (libboost_unit_test_framework.so.1.74.0+0x3bf36)
#19 boost::unit_test::unit_test_main(bool (*)(), int, char**) <null> (libboost_unit_test_framework.so.1.74.0+0x5e10d)
#20 main /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/testrunner.cc:84:10 (testrunner+0xc85591)
#21 <null> <null> (libc.so.6+0x27249)
#22 __libc_start_main <null> (libc.so.6+0x27304)
#23 _start <null> (testrunner+0x1b79e0)
```
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Otto Moerbeek [Fri, 20 Jun 2025 10:48:45 +0000 (12:48 +0200)]
Typo in comment
Co-authored-by: Miod Vallat <miod.vallat@powerdns.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Otto Moerbeek [Fri, 20 Jun 2025 10:44:48 +0000 (12:44 +0200)]
auth: rename bswap64 to pdns_bswap64.
Using bswap64 causes infinite reursion if your system has a #define bswap64 __builtin_bswap64
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Remi Gacogne [Fri, 20 Jun 2025 09:54:50 +0000 (11:54 +0200)]
documentation: DNSdist needs python-yaml
Remi Gacogne [Fri, 20 Jun 2025 09:43:18 +0000 (11:43 +0200)]
dnsdist: Fix the documentation workflow
We need to generate the parts of the documentation sources that are no
longer present in the repository before building it.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Fri, 20 Jun 2025 09:32:42 +0000 (11:32 +0200)]
Merge pull request #15701 from rgacogne/ddist-20-b1-changelog-secpoll
dnsdist: Update ChangeLog and security polling zone for 2.0.0-beta1
Otto Moerbeek [Fri, 20 Jun 2025 08:23:31 +0000 (10:23 +0200)]
Merge pull request #15700 from omoerbeek/coverity-
20250620
Two Coverity issues, the truncation is meant to be
Otto Moerbeek [Fri, 20 Jun 2025 07:15:34 +0000 (09:15 +0200)]
Two Coverity issues, the truncation is meant to be
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Peter van Dijk [Thu, 19 Jun 2025 15:24:09 +0000 (17:24 +0200)]
Merge pull request #15697 from Habbie/pickselfweighted-added-5
auth docs: note that pickselfweighted() is new in auth 5
Peter van Dijk [Thu, 19 Jun 2025 14:53:18 +0000 (16:53 +0200)]
auth docs: note that pickselfweighted() is new in auth 5
Otto Moerbeek [Thu, 19 Jun 2025 14:17:38 +0000 (16:17 +0200)]
Merge pull request #15684 from PowerDNS/dependabot/pip/regression-tests.recursor-dnssec/protobuf-5.29.5
build(deps): bump protobuf from 5.28.2 to 5.29.5 in /regression-tests.recursor-dnssec
Miod Vallat [Thu, 19 Jun 2025 14:05:55 +0000 (16:05 +0200)]
Merge pull request #15693 from miodvallat/rmdb
better rm in LMDB
Remi Gacogne [Thu, 19 Jun 2025 13:41:34 +0000 (15:41 +0200)]
dnsdist: Update ChangeLog and security polling zone for 2.0.0-beta1
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Miod Vallat [Thu, 19 Jun 2025 13:30:26 +0000 (15:30 +0200)]
Use faster logic in deleteDomainRecords().
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Otto Moerbeek [Thu, 19 Jun 2025 08:47:59 +0000 (10:47 +0200)]
Merge pull request #15692 from omoerbeek/rec-yaml-aliases
rec: introduce aliases for camelCase field names
Remi Gacogne [Thu, 19 Jun 2025 08:40:27 +0000 (10:40 +0200)]
Merge pull request #15690 from rgacogne/ddist-meta-api
dnsdist: Add Lua APIs to set Meta tags in protobuf messages
Remi Gacogne [Thu, 19 Jun 2025 07:56:07 +0000 (09:56 +0200)]
dnsdist: Apply Otto's suggestions (thanks!)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Thu, 19 Jun 2025 07:42:59 +0000 (09:42 +0200)]
Merge pull request #15691 from rgacogne/ddist-completion-chains
dnsdist: Generate completion and help for rule chains
Otto Moerbeek [Thu, 19 Jun 2025 07:32:28 +0000 (09:32 +0200)]
Merge pull request #15695 from omoerbeek/dnsdist-meson-libcrypto
dnsdist meson: followup to #15685 to avoid compiler warnings
Otto Moerbeek [Thu, 19 Jun 2025 07:28:06 +0000 (09:28 +0200)]
Merge pull request #15646 from Habbie/rrsig-times-1982
rec validate: use rfc1982 math for RRSIG timestamps
Otto Moerbeek [Thu, 19 Jun 2025 07:24:09 +0000 (09:24 +0200)]
Merge pull request #15652 from omoerbeek/rec-ztc-vs-recforward
rec: when using ZTC, do not store non-auth data if the name is subject to recursive forwarding
Otto Moerbeek [Thu, 19 Jun 2025 07:06:41 +0000 (09:06 +0200)]
Add missed zoneSizeHint
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Otto Moerbeek [Thu, 19 Jun 2025 07:01:38 +0000 (09:01 +0200)]
dnsdist meson: followup to #15685 to avoid compiler warnings
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Miod Vallat [Wed, 18 Jun 2025 12:00:48 +0000 (14:00 +0200)]
Simple test for replaceRRSet ANY operation.
Also exercize the newest pdnsutil syntax while there.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Miod Vallat [Wed, 18 Jun 2025 09:47:30 +0000 (11:47 +0200)]
Correctly handle QType::ANY in replaceRRSet().
Co-Authored-By: HÃ¥kan Lindqvist <h@qw.se>
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Miod Vallat [Wed, 18 Jun 2025 09:26:49 +0000 (11:26 +0200)]
Rework deleteDomainRecords() interface.
NFC yet, will benefit upcoming commits.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Remi Gacogne [Tue, 17 Jun 2025 14:23:28 +0000 (16:23 +0200)]
dnsdist: Reorder files in Makefile.am
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 17 Jun 2025 14:21:14 +0000 (16:21 +0200)]
dnsdist: Yet another formatting mistake
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 17 Jun 2025 14:19:10 +0000 (16:19 +0200)]
dnsdist: Appease code formatting daemon
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 17 Jun 2025 14:11:43 +0000 (16:11 +0200)]
dnsdist: Generate completion and help for rule chains
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 17 Jun 2025 13:03:33 +0000 (15:03 +0200)]
dnsdist: Move completion-related code to a separate file
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Otto Moerbeek [Tue, 17 Jun 2025 12:39:59 +0000 (14:39 +0200)]
Add docs, typos
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Otto Moerbeek [Tue, 17 Jun 2025 12:12:40 +0000 (14:12 +0200)]
Merge pull request #15689 from omoerbeek/auth-no-more-instances-vec
auth: stop maintaining vector of ueberbackend instances
Remi Gacogne [Tue, 17 Jun 2025 10:24:59 +0000 (12:24 +0200)]
Merge pull request #15687 from rgacogne/ddist-remove-generated-doc-files
dnsdist: Remove generated YAML documentation files
Otto Moerbeek [Wed, 30 Apr 2025 13:12:37 +0000 (15:12 +0200)]
rec: provide snake_case aliases for CamelCase names in YAML config
Remi Gacogne [Mon, 16 Jun 2025 09:01:31 +0000 (11:01 +0200)]
dnsdist: Add Lua APIs to set Meta tags in protobuf messages
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Otto Moerbeek [Tue, 17 Jun 2025 09:47:11 +0000 (11:47 +0200)]
auth: stop maintaining vector of backend instances
Unused. Fixes #15688
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Remi Gacogne [Tue, 17 Jun 2025 08:48:12 +0000 (10:48 +0200)]
dnsdist: Remove generated YAML documentation files
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 17 Jun 2025 09:29:58 +0000 (11:29 +0200)]
Merge pull request #15682 from pieterlexis/superfluous-code-block
doc(dnsdist): remove superfluous code block in YAML config
Otto Moerbeek [Tue, 17 Jun 2025 08:52:44 +0000 (10:52 +0200)]
Merge pull request #15685 from omoerbeek/dnsdist-ssl-crypto
meson: Pick -lcrypto up from the spot defined by dep_libcrypto
Remi Gacogne [Tue, 17 Jun 2025 08:41:40 +0000 (10:41 +0200)]
dnsdist: remove superfluous code block in YAML config
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 17 Jun 2025 08:14:37 +0000 (10:14 +0200)]
Merge pull request #15676 from nokia/restartcnt
dnsdist: add a count to track the number of query restarts
Remi Gacogne [Tue, 17 Jun 2025 08:11:11 +0000 (10:11 +0200)]
Merge pull request #15670 from nokia/policy
dnsdist: add route policy of first ordered then weighted
Otto Moerbeek [Tue, 17 Jun 2025 07:59:29 +0000 (09:59 +0200)]
Pick -lcrypto up from the spot defined by dep_libcrypto
Also avoid a bunch of warning: as compile commands don't take -L:
c++: warning: argument unused during compilation: '-L/usr/local/eboringssl/lib' [-Wunused-command-line -argument]
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Oliver Chen [Tue, 17 Jun 2025 04:00:14 +0000 (04:00 +0000)]
Indentation correction
dependabot[bot] [Tue, 17 Jun 2025 04:00:00 +0000 (04:00 +0000)]
build(deps): bump protobuf in /regression-tests.recursor-dnssec
Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 5.28.2 to 5.29.5.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/protobuf_release.bzl)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v5.28.2...v5.29.5)
---
updated-dependencies:
- dependency-name: protobuf
dependency-version: 5.29.5
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Oliver Chen [Tue, 17 Jun 2025 03:49:48 +0000 (03:49 +0000)]
Add regression test for the restart counting
Oliver Chen [Tue, 17 Jun 2025 03:01:02 +0000 (03:01 +0000)]
Optimize policy with already sorted servers and add tag testing
Pieter Lexis [Mon, 16 Jun 2025 20:24:58 +0000 (22:24 +0200)]
doc(dnsdist): remove superfluous code block in YAML config
Miod Vallat [Mon, 16 Jun 2025 13:56:45 +0000 (15:56 +0200)]
Merge pull request #15679 from miodvallat/fragmented_sun
Provide an IP_OFFMASK value for systems lacking it
Miod Vallat [Mon, 16 Jun 2025 12:46:27 +0000 (14:46 +0200)]
Merge pull request #15681 from miodvallat/geoipfeetshooting
Lua GeoIPQueryAttribute documentation update
Miod Vallat [Mon, 16 Jun 2025 12:13:59 +0000 (14:13 +0200)]
Fix documentation build warning.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Miod Vallat [Mon, 16 Jun 2025 12:13:09 +0000 (14:13 +0200)]
Mention that GeoIPQueryAttribute symbolic constants in Lua are v5+.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Miod Vallat [Mon, 16 Jun 2025 10:58:58 +0000 (12:58 +0200)]
Provide an IP_OFFMASK value for systems lacking it.
Fixes: #8060
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Remi Gacogne [Mon, 16 Jun 2025 07:32:28 +0000 (09:32 +0200)]
Merge pull request #15662 from rgacogne/ddist-apply-yaml-items-early
dnsdist: Apply generic YAML configuration items early
Oliver Chen [Mon, 16 Jun 2025 06:08:12 +0000 (06:08 +0000)]
Change integer type from uint8_t to int in the docs
Miod Vallat [Mon, 16 Jun 2025 06:04:22 +0000 (08:04 +0200)]
Merge pull request #15672 from miodvallat/silencing_the_signing
Stop listing the trusted keys at the end of tests
Otto Moerbeek [Mon, 16 Jun 2025 05:50:46 +0000 (07:50 +0200)]
Merge pull request #15661 from omoerbeek/rec-nta-retrieval
rec: fix negativetrustanchor.server CH TXT query processing (disabled by default)