]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto Moerbeek [Fri, 10 Jun 2022 06:32:23 +0000 (08:32 +0200)]
Beter naming of closure
Otto Moerbeek [Wed, 1 Jun 2022 08:46:19 +0000 (10:46 +0200)]
Modify journal availability test.
To both test for NOTIFY_SOCKET (to see if we're runnign underst systemd)
and availbility of the journal socket (to see if systemd-journal is
active)
Otto Moerbeek [Tue, 31 May 2022 12:56:16 +0000 (14:56 +0200)]
Use systemd-journal for structured logging if it is available
Otto Moerbeek [Tue, 31 May 2022 07:30:21 +0000 (09:30 +0200)]
Merge pull request #11642 from omoerbeek/structured-logging2
rec: Structured logging for housekeeping
Otto Moerbeek [Mon, 30 May 2022 13:47:18 +0000 (15:47 +0200)]
Merge pull request #11646 from omoerbeek/rec-prep-4.7.0
Rec: prep 4.7.0
Otto Moerbeek [Tue, 24 May 2022 11:47:44 +0000 (13:47 +0200)]
Secpoll and changelog
Peter van Dijk [Fri, 27 May 2022 09:15:01 +0000 (11:15 +0200)]
Merge pull request #11650 from mnordhoff/patch-11
auth: Clarify 4.3.0 upgrade note
Matt Nordhoff [Thu, 26 May 2022 05:45:24 +0000 (05:45 +0000)]
auth: Clarify 4.3.0 upgrade note
It was a little unclear that it doesn't apply to something like 4.2.0-beta2.
Otto Moerbeek [Wed, 25 May 2022 08:31:23 +0000 (10:31 +0200)]
Merge pull request #11644 from omoerbeek/rec-deprecate-xpf-settings
rec: Deprecation warning for XPF settings.
Otto Moerbeek [Wed, 25 May 2022 07:45:08 +0000 (09:45 +0200)]
Deprecation warning for XPF settings.
Plus a tweak in the associated structured logging.
Remi Gacogne [Wed, 25 May 2022 07:46:20 +0000 (09:46 +0200)]
Merge pull request #11643 from rgacogne/ddist-mac-large-buffer
dnsdist: Accept large buffers in getMACAddress()
Remi Gacogne [Tue, 24 May 2022 15:26:29 +0000 (17:26 +0200)]
dnsdist: Accept large buffers in getMACAddress()
Otto Moerbeek [Tue, 24 May 2022 13:47:10 +0000 (15:47 +0200)]
Use a name for `const std::shared_ptr<Log::Logger>&`, call it `Logr::log_t`
Otto Moerbeek [Tue, 24 May 2022 10:12:30 +0000 (12:12 +0200)]
Move housekeeping and associated code to strcutured logging
Otto Moerbeek [Tue, 24 May 2022 11:24:21 +0000 (13:24 +0200)]
EOL update for 4.7.0
Remi Gacogne [Tue, 24 May 2022 10:28:02 +0000 (12:28 +0200)]
Merge pull request #11591 from rgacogne/ddist-mac-netlink
dnsdist: Support link-level address retrieval for IPv6 as well
Peter van Dijk [Tue, 24 May 2022 10:05:52 +0000 (12:05 +0200)]
Merge pull request #11639 from Habbie/packages-sdig-dot
auth packaging: add DoT support to sdig
Otto Moerbeek [Tue, 24 May 2022 08:28:46 +0000 (10:28 +0200)]
Merge pull request #11631 from omoerbeek/structured-logging1
rec: use structured logging for startup and config reporting
Peter van Dijk [Tue, 24 May 2022 08:15:20 +0000 (10:15 +0200)]
auth packaging: add DoT support to sdig
Otto Moerbeek [Tue, 24 May 2022 06:51:56 +0000 (08:51 +0200)]
Apply suggestions from code review
Co-authored-by: Charles-Henri Bruyand <charleshenri.bruyand+github@gmail.com>
Remi Gacogne [Mon, 23 May 2022 11:30:47 +0000 (13:30 +0200)]
dnsdist: Proper handling of scope IDs for MAC addresses
Thanks to Peter for the correct check!
Remi Gacogne [Mon, 23 May 2022 11:30:06 +0000 (13:30 +0200)]
dnsdist: Document the return value of getMACAddress()
As suggested by Otto.
Remi Gacogne [Mon, 23 May 2022 11:13:29 +0000 (13:13 +0200)]
dnsdist: Better descripton of getMACAddress() in the documentation
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Remi Gacogne [Mon, 23 May 2022 11:13:17 +0000 (13:13 +0200)]
dnsdist: Better descripton of getMACAddress() in the console help
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Remi Gacogne [Mon, 23 May 2022 11:12:13 +0000 (13:12 +0200)]
Merge pull request #11637 from Habbie/dnsdist-getverbose
dnsdist: add getVerbose() function
Peter van Dijk [Mon, 23 May 2022 10:33:46 +0000 (12:33 +0200)]
Update pdns/dnsdistdist/docs/reference/config.rst
Co-authored-by: Remi Gacogne <github@coredump.fr>
Peter van Dijk [Mon, 23 May 2022 10:10:28 +0000 (12:10 +0200)]
dnsdist: add getVerbose() function
Remi Gacogne [Mon, 23 May 2022 09:16:29 +0000 (11:16 +0200)]
Merge pull request #11606 from rgacogne/ddist-lua-binding-dns-payload
dnsdist: Add Lua bindings to access the DNS payload as a string
Remi Gacogne [Mon, 23 May 2022 09:09:07 +0000 (11:09 +0200)]
dnsdist: Fix typo reported by Peter (thanks!)
Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
Otto Moerbeek [Mon, 23 May 2022 08:26:07 +0000 (10:26 +0200)]
Merge pull request #11609 from omoerbeek/rec-api-allow-empty
Rec: api allow empty allow-from
Otto Moerbeek [Thu, 19 May 2022 14:08:48 +0000 (16:08 +0200)]
More conversions, startup should be done now
Otto Moerbeek [Thu, 19 May 2022 11:06:57 +0000 (13:06 +0200)]
Try to be smart: if to_string() or toLogString() is there, use it.
Otto Moerbeek [Wed, 18 May 2022 15:38:32 +0000 (17:38 +0200)]
More smart logging of iterables and inline a few methods
Otto Moerbeek [Wed, 18 May 2022 14:32:10 +0000 (16:32 +0200)]
Some more conversions to structured logging
Otto Moerbeek [Wed, 18 May 2022 11:42:27 +0000 (13:42 +0200)]
Tweaks: use name for prio, change some prio's, use setter for arguments
Otto Moerbeek [Wed, 18 May 2022 11:45:39 +0000 (13:45 +0200)]
Merge pull request #11627 from omoerbeek/rec-rpz-dump-docs
Clarify naming of RPZ zones loaded by rpzFile.
Otto Moerbeek [Tue, 17 May 2022 12:37:03 +0000 (14:37 +0200)]
Tsan complained about strftime(), it manulipates locale and/or tz info.
So guard if needed.
Otto Moerbeek [Tue, 17 May 2022 08:43:10 +0000 (10:43 +0200)]
Formatting
Otto Moerbeek [Tue, 17 May 2022 08:13:57 +0000 (10:13 +0200)]
Convert startup and some of config to use structured logging
Otto Moerbeek [Wed, 4 May 2022 08:57:45 +0000 (10:57 +0200)]
Tweaks wrt explicit priority.
It should be made less easy to make mistakes here.
Otto Moerbeek [Wed, 4 May 2022 08:25:49 +0000 (10:25 +0200)]
Reorg to be able to use structured logging in shared files.
Using arguments.cc as a test-case.
Otto Moerbeek [Wed, 18 May 2022 09:55:49 +0000 (11:55 +0200)]
Merge pull request #11626 from omoerbeek/zonemd-zap-binary-function
Zap binary function, not needed and deprecated in c++11, removed in c++17
Otto Moerbeek [Wed, 18 May 2022 09:29:13 +0000 (11:29 +0200)]
Clarify naming of RPZ zones loaded by rpzFile.
Also
- don't include local refs, they end up wrong in the man page. Replace them by URLs.
- add links to general docs on both maual pages.
Otto Moerbeek [Tue, 17 May 2022 15:57:28 +0000 (17:57 +0200)]
Zap binary function, not needed and deprecated in c++11, removed in c++17
Remi Gacogne [Tue, 17 May 2022 07:43:04 +0000 (09:43 +0200)]
Merge pull request #11620 from Y7n05h/fix11619
dnsdist: remove implicit type conversion
Remi Gacogne [Tue, 17 May 2022 07:42:14 +0000 (09:42 +0200)]
Merge pull request #11621 from rgacogne/ddist-fix-proxyprotocol-tc-doh+ddist-fix-proxyprotocol-tc-doh
dnsdist: Fix a crash on a invalid protocol in DoH forwarded-for header
Remi Gacogne [Wed, 11 May 2022 15:58:31 +0000 (17:58 +0200)]
dnsdist: Test for an exception raised when adding proxy protocol payload to a DoH query
Remi Gacogne [Tue, 10 May 2022 20:26:21 +0000 (22:26 +0200)]
dnsdist: Fix a crash on a invalid protocol in DoH forwarded-for header
(cherry picked from commit
f84fbd58b150fe6b69a7af27e23502f58f68eee5 )
Remi Gacogne [Mon, 16 May 2022 09:47:25 +0000 (11:47 +0200)]
Merge pull request #11604 from rgacogne/ddist-fix-proxyprotocol-tc-doh
dnsdist: Fix invalid proxy protocol payload on a DoH TC to TCP retry
Otto Moerbeek [Mon, 16 May 2022 05:28:40 +0000 (07:28 +0200)]
Merge pull request #11614 from xorander00/docs-loglevel-fix
Changed loglevel wording to be more accurate for both recursor and au…
Otto Moerbeek [Mon, 16 May 2022 05:02:51 +0000 (07:02 +0200)]
Merge pull request #11607 from rgacogne/rec-doc-missing-dq-attributes
rec: Document a few missing DNSQuestion attributes
Y7n05h [Thu, 12 May 2022 02:44:22 +0000 (10:44 +0800)]
dnsdist: remove implicit type conversion (fix: #11619 )
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Peeyush Singh [Mon, 9 May 2022 10:32:34 +0000 (06:32 -0400)]
Changed loglevel wording to be more accurate for both recursor and authoritative.
Otto Moerbeek [Fri, 6 May 2022 09:54:23 +0000 (11:54 +0200)]
Document meaning of empty allow-from
Otto Moerbeek [Fri, 6 May 2022 09:22:17 +0000 (11:22 +0200)]
Merge pull request #11605 from omoerbeek/rec-prep-4.7.0-rc1
Prep for rec-4.7.0-rc1
Remi Gacogne [Thu, 5 May 2022 15:39:00 +0000 (17:39 +0200)]
rec: Document a few missing DNSQuestion attributes
Remi Gacogne [Thu, 5 May 2022 14:20:07 +0000 (16:20 +0200)]
dnsdist: Add Lua bindings to access the DNS payload as a string
Remi Gacogne [Thu, 5 May 2022 12:04:10 +0000 (14:04 +0200)]
Merge pull request #11602 from rgacogne/ddist-missing-prometheus-descriptions
dnsdist: Add missing descriptions for prometheus metrics
Remi Gacogne [Thu, 5 May 2022 11:33:01 +0000 (13:33 +0200)]
Merge pull request #11603 from rgacogne/ddist-upgrade-guide-formatting
dnsdist: Fix formatting issues in the upgrade guide
Otto Moerbeek [Thu, 5 May 2022 08:19:47 +0000 (10:19 +0200)]
Add tests for empty allow-from and allow-notify-from case
Otto Moerbeek [Thu, 5 May 2022 08:04:20 +0000 (10:04 +0200)]
Fix API issue when asking config values for allow-from or allow-notify-from
Otto Moerbeek [Thu, 5 May 2022 07:10:37 +0000 (09:10 +0200)]
Prep for rec-4.7.0-rc1
Remi Gacogne [Wed, 4 May 2022 16:38:22 +0000 (18:38 +0200)]
dnsdist: Fix invalid proxy protocol payload on a DoH TC to TCP retry
dnsdist forwards incoming DoH queries to its backend over UDP, and
retry over TCP if the response is truncated (TC=1).
When the proxy protocol is used between dnsdist and its backend, the
second query, over TCP, needs to take into account that the proxy
protocol payload has already been handled. This was not properly done
in that exact case because the proxy protocol payload length was not
propagated to the code handling the TCP communication, leading to
the query ID being edited at the wrong offset in the packet and thus
to an invalid proxy protocol payload.
Peter van Dijk [Wed, 4 May 2022 12:47:10 +0000 (14:47 +0200)]
Merge pull request #11592 from omoerbeek/auth-test-incomplete-xfr
Auth: fix race in incomplete xfr test
Remi Gacogne [Wed, 4 May 2022 08:50:31 +0000 (10:50 +0200)]
dnsdist: Fix formatting issues in the upgrade guide
Remi Gacogne [Wed, 4 May 2022 08:48:56 +0000 (10:48 +0200)]
dnsdist: Add missing descriptions for prometheus metrics
Remi Gacogne [Tue, 3 May 2022 15:20:19 +0000 (17:20 +0200)]
Merge pull request #11567 from rgacogne/ddist-set-verbose
dnsdist: Add setVerbose() to switch the verbose mode at runtime
Remi Gacogne [Tue, 3 May 2022 10:16:46 +0000 (12:16 +0200)]
dnsdist: Add a 'getMACAdress(ip)' Lua binding
Remi Gacogne [Tue, 3 May 2022 10:15:57 +0000 (12:15 +0200)]
dnsdist: Hopefully prevent a CodeQL warning in the netlink code
Otto Moerbeek [Mon, 2 May 2022 10:54:12 +0000 (12:54 +0200)]
Merge pull request #11598 from omoerbeek/rec-shared-throttlemap
Rec: shared throttle map
Otto Moerbeek [Mon, 2 May 2022 10:32:15 +0000 (12:32 +0200)]
Merge pull request #11599 from omoerbeek/auth-coverity-
1488422
auth: Tweak for Coverity
1488422
Otto Moerbeek [Mon, 2 May 2022 10:20:49 +0000 (12:20 +0200)]
Upgrade guide entries and small nit
Otto Moerbeek [Mon, 2 May 2022 09:57:29 +0000 (11:57 +0200)]
Use wrappers, as suggested by rgacogne@ in his review.
Remi Gacogne [Mon, 2 May 2022 07:53:26 +0000 (09:53 +0200)]
Merge pull request #11577 from rgacogne/ddist-skip-scan-no-outstanding
dnsdist: Scan the UDP buckets only when we have outstanding queries
Remi Gacogne [Mon, 2 May 2022 07:47:55 +0000 (09:47 +0200)]
Merge pull request #11596 from rgacogne/ddist-console-redundant-code
dnsdist: Remove dead code in the console
Otto Moerbeek [Mon, 2 May 2022 07:27:45 +0000 (09:27 +0200)]
Tweak for Coverity
1488422 .
The spot where the warning happens changed, plus appease clang-tidy.
Otto Moerbeek [Mon, 2 May 2022 06:47:49 +0000 (08:47 +0200)]
Throttle table cleanup task is now handler specific.
Also use QType consistently.
Remi Gacogne [Sat, 30 Apr 2022 14:39:54 +0000 (16:39 +0200)]
dnsdist: Remove dead code in the console
Reported by Coverity as CID 378254.
Fred Morcos [Sat, 30 Apr 2022 12:01:17 +0000 (14:01 +0200)]
Merge pull request #11590 from fredmorcos/11325-rsa-pem-import-export
RSA PEM import/export
Otto Moerbeek [Fri, 29 Apr 2022 15:16:11 +0000 (17:16 +0200)]
Use emplace instead of insert
Otto Moerbeek [Fri, 29 Apr 2022 15:00:23 +0000 (17:00 +0200)]
Shared throttle map
Otto Moerbeek [Fri, 29 Apr 2022 13:44:52 +0000 (13:44 +0000)]
So the race is between setting the new serial to return and the message coming in
Make sure we set the new serial asap
Otto Moerbeek [Fri, 29 Apr 2022 13:14:00 +0000 (13:14 +0000)]
Add debug print lines to the new test_XFRIncomplete that fails occasionally on GH Actions.
Using a slow loaded VM I could reproduce these failures once in a while.
Adding the print statements made the failures go away. Maybe some form
of synchronization is going on with the extra debug I/O? Committing this
to see what happens on GH Actions.
Otto Moerbeek [Fri, 29 Apr 2022 12:17:15 +0000 (14:17 +0200)]
Merge pull request #11589 from omoerbeek/coverity-
20220429
auth: Set of Coverity fixes
Fred Morcos [Fri, 29 Apr 2022 11:25:18 +0000 (13:25 +0200)]
SignerParams PEM contents don't need to be optional anymore
We now always test PEM import/export and we expect any new signers to
implement the necessary methods for that.
Fred Morcos [Wed, 27 Apr 2022 09:45:40 +0000 (11:45 +0200)]
RSA PEM test data
Fred Morcos [Wed, 27 Apr 2022 09:45:35 +0000 (11:45 +0200)]
Formatting
Fred Morcos [Wed, 27 Apr 2022 09:43:42 +0000 (11:43 +0200)]
RSA PEM import
Fred Morcos [Wed, 27 Apr 2022 09:30:46 +0000 (11:30 +0200)]
RSA PEM export
Fred Morcos [Fri, 29 Apr 2022 10:41:14 +0000 (12:41 +0200)]
Merge pull request #11582 from fredmorcos/refactor-test-signers
Refactor signers tests
Otto Moerbeek [Fri, 29 Apr 2022 10:17:35 +0000 (12:17 +0200)]
Use better get(); writen2(); release() idiom
Fred Morcos [Fri, 29 Apr 2022 10:01:51 +0000 (12:01 +0200)]
Add missing include
Fred Morcos [Fri, 29 Apr 2022 09:56:22 +0000 (11:56 +0200)]
Fix signer tests for platforms (i.e. OpenSSL forks) without
Ed25519
Otto Moerbeek [Fri, 29 Apr 2022 09:42:48 +0000 (11:42 +0200)]
Don't leak on exception and another case that needs an annotation
Otto Moerbeek [Fri, 29 Apr 2022 07:45:56 +0000 (09:45 +0200)]
Coverity
1030062 Uninitialized scalar field
Otto Moerbeek [Fri, 29 Apr 2022 07:45:22 +0000 (09:45 +0200)]
Coverity
1401639 Division or modulo by float zero: avoid div by zero
Otto Moerbeek [Fri, 29 Apr 2022 07:43:38 +0000 (09:43 +0200)]
Coverity
1469729 Explicit null dereferenced: bail is SOA isn't set
Otto Moerbeek [Fri, 29 Apr 2022 07:42:36 +0000 (09:42 +0200)]
Coverity
1469730 Explicit null dereferenced: use a default sleep time if sr isn't set
Otto Moerbeek [Fri, 29 Apr 2022 07:41:45 +0000 (09:41 +0200)]
Coverity
1469728 Resource leak by using annotation
Otto Moerbeek [Fri, 29 Apr 2022 07:46:29 +0000 (09:46 +0200)]
Merge pull request #11587 from omoerbeek/rec-outgoing-pb-race
rec: Avoid a race in test code between processing the first query and the priming code