]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Mon, 25 Oct 2021 08:17:55 +0000 (10:17 +0200)]
dnsdist: Add an error message on a DoH internal pipe short read
Remi Gacogne [Thu, 21 Oct 2021 12:51:14 +0000 (14:51 +0200)]
dnsdist: Read as many DoH responses as possible before yielding
We want to read as many responses from the pipe as possible before
giving up. Even if we are overloaded and fighting with the DoH connections
for the CPU, the first thing we need to do is to send responses to free slots
anyway, otherwise queries and responses are piling up in our pipes, consuming
memory and likely coming up too late after the client has gone away.
Remi Gacogne [Thu, 21 Oct 2021 08:07:03 +0000 (10:07 +0200)]
Merge pull request #10866 from omoerbeek/rec-docs-settings-ref
rec: Fix the settings link in ConfigSetting docs
Remi Gacogne [Thu, 21 Oct 2021 08:06:33 +0000 (10:06 +0200)]
Merge pull request #10870 from neheb/uniq
use make_unique instead of new
Otto Moerbeek [Wed, 20 Oct 2021 07:19:33 +0000 (09:19 +0200)]
Merge pull request #10868 from neheb/make
get rid of make_pair
Rosen Penev [Wed, 20 Oct 2021 02:34:16 +0000 (19:34 -0700)]
use make_unique instead of new
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev [Mon, 18 Oct 2021 20:32:33 +0000 (13:32 -0700)]
get rid of make_pair
With C++17, std::pair can completely replace make_pair
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Remi Gacogne [Tue, 19 Oct 2021 15:07:26 +0000 (17:07 +0200)]
Merge pull request #10646 from neheb/empla
convert make_pair to emplace
Otto [Tue, 19 Oct 2021 14:37:30 +0000 (16:37 +0200)]
Fix the settings link
Remi Gacogne [Tue, 19 Oct 2021 08:51:38 +0000 (10:51 +0200)]
Merge pull request #10858 from rgacogne/ddist-170a2
dnsdist: Prepare ChangeLog and secpoll updates for 1.7.0-alpha2
Peter van Dijk [Tue, 19 Oct 2021 08:10:44 +0000 (10:10 +0200)]
Merge pull request #10860 from Habbie/builder-no-fail-fast
gh actions: in the daily package build job, do not abort all if one failed
Peter van Dijk [Tue, 19 Oct 2021 08:06:13 +0000 (10:06 +0200)]
Merge pull request #10861 from Habbie/auth-stat_t
auth: include stat_t.hh in dist tarball
Remi Gacogne [Tue, 19 Oct 2021 06:59:16 +0000 (08:59 +0200)]
dnsdist: 1.7.0-alpha2 was not released on Monday, second attempt :)
Rosen Penev [Sun, 15 Aug 2021 00:07:33 +0000 (17:07 -0700)]
convert make_pair to emplace
emplace* forwards the arguments directly. Avoids needing make_pair.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Otto Moerbeek [Mon, 18 Oct 2021 18:50:11 +0000 (20:50 +0200)]
Merge pull request #10859 from omoerbeek/rec-docs-underline-and-ref
rec: Underlining and getting refs right is hard
Otto Moerbeek [Mon, 18 Oct 2021 15:42:48 +0000 (17:42 +0200)]
Merge pull request #10856 from omoerbeek/misc-plural-s
Make addS() more versatile and use modern C++ (enable_if_t).
Peter van Dijk [Mon, 18 Oct 2021 15:28:34 +0000 (17:28 +0200)]
auth: include stat_t.hh in dist tarball
Peter van Dijk [Mon, 18 Oct 2021 14:48:57 +0000 (16:48 +0200)]
gh actions: in the daily package build job, do not abort all if one failed
Otto [Mon, 18 Oct 2021 14:21:06 +0000 (16:21 +0200)]
Underlining and getting refs right is hard
Otto Moerbeek [Mon, 18 Oct 2021 12:15:31 +0000 (14:15 +0200)]
Merge pull request #10795 from pieterlexis/ddist-rec-syslog-ident
Rec and dnsdist: add syslog identifier to service file
Otto Moerbeek [Mon, 18 Oct 2021 11:53:15 +0000 (13:53 +0200)]
Merge pull request #10842 from omoerbeek/rec-appliedPolicyTrigger-value
rec: correct appliedPolicyTrigger value for IP matches
Otto Moerbeek [Mon, 18 Oct 2021 11:52:37 +0000 (13:52 +0200)]
Merge pull request #10843 from chbruyand/recursor-logs-nod
rec: NOD - use structured logging API
Otto [Mon, 18 Oct 2021 10:19:46 +0000 (12:19 +0200)]
Process review comments
Remi Gacogne [Mon, 18 Oct 2021 10:16:51 +0000 (12:16 +0200)]
Merge pull request #10841 from rgacogne/ddist-gnutls-client-creds
dnsdist: Use per-thread credentials for GnuTLS client connections
Remi Gacogne [Mon, 18 Oct 2021 10:04:43 +0000 (12:04 +0200)]
Add SSLKEYLOGFILE to the spell checker allow list
Remi Gacogne [Mon, 18 Oct 2021 09:59:05 +0000 (11:59 +0200)]
dnsdist: Prepare ChangeLog and secpoll updates for 1.7.0-alpha2
Otto Moerbeek [Mon, 18 Oct 2021 09:33:41 +0000 (11:33 +0200)]
Merge pull request #10857 from omoerbeek/test-fix-unsigned-warnings
Fix two unsigned warnings as seen on OpenBSD/clang
Otto [Mon, 18 Oct 2021 07:27:29 +0000 (09:27 +0200)]
Fix two unsigned warnings as seen on OpenBSD/clang
Otto [Mon, 18 Oct 2021 07:24:25 +0000 (09:24 +0200)]
Make addS() more versatile and use modern C++ (enable_if_t).
Use new args pdnsutil to get primary vs primaries correct.
Otto Moerbeek [Fri, 15 Oct 2021 18:09:10 +0000 (20:09 +0200)]
Merge pull request #10851 from Habbie/fix-url
recursor: fix url in socket dir log message
Remi Gacogne [Fri, 15 Oct 2021 18:08:02 +0000 (20:08 +0200)]
Merge pull request #10853 from rgacogne/ddist-unbreak-dynblocks-unit-tests
dnsdist: Unbreak the dynblock unit tests
Remi Gacogne [Fri, 15 Oct 2021 16:10:43 +0000 (18:10 +0200)]
dnsdist: Unbreak the dynblock unit tests
10835 conflicted with 10833 in a way not caught by our workflow.
Remi Gacogne [Fri, 15 Oct 2021 15:32:45 +0000 (17:32 +0200)]
Merge pull request #10835 from rgacogne/ddist-smt-reason
dnsdist: Allow setting the block reason from the SMT callback
Remi Gacogne [Fri, 15 Oct 2021 15:29:44 +0000 (17:29 +0200)]
Merge pull request #10846 from rgacogne/ddist-shared-to-unique-structs-size
dnsdist: Replace shared by unique ptrs, reduce structs size
Charles-Henri Bruyand [Fri, 15 Oct 2021 14:11:45 +0000 (16:11 +0200)]
rec: only initialize NOD logger if it might be used
Peter van Dijk [Fri, 15 Oct 2021 12:55:49 +0000 (14:55 +0200)]
recursor: fix url in socket dir log message
Otto [Fri, 15 Oct 2021 10:07:29 +0000 (12:07 +0200)]
Also moved setting of hit value to find functions mostly.
In a few cases (wildcard processing) the matched value is not the
hit as seen by the find function and an overide is needed.
Otto [Fri, 15 Oct 2021 09:48:20 +0000 (11:48 +0200)]
Process review comments and extend unit tests
Remi Gacogne [Fri, 15 Oct 2021 08:34:59 +0000 (10:34 +0200)]
dnsdist: Fix formatting
Otto Moerbeek [Fri, 15 Oct 2021 08:02:54 +0000 (10:02 +0200)]
Merge pull request #10848 from omoerbeek/dnsdist-includedir-recursion
dnsdist: Only set recursion protection once we know we do not return
Otto [Fri, 15 Oct 2021 06:33:17 +0000 (08:33 +0200)]
Only set recursion protection once we know we do not return because of an error.
Also catch exception thrown by executeCode.
Peter van Dijk [Thu, 14 Oct 2021 14:25:40 +0000 (16:25 +0200)]
Merge pull request #10827 from Habbie/gh-actions-3
more GH actions work
Otto Moerbeek [Thu, 14 Oct 2021 14:03:47 +0000 (16:03 +0200)]
Merge pull request #10847 from omoerbeek/update-dnsmessage.proto
Sync dnsmessage.proto
Otto [Thu, 14 Oct 2021 12:24:07 +0000 (14:24 +0200)]
Sync with https://github.com/PowerDNS/dnsmessage
Peter van Dijk [Fri, 8 Oct 2021 11:23:48 +0000 (13:23 +0200)]
gh actions: ixfrdist, auth-algorithms, auth-py, auth gsqlite3, auth-nobackend
also, remove dnsdist from CircleCI as it's already fully covered in GH Actions now
Otto Moerbeek [Thu, 14 Oct 2021 12:19:13 +0000 (14:19 +0200)]
Merge pull request #10567 from omoerbeek/rec-eventtrace
Rec: eventtrace
Otto [Thu, 14 Oct 2021 10:57:12 +0000 (12:57 +0200)]
whitespace in dnsmessage.proto
Otto [Thu, 14 Oct 2021 10:30:25 +0000 (12:30 +0200)]
Fix rebase botch that partially undid PR #10797
Remi Gacogne [Thu, 14 Oct 2021 08:41:58 +0000 (10:41 +0200)]
dnsdist: Replace shared by unique ptrs, reduce structs size
This commit replaces the DNSCrypt and QTaq shared pointers by unique ones,
since these are not actually shared. This should improve performance a
bit since we no longer need to clear a cache line for the reference
counter. It also reduces the size of the IDState and DNSQuestion structures
by a few bytes.
It also removes a few fields in the DOHUnit structure that are redundant
with ones in the embedded IDState structure.
The rest of the commit re-order fields in various structures to prevent
wasted space due to padding, reducing the memory footprint of these structs.
On x86_64 (in bytes):
IDState 344 -> 328
DOHUnit 712 -> 632
TCPQuery 416 -> 400
IncomingTCPConnectionState 968 -> 944
TCPConnectionToBackend 728 -> 712
DownstreamState 2368 -> 2240
Remi Gacogne [Thu, 14 Oct 2021 07:35:37 +0000 (09:35 +0200)]
Merge pull request #10782 from rgacogne/ddist-more-http2-coverage
dnsdist: Improve the coverage of the outgoing DoH code
Remi Gacogne [Thu, 14 Oct 2021 07:34:54 +0000 (09:34 +0200)]
Merge pull request #10844 from rgacogne/ddist-clear-udp-states-tcp-only-backend
dnsdist: Clear the UDP states of TCP-only backends
Remi Gacogne [Wed, 13 Oct 2021 16:06:28 +0000 (18:06 +0200)]
dnsdist: Clear the UDP states of TCP-only backends
Charles-Henri Bruyand [Tue, 12 Oct 2021 09:36:07 +0000 (11:36 +0200)]
rec: NOD - use structured logging API
Otto [Wed, 13 Oct 2021 14:24:28 +0000 (16:24 +0200)]
Add regression test
Otto Moerbeek [Wed, 13 Oct 2021 13:59:00 +0000 (15:59 +0200)]
Merge pull request #10840 from omoerbeek/rec-test-extra-records-in-answer
rec: Add tests (with and without DNSSEC validation) for records in the answer section not asked for
Otto [Wed, 13 Oct 2021 13:45:16 +0000 (15:45 +0200)]
Put the right string into appliedPolicyTrigger for Netmask matching rules
(ns, client, response). The NetMaskTree has it.
Remi Gacogne [Thu, 30 Sep 2021 14:57:47 +0000 (16:57 +0200)]
dnsdist: Add XForwarded to the spell checker list
Remi Gacogne [Thu, 30 Sep 2021 14:52:59 +0000 (16:52 +0200)]
dnsdist: Add regression tests for outgoing DoH health-checks and X-Forwarded-* headers
Remi Gacogne [Thu, 30 Sep 2021 14:51:58 +0000 (16:51 +0200)]
dnsdist: Document addXForwardedHeaders on DoH backends
Remi Gacogne [Thu, 30 Sep 2021 13:49:23 +0000 (15:49 +0200)]
dnsdist: Clean up Lua objects before exiting, in coverage mode
Remi Gacogne [Thu, 30 Sep 2021 13:42:25 +0000 (15:42 +0200)]
dnsdist: Better handling of exceptions in the TCP/DoH workers
Exceptions might be raised when the process is exiting because the
internal pipes have been closed by the remote end, for example when
coverage mode is enabled.
Remi Gacogne [Wed, 13 Oct 2021 13:18:40 +0000 (15:18 +0200)]
Merge pull request #10775 from rgacogne/ddist-fix-unit-tests-connectivity
dnsdist: Fix the unit tests to handle v4-only or v6-only connectivity
Remi Gacogne [Wed, 13 Oct 2021 13:17:53 +0000 (15:17 +0200)]
Merge pull request #10823 from rgacogne/ddist-outgoing-release-buffer-renego
dnsdist: Disable TLS renegotiation, release buffers for outgoing TLS
Remi Gacogne [Wed, 13 Oct 2021 13:16:56 +0000 (15:16 +0200)]
Merge pull request #10822 from rgacogne/ddist-document-dynblock-ringbuffer-link
dnsdist: Document the ringbuffers' size impacts Dynamic Blocks
Remi Gacogne [Wed, 13 Oct 2021 13:16:44 +0000 (15:16 +0200)]
Merge pull request #10821 from rgacogne/rename-queued-processed-remote-logger
Rename the 'queued' metric of the Remote Logger to 'processed'
Remi Gacogne [Wed, 13 Oct 2021 13:16:25 +0000 (15:16 +0200)]
Merge pull request #10820 from rgacogne/ddist-add-hashed-changelog-upgrade
dnsdist: Add #10157 to the upgrade guide and the 1.7.0-alpha1 ChangeLog
Otto Moerbeek [Wed, 13 Oct 2021 12:36:09 +0000 (14:36 +0200)]
Merge pull request #10836 from rgacogne/rec-no-false-sharing
rec: Prevent false sharing for the recursor's metrics
Otto [Wed, 13 Oct 2021 07:19:19 +0000 (09:19 +0200)]
Fix botch spotted by rgacogne: setup the part of the protobuf message that
is copied to the packet cache *before* we do the copy.
Otto [Fri, 17 Sep 2021 13:45:39 +0000 (15:45 +0200)]
Correct type for timestamp
Otto [Fri, 17 Sep 2021 09:38:07 +0000 (11:38 +0200)]
Process review comments: move semantics, more general event names and
re-adjust timebase if an event is added before the current base.
Otto [Wed, 15 Sep 2021 11:29:06 +0000 (13:29 +0200)]
Update docs now that a few things have changed.
Otto [Wed, 15 Sep 2021 09:02:20 +0000 (11:02 +0200)]
Allow for a custom eventtype, with a user-specified name
Otto [Wed, 15 Sep 2021 08:20:20 +0000 (10:20 +0200)]
Move timestamps to a signed type
Otto [Wed, 15 Sep 2021 08:10:26 +0000 (10:10 +0200)]
Comments in .proto file
Otto [Mon, 23 Aug 2021 10:07:08 +0000 (12:07 +0200)]
Docs for event tracing
Otto [Thu, 19 Aug 2021 09:46:49 +0000 (11:46 +0200)]
Basic runtime global enabling/disabling of event traces via setting and rec_control
Otto [Tue, 6 Jul 2021 14:44:08 +0000 (16:44 +0200)]
Add explicit uint32_t and int32_t setter, GCC thinks it is needed
Otto [Tue, 6 Jul 2021 11:27:26 +0000 (13:27 +0200)]
Move the sending of protobuf resp down so it has all the events
Otto [Tue, 6 Jul 2021 10:58:50 +0000 (12:58 +0200)]
Add pre gettagffi trace points
Otto [Tue, 6 Jul 2021 09:20:53 +0000 (11:20 +0200)]
Start of protobuf handling
Otto [Wed, 16 Jun 2021 10:34:01 +0000 (12:34 +0200)]
Start of eventTrace code.
Missing: config, many trace points, protobuf export.
Remi Gacogne [Wed, 13 Oct 2021 12:03:45 +0000 (14:03 +0200)]
dnsdist: Use per-thread credentials for GnuTLS client connections
It looks like there is a race in some versions when the credentials
are shared between several threads opening TLS client connections.
Otto [Wed, 13 Oct 2021 11:28:03 +0000 (13:28 +0200)]
Add tests (with and without DNSSEC validation) for records in the answer section not asked for
Fixes #6332
Otto Moerbeek [Wed, 13 Oct 2021 10:32:16 +0000 (12:32 +0200)]
Merge pull request #10797 from omoerbeek/rec-pc-ttl-no-records
rec: Use packetcache-servfail-ttl for all packet cache entries considered an error reply
Otto [Wed, 13 Oct 2021 10:26:16 +0000 (12:26 +0200)]
Add missing include
Otto [Wed, 13 Oct 2021 09:12:28 +0000 (11:12 +0200)]
Convert more atomics to stat_t and eliminate AtomicCounter form the recursor
(except in cases that are shared by with auth).
I changed two AtomicCounters to atomic<int32>; their range is limited and
they are not updated very frequently.
Otto Moerbeek [Wed, 13 Oct 2021 08:01:00 +0000 (10:01 +0200)]
Merge pull request #10837 from gmelikov/examples
Recursor: clean up kv-example-script.lua
Remi Gacogne [Wed, 13 Oct 2021 07:24:47 +0000 (09:24 +0200)]
Merge pull request #10832 from phonedph1/concurrent-idea
dnsdist: Rule for basing decisions on outstanding queries in a pool
Otto Moerbeek [Tue, 12 Oct 2021 15:42:16 +0000 (17:42 +0200)]
Merge pull request #10838 from omoerbeek/rec-structlog-backward
rec: A compatibiliy macro to have bold old and new (structured) logging.
Otto Moerbeek [Tue, 12 Oct 2021 15:42:01 +0000 (17:42 +0200)]
Merge pull request #10839 from omoerbeek/rec-rpz-extendedErrorCode-docs
rec: Provide a little example for extendedErrorCode/extendedErrorExtra
ph1 [Tue, 12 Oct 2021 15:29:34 +0000 (09:29 -0600)]
test case
ph1 [Tue, 12 Oct 2021 15:29:23 +0000 (09:29 -0600)]
typo; update version; actually include the Lua binding
Otto Moerbeek [Tue, 12 Oct 2021 13:49:56 +0000 (15:49 +0200)]
typo
Co-authored-by: Remi Gacogne <github@coredump.fr>
Remi Gacogne [Tue, 12 Oct 2021 12:56:37 +0000 (14:56 +0200)]
Merge pull request #10814 from chbruyand/dnsdist-setednsoptionaction
dnsdist: add lua support for SetEDNSOptionAction
Remi Gacogne [Tue, 12 Oct 2021 12:56:13 +0000 (14:56 +0200)]
Merge pull request #10833 from chbruyand/dnsdist-protocol-grepq
dnsdist: add incoming and outgoing protocols to grepq
Otto [Tue, 12 Oct 2021 12:45:47 +0000 (14:45 +0200)]
Spelling: add EDE as a word
Otto [Tue, 12 Oct 2021 12:40:35 +0000 (14:40 +0200)]
Tell the default value inn the upgrade notes
Otto [Tue, 12 Oct 2021 11:47:22 +0000 (13:47 +0200)]
Provide a little example for extendedErrorCode/extendedErrorExtra
Otto [Tue, 12 Oct 2021 10:19:55 +0000 (12:19 +0200)]
Add setting to switch to non-structed logging
George Melikov [Mon, 11 Oct 2021 16:01:23 +0000 (19:01 +0300)]
kv-example-script.lua: clean up spaces + empty lines