]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Mon, 15 Nov 2021 09:17:05 +0000 (10:17 +0100)]
dnsdist: Apply suggestions from code review (thanks, Otto!)
Remi Gacogne [Mon, 8 Nov 2021 09:42:46 +0000 (10:42 +0100)]
dnsdist: Formatting...
Remi Gacogne [Mon, 8 Nov 2021 09:39:11 +0000 (10:39 +0100)]
dnsdist: Test that reused connections are moved to the active queue
Remi Gacogne [Fri, 5 Nov 2021 16:44:59 +0000 (17:44 +0100)]
dnsdist: Split the list of downstream connections in two, active and idle
This way we can easily keep track of how many idle connections we have,
and try to reuse these first.
Remi Gacogne [Wed, 3 Nov 2021 14:03:58 +0000 (15:03 +0100)]
dnsdist: Fix formatting of the connections cache unit tests
Remi Gacogne [Wed, 3 Nov 2021 13:43:00 +0000 (14:43 +0100)]
dnsdist: Add a unit test for the outgoing connection cache
Remi Gacogne [Wed, 3 Nov 2021 11:01:05 +0000 (12:01 +0100)]
dnsdist: Fix a race condition in the XFR regression tests
Remi Gacogne [Tue, 2 Nov 2021 16:56:04 +0000 (17:56 +0100)]
dnsdist: Refactoring of the TCP connection caches
Remi Gacogne [Fri, 29 Oct 2021 15:17:55 +0000 (17:17 +0200)]
dnsdist: Fix missing 'continue's when cleaning the connections cleaning code
Remi Gacogne [Thu, 28 Oct 2021 08:44:49 +0000 (10:44 +0200)]
dnsdist: Remove unreachable code in HTTP/2 connections cleanup
Reported by Coverity (CID 373724).
Otto Moerbeek [Mon, 8 Nov 2021 09:02:19 +0000 (10:02 +0100)]
Merge pull request #10865 from Habbie/api-v1
auth, rec: put some json on /api/v1
Peter van Dijk [Mon, 8 Nov 2021 09:01:52 +0000 (10:01 +0100)]
Merge pull request #10951 from mind04/pdns-catch-more
auth: improve dnsname exception handling for SOA records
Otto Moerbeek [Mon, 8 Nov 2021 09:01:01 +0000 (10:01 +0100)]
Merge pull request #10955 from omoerbeek/dnsdist-regexp-suffixmatch
If possible, use SuffixMatchNodeRule() instead of RegexRule()
Pieter Lexis [Mon, 8 Nov 2021 07:49:19 +0000 (08:49 +0100)]
Merge pull request #10960 from nivex/patch-1
Fix quad9 example servers that had run together
Nivex [Mon, 8 Nov 2021 02:55:33 +0000 (21:55 -0500)]
Fix quad9 example servers that had run together
Kees Monshouwer [Fri, 5 Nov 2021 10:24:53 +0000 (11:24 +0100)]
auth: improve SOA dnsname exception handling
Remi Gacogne [Fri, 5 Nov 2021 16:09:08 +0000 (17:09 +0100)]
Merge pull request #10943 from rgacogne/credentials-script-salt-unsigned
Credentials: EVP_PKEY_CTX_set1_scrypt_salt() takes an `unsigned char*`
Otto [Fri, 5 Nov 2021 14:48:28 +0000 (15:48 +0100)]
If possible, use SuffixMatchNodeRule() instead of RegexRule
Otto [Fri, 5 Nov 2021 12:47:23 +0000 (13:47 +0100)]
Reformat
Peter van Dijk [Tue, 19 Oct 2021 10:32:05 +0000 (12:32 +0200)]
remove a bunch of unnecessary &
Peter van Dijk [Tue, 19 Oct 2021 10:22:56 +0000 (12:22 +0200)]
auth, rec: put some json on /api/v1
Pieter Lexis [Fri, 5 Nov 2021 12:15:15 +0000 (13:15 +0100)]
Merge pull request #10945 from rgacogne/auth-pdns-control-link
auth: pdns_control needs to be linked against libcrypto now
Otto Moerbeek [Fri, 5 Nov 2021 10:08:22 +0000 (11:08 +0100)]
Merge pull request #10940 from omoerbeek/rec-prep-4.4.7-4.5.7
rec: Prep for rec-4.4.7 and rec-4.5.7
Otto Moerbeek [Fri, 5 Nov 2021 09:17:42 +0000 (10:17 +0100)]
cast arg of EVP_PKEY_CTX_set1_pbe_pass() to const void * to satisfy both openssl 1.1 and 3.0
Remi Gacogne [Fri, 5 Nov 2021 09:00:22 +0000 (10:00 +0100)]
Merge pull request #10919 from rgacogne/more-udp-stats
Add more UDP error metrics (checksum, IPv6)
Remi Gacogne [Thu, 4 Nov 2021 08:44:56 +0000 (09:44 +0100)]
Merge pull request #10944 from rgacogne/ddist-disable-includedir-tests
dnsdist: Disable 'IncludeDir' tests on GH actions
Otto Moerbeek [Wed, 3 Nov 2021 19:14:33 +0000 (20:14 +0100)]
Merge pull request #10929 from omoerbeek/carbon-tests-rec-auth
Carbon regression test for rec and auth.
Remi Gacogne [Wed, 3 Nov 2021 16:13:14 +0000 (17:13 +0100)]
dnsdist: Disable 'IncludeDir' tests on GH actions
Remi Gacogne [Wed, 3 Nov 2021 15:43:04 +0000 (16:43 +0100)]
auth: pdns_control needs to be linked against libcrypto now
Remi Gacogne [Wed, 3 Nov 2021 15:14:40 +0000 (16:14 +0100)]
Credentials: EVP_PKEY_CTX_set1_scrypt_salt() takes an `unsigned char*`
Otto [Wed, 3 Nov 2021 14:58:49 +0000 (15:58 +0100)]
Remove dnsdist specific tests that remained
Remi Gacogne [Fri, 29 Oct 2021 12:47:15 +0000 (14:47 +0200)]
dnsdist: Remove one last forgotten boost::bind in dnsdist.hh
Remi Gacogne [Fri, 29 Oct 2021 12:46:43 +0000 (14:46 +0200)]
Remove tabs in misc.cc
Remi Gacogne [Thu, 28 Oct 2021 07:35:15 +0000 (09:35 +0200)]
Add 'csum' to the list of allowed words (SNMP checksum metrics)
Remi Gacogne [Wed, 27 Oct 2021 16:50:28 +0000 (18:50 +0200)]
dnsdist: Document new UDP error metrics
Remi Gacogne [Wed, 27 Oct 2021 16:50:04 +0000 (18:50 +0200)]
rec: Add IPv6 UDP error metrics
Remi Gacogne [Wed, 27 Oct 2021 16:41:18 +0000 (18:41 +0200)]
auth: Add IPv6 UDP error metrics
Remi Gacogne [Wed, 27 Oct 2021 16:17:52 +0000 (18:17 +0200)]
dnsdist: Fix dumpStats() formatting
Remi Gacogne [Wed, 27 Oct 2021 15:59:48 +0000 (17:59 +0200)]
dnsdist: Add IPv6 UDP error metrics
Remi Gacogne [Wed, 27 Oct 2021 15:32:01 +0000 (17:32 +0200)]
auth: Add 'InCsumErrors' UDP metric
Remi Gacogne [Wed, 27 Oct 2021 15:16:07 +0000 (17:16 +0200)]
rec: Add 'InCsumErrors' UDP metric
Remi Gacogne [Wed, 27 Oct 2021 15:04:59 +0000 (17:04 +0200)]
dnsdist: Add 'InCsumErrors' UDP metric
Remi Gacogne [Wed, 3 Nov 2021 14:14:54 +0000 (15:14 +0100)]
Merge pull request #10927 from rgacogne/ddist-doc-svc-nodata
dnsdist: Reply with NODATA for non-SVC types in the SVC documentation
Remi Gacogne [Wed, 3 Nov 2021 14:13:47 +0000 (15:13 +0100)]
Merge pull request #10923 from rgacogne/ddist-retain-capabilities
dnsdist: Add the ability to retain select capabilities at runtime
Otto [Wed, 3 Nov 2021 12:22:25 +0000 (13:22 +0100)]
Prep for rec-4.4.7 and rec-4.5.7
Otto Moerbeek [Wed, 3 Nov 2021 10:21:17 +0000 (11:21 +0100)]
Merge pull request #10930 from omoerbeek/rec-control-stream
rec: Move to a stream based socket for the control channel
Otto Moerbeek [Wed, 3 Nov 2021 09:04:02 +0000 (10:04 +0100)]
Merge pull request #10904 from omoerbeek/untrusted-zones-docs
Some things you should do when handling untrusted zone files.
Otto Moerbeek [Wed, 3 Nov 2021 09:03:45 +0000 (10:03 +0100)]
Merge pull request #10901 from rgacogne/zoneparsertng-width
ZoneParserTNG: Stricter checks when loading a zone file
Peter van Dijk [Mon, 1 Nov 2021 19:25:06 +0000 (20:25 +0100)]
Merge pull request #10935 from EugenMayer/patch-1
Remove debug print line flooding logs
Eugen Mayer [Mon, 1 Nov 2021 12:39:14 +0000 (13:39 +0100)]
Remove debug print line flooding logs
Remove debug log line printing a statement into stdout all the time.
Otto Moerbeek [Mon, 1 Nov 2021 10:31:13 +0000 (11:31 +0100)]
Update security.rst
Otto Moerbeek [Mon, 1 Nov 2021 10:29:38 +0000 (11:29 +0100)]
Update security.rst
Otto Moerbeek [Mon, 1 Nov 2021 07:28:18 +0000 (08:28 +0100)]
Do not read further than the length we received, the string might
be followed by a passed fd.
Interesting to see that OpenBSD chops up recvs based on the sends,
while Linux is happy to read more than was passed to the corresponding
send call if another send was called after that.
Otto [Fri, 29 Oct 2021 13:41:34 +0000 (15:41 +0200)]
Use FDWrapper
Otto [Fri, 29 Oct 2021 07:46:17 +0000 (09:46 +0200)]
Move to a stream based socket for the control channel
Otto Moerbeek [Fri, 29 Oct 2021 10:22:14 +0000 (12:22 +0200)]
Merge pull request #10916 from omoerbeek/rec-reformat
rec: Reformat a bunch of recursor specific files
Otto [Fri, 29 Oct 2021 08:51:15 +0000 (10:51 +0200)]
Carbon regression test for rec and auth.
Copied from dnsdist one. That test uses two difference instance names, but
rec and auth settings do not allow that.
Otto Moerbeek [Fri, 29 Oct 2021 09:44:24 +0000 (11:44 +0200)]
Merge pull request #10926 from omoerbeek/rec-carbon-hostname-regression
rec: Fix regression of carbon-ourname
Remi Gacogne [Fri, 29 Oct 2021 09:05:30 +0000 (11:05 +0200)]
Merge pull request #10876 from rgacogne/ddist-doh-memory
dnsdist: Stop over-allocating for DoH queries
Remi Gacogne [Fri, 29 Oct 2021 08:15:36 +0000 (10:15 +0200)]
Merge pull request #10922 from rgacogne/ddist-without-nghttp2
dnsdist: Fix build without nghttp2
Remi Gacogne [Fri, 29 Oct 2021 07:44:27 +0000 (09:44 +0200)]
dnsdist: Reply with NODATA for non-SVC types in the SVC documentation
Otto [Fri, 29 Oct 2021 06:42:55 +0000 (08:42 +0200)]
Fix regression of carbon-ourname introduced in
58d7ad6bfb0d46b7617ca984b90feacae35752c8
Noted by @mnordhoff
Remi Gacogne [Thu, 28 Oct 2021 14:12:52 +0000 (16:12 +0200)]
dnsdist: Add the ability to retain select capabilities at runtime
Remi Gacogne [Thu, 28 Oct 2021 12:40:06 +0000 (14:40 +0200)]
dnsdist: Fix build without nghttp2
Remi Gacogne [Thu, 28 Oct 2021 09:30:21 +0000 (11:30 +0200)]
Merge pull request #10917 from rgacogne/ddist-cleanup-steps
dnsdist: Remove the useless step parameter in TCP and HTTP/2 unit tests
Remi Gacogne [Wed, 27 Oct 2021 14:21:56 +0000 (16:21 +0200)]
Fix a linking issue with GCC 11.1.0
Remi Gacogne [Wed, 27 Oct 2021 14:21:05 +0000 (16:21 +0200)]
dnsdist: Remove the useless step parameter in TCP and HTTP/2 unit tests
As suggested by Otto.
Otto [Wed, 27 Oct 2021 13:13:35 +0000 (15:13 +0200)]
Reformat a bunch of recursor specific files
Otto Moerbeek [Wed, 27 Oct 2021 12:11:51 +0000 (14:11 +0200)]
Merge pull request #10908 from omoerbeek/rec-SHA-vs-SHA
rec: A SHA-384 DS should not trump a SHA-256 one, so only potentially zap SHA-1
Otto Moerbeek [Wed, 27 Oct 2021 10:21:58 +0000 (12:21 +0200)]
Merge pull request #10905 from omoerbeek/rec-wipe-cache-typed-validation
rec: rec_control wipe-cache-typed should check if a qtype arg is present
Remi Gacogne [Wed, 27 Oct 2021 10:04:14 +0000 (12:04 +0200)]
Merge pull request #10862 from rgacogne/ddist-mix-different-clients-over-backend-conn
dnsdist: Use the same outgoing TCP connection for different clients
Otto [Wed, 27 Oct 2021 10:01:09 +0000 (12:01 +0200)]
A SHA-384 DS should not trump a SHA-256 one, so only potentially zap SHA-1
Otto [Wed, 27 Oct 2021 07:38:10 +0000 (09:38 +0200)]
wipe-cache-typed should check if a qtype arg is present and valid
Remi Gacogne [Wed, 27 Oct 2021 07:25:47 +0000 (09:25 +0200)]
dnsdist: Do not try to reconnect UDP sockets for TCP-only backends
Otto [Wed, 27 Oct 2021 07:02:30 +0000 (09:02 +0200)]
Some things you should do when handling untrusted zone files.
Remi Gacogne [Tue, 26 Oct 2021 15:36:30 +0000 (17:36 +0200)]
dnsdist: Also allocate buffers and connect sockets for CLI backends
Remi Gacogne [Tue, 26 Oct 2021 13:29:31 +0000 (15:29 +0200)]
dnsdist: Make ConnectionToBackend::release() purely virtual
Remi Gacogne [Tue, 26 Oct 2021 13:23:55 +0000 (15:23 +0200)]
dnsdist: Don't copy the header twice when editing the ID
As suggested by Otto.
Remi Gacogne [Tue, 26 Oct 2021 10:12:29 +0000 (12:12 +0200)]
dnsdist: Check that the configuration values do not silently overflow
Remi Gacogne [Tue, 26 Oct 2021 09:53:24 +0000 (11:53 +0200)]
dnsdist: Do not create outgoing UDP sockets for TCP-only backends
Remi Gacogne [Tue, 26 Oct 2021 07:44:07 +0000 (09:44 +0200)]
dnsdist: Fix MaxIdeTime -> MaxIdleTime typos
Remi Gacogne [Wed, 20 Oct 2021 14:00:14 +0000 (16:00 +0200)]
dnsdist: Prevent allocating then releasing memory for backends
Remi Gacogne [Wed, 20 Oct 2021 13:58:49 +0000 (15:58 +0200)]
dnsdist: Fix an issue with the connection count when reconnect failed
Remi Gacogne [Tue, 19 Oct 2021 15:15:47 +0000 (17:15 +0200)]
dnsdist: Better detection of closed TLS downstream connections
Remi Gacogne [Tue, 19 Oct 2021 10:33:33 +0000 (12:33 +0200)]
dnsdist: Fix proxy protocol handling (and broken tests)
Remi Gacogne [Tue, 19 Oct 2021 07:24:52 +0000 (09:24 +0200)]
dnsdist: Prevent UB by not accessing the DNS header via a (potentially) misaligned address
Remi Gacogne [Fri, 15 Oct 2021 15:36:16 +0000 (17:36 +0200)]
dnsdist: Use the same outgoing TCP connection for different clients
Remi Gacogne [Tue, 26 Oct 2021 08:04:51 +0000 (10:04 +0200)]
Attempt to fix the paths to the suppressions files in forks
Otto Moerbeek [Wed, 20 Oct 2021 09:47:36 +0000 (11:47 +0200)]
Limit #include depth
Remi Gacogne [Wed, 20 Oct 2021 09:12:20 +0000 (11:12 +0200)]
ZoneParserTNG: Stricted parsing of $GENERATE parameters
Remi Gacogne [Mon, 18 Oct 2021 13:02:20 +0000 (15:02 +0200)]
ZoneParserTNG: Explicitely use the size of the buffer
Remi Gacogne [Mon, 18 Oct 2021 09:07:30 +0000 (11:07 +0200)]
ZoneParserTNG: Cap the width of $GENERATE template to the output size
It does not make sense to use a width larger than our output buffer
since it would get truncated anyway.
Remi Gacogne [Tue, 26 Oct 2021 15:05:15 +0000 (17:05 +0200)]
Merge pull request #10902 from rgacogne/pin-docutils
Pin docutils to < 0.18 for now
Remi Gacogne [Tue, 26 Oct 2021 14:07:03 +0000 (16:07 +0200)]
Pin docutils to < 0.18 for now
We will have to deal with that pain later, but let's unbreak our
CI first.
Remi Gacogne [Tue, 26 Oct 2021 12:50:29 +0000 (14:50 +0200)]
Merge pull request #10900 from rgacogne/nmg-no-noexcept
NetmaskTree: Drop the 'noexcept' qualifier on the TreeNode ctor
Remi Gacogne [Tue, 26 Oct 2021 07:16:52 +0000 (09:16 +0200)]
NetmaskTree: Drop the 'noexcept' qualifier on the TreeNode ctor
Coverity reports that it was already too restrictive with the existing
Netmask key (see CID
1465032 ) and clearly is now for the AddressAndPort
one (CID 373668).
Remi Gacogne [Mon, 25 Oct 2021 15:41:30 +0000 (17:41 +0200)]
Merge pull request #10897 from rgacogne/ddist-unbreak-el7-nullptr
dnsdist: Fix the dynblock tests for EL7
Remi Gacogne [Mon, 25 Oct 2021 14:01:11 +0000 (16:01 +0200)]
dnsdist: Fix the dynblock tests for EL7
Otto Moerbeek [Mon, 25 Oct 2021 13:22:24 +0000 (15:22 +0200)]
Merge pull request #10893 from appliedprivacy/patch-7
docs: describe resource-limits metric
Otto Moerbeek [Mon, 25 Oct 2021 11:51:51 +0000 (13:51 +0200)]
Merge pull request #10892 from appliedprivacy/patch-6
rec metrics docs: add ref to stats-rec-control-disabled-list