]>
git.ipfire.org Git - thirdparty/pdns.git/log
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 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 [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: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
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
Otto Moerbeek [Thu, 8 Jun 2023 10:49:01 +0000 (12:49 +0200)]
(Partial) Tidy
Otto Moerbeek [Thu, 8 Jun 2023 10:44:17 +0000 (12:44 +0200)]
rec: keep track of max depth reaches and report it if !quiet
This is enough for now, mostly a metric only interesting to devs
Otto Moerbeek [Thu, 8 Jun 2023 10:11:26 +0000 (12:11 +0200)]
Extend SNMP test to include new OIDs
Otto Moerbeek [Thu, 8 Jun 2023 09:52:02 +0000 (11:52 +0200)]
Add Prometheus and SNMP version of NOD/UDR metrics
Otto Moerbeek [Thu, 8 Jun 2023 09:30:01 +0000 (11:30 +0200)]
Keep track of metrics for NOD and UDR events.
While there, change level of ndr logs to Notice, it was Debug before
Otto Moerbeek [Wed, 7 Jun 2023 10:27:30 +0000 (12:27 +0200)]
Add docs
Otto Moerbeek [Wed, 7 Jun 2023 10:10:26 +0000 (12:10 +0200)]
Add rec_control command to list supported algo names
Otto Moerbeek [Wed, 7 Jun 2023 09:42:48 +0000 (11:42 +0200)]
Distinguish auto and manual disabling in logging
Otto Moerbeek [Wed, 7 Jun 2023 08:19:13 +0000 (10:19 +0200)]
Impelement verification of algos 5 and 7
Remi Gacogne [Wed, 8 Mar 2023 17:25:30 +0000 (18:25 +0100)]
YaHTTP: Prevent integer overflow on very large chunks
If the chunk_size is very close to the maximum value of an integer,
we trigger an integer overflow when checking if we have a trailing
newline after the payload.
Reported by OSS-Fuzz as:
https://oss-fuzz.com/testcase-detail/
6439610474692608
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56804
Otto Moerbeek [Tue, 6 Jun 2023 14:11:59 +0000 (16:11 +0200)]
rec: implement a way to disable specific DNSSEC algorithms
This could be needed when runing RHEL9, to avoid having zones signed
with algo 5 or 7 going Bogus. RHEL9 does not support these algorithms,
unless the globalsecurity policy is modified.
Peter van Dijk [Tue, 6 Jun 2023 07:49:02 +0000 (09:49 +0200)]
Merge pull request #12889 from Habbie/auth-4.8-eol-update
auth 4.8: EOL update
Peter van Dijk [Mon, 5 Jun 2023 14:34:15 +0000 (16:34 +0200)]
auth 4.8: EOL update
Otto Moerbeek [Fri, 2 Jun 2023 12:16:40 +0000 (14:16 +0200)]
delint
Otto Moerbeek [Fri, 2 Jun 2023 12:09:10 +0000 (14:09 +0200)]
Merge pull request #12793 from omoerbeek/assorted-delint
Another set of delinting
Otto Moerbeek [Fri, 2 Jun 2023 09:05:33 +0000 (11:05 +0200)]
Merge pull request #12867 from omoerbeek/rec-prep-4.9.0-beta1
rec: Prep for rec-4.9.0-beta1
Otto Moerbeek [Wed, 31 May 2023 08:28:00 +0000 (10:28 +0200)]
Prep for rec-4.9.0-beta1
Peter van Dijk [Thu, 1 Jun 2023 19:13:48 +0000 (21:13 +0200)]
Merge pull request #12880 from Habbie/swagger-no-docker
swagger-syntax-check: run outside of Docker
Peter van Dijk [Thu, 1 Jun 2023 18:39:56 +0000 (20:39 +0200)]
builder-dispatch: add debian-bookworm target to defaults
Peter van Dijk [Thu, 1 Jun 2023 16:57:17 +0000 (18:57 +0200)]
swagger-syntax-check: run outside of Docker
Peter van Dijk [Thu, 1 Jun 2023 16:28:17 +0000 (18:28 +0200)]
Merge pull request #12875 from Habbie/upgrade-notes-46-47-master
auth upgrading: fix 4.6/4.7 header; update LMDB text
romeroalx [Thu, 1 Jun 2023 14:57:59 +0000 (16:57 +0200)]
Merge pull request #12856 from romeroalx/enable-ipv6-actions-container
Enable ipv6 for actions running on docker containers
Peter van Dijk [Thu, 1 Jun 2023 12:03:58 +0000 (14:03 +0200)]
auth upgrading: fix 4.6/4.7 header; update LMDB text
Peter van Dijk [Thu, 1 Jun 2023 11:16:54 +0000 (13:16 +0200)]
Merge pull request #12874 from Habbie/auth-4.8.0-docs-secpoll
auth-4.8.0: docs and secpoll
Peter van Dijk [Thu, 1 Jun 2023 11:04:59 +0000 (13:04 +0200)]
auth-4.8.0: docs and secpoll
aerique [Thu, 1 Jun 2023 10:56:12 +0000 (12:56 +0200)]
Merge pull request #12873 from aerique/feature/add-bookwork-to-repo-test-script
Add Bookworm to repo test script.
Erik Winkels [Thu, 1 Jun 2023 09:41:23 +0000 (11:41 +0200)]
Add Bookworm to repo test script.
Add Debian Bookworm for `auth-master` & `auth-48` to repo test script.
Peter van Dijk [Wed, 31 May 2023 21:14:54 +0000 (23:14 +0200)]
Merge pull request #12866 from Habbie/auth-lmdb-dup-delete
auth lmdb: delete duplicate domain entries in deleteDomain
Otto Moerbeek [Tue, 30 May 2023 12:24:33 +0000 (14:24 +0200)]
Add test and fix TC=1 adding of SOA record
Otto Moerbeek [Tue, 30 May 2023 11:49:03 +0000 (13:49 +0200)]
rec: add SOA to RPZ result if configured to do so
Fixes #8232
Peter van Dijk [Wed, 31 May 2023 11:54:11 +0000 (13:54 +0200)]
Merge pull request #12860 from Habbie/auth-ent-wildcard
auth: do not answer with broken TYPE0 data when expanding an ENT wildcard
Peter van Dijk [Wed, 31 May 2023 11:53:52 +0000 (13:53 +0200)]
Merge pull request #12859 from Habbie/pdnsutil-edit-zone-wrong-key
pdnsutil: if user pushes unknown key in response to "problem with zone" prompt, do not throw away their changes
Peter van Dijk [Sun, 28 May 2023 21:05:35 +0000 (23:05 +0200)]
auth: do not answer with broken TYPE0 data when expanding an ENT wildcard
Otto Moerbeek [Tue, 16 May 2023 10:05:07 +0000 (12:05 +0200)]
Process review comments
Otto Moerbeek [Wed, 10 May 2023 07:44:52 +0000 (09:44 +0200)]
Reformat
Otto Moerbeek [Tue, 9 May 2023 11:15:34 +0000 (13:15 +0200)]
More delinting
A set of random files made clean. During this process .clang-tidy.full
was also amended a bit.
Peter van Dijk [Wed, 31 May 2023 08:33:56 +0000 (10:33 +0200)]
document shards=1 enforcement
Peter van Dijk [Wed, 31 May 2023 08:33:48 +0000 (10:33 +0200)]
format
Peter van Dijk [Wed, 31 May 2023 08:25:12 +0000 (10:25 +0200)]
simplify
Otto Moerbeek [Wed, 31 May 2023 07:52:37 +0000 (09:52 +0200)]
Merge pull request #12862 from omoerbeek/rec-recursion-bound
rec: bound maximum recursion depth to 16.
Otto Moerbeek [Wed, 31 May 2023 07:52:22 +0000 (09:52 +0200)]
Merge pull request #12861 from omoerbeek/rec-no-refresh
rec: Introduce a way to completely disable root-refresh
Peter van Dijk [Wed, 31 May 2023 07:34:02 +0000 (09:34 +0200)]
use d_transactiondomain[id]
Peter van Dijk [Wed, 31 May 2023 07:27:48 +0000 (09:27 +0200)]
Update modules/lmdbbackend/lmdbbackend.cc
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>