]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Mon, 3 Jul 2023 18:03:54 +0000 (20:03 +0200)]
dnsdist: Make clang-tidy happy
We will have to come back if ComboAddress ever becomes heavier, but
hey.
Remi Gacogne [Mon, 3 Jul 2023 12:06:05 +0000 (14:06 +0200)]
dnsdist: Fix a crash when X-Forwarded-For overrides the initial source IP
When both the processing of X-Forwarded-For DNS-over-https headers
(`trustForwardedForHeader=true`) and a maximum number of concurrent
TCP connections per client (`setMaxTCPConnectionsPerClient()`) are
enabled, dnsdist could crash because of an uncaught exception:
```
dnsdist[X]: terminate called after throwing an instance of 'std::runtime_error'
dnsdist[X]: what(): DOH thread failed to launch: map::at
```
This was caused by the TCP connection being first accounted for with the
initial source IP (from the upstream HTTP proxy) but later released using
the IP extracted from the X-Forwarded-For header, leading to an unexpected
failure to locate the corresponding entry in the map.
We might not actually want to enforce the maximum number of concurrent
TCP connections per client when X-Forwarded-For processing is enabled,
though, because we usually want to rate limit the actual client and
not the HTTP proxy, but X-Forwarded-For being set per HTTP query, instead
of per-connection, makes that pretty much impossible at our level since
the same connection from the HTTP proxy can be reused for several clients.
The proxy protocol would be a better option to enforce that limit.
Remi Gacogne [Mon, 3 Jul 2023 08:38:26 +0000 (10:38 +0200)]
Merge pull request #12851 from cunha/docker-debian-version
Update base Debian version in Docker docs
Remi Gacogne [Mon, 3 Jul 2023 08:38:09 +0000 (10:38 +0200)]
Merge pull request #12854 from ghoshbishakh/patch-1
Documentation fix in HTTP API - zone.rst
Remi Gacogne [Mon, 3 Jul 2023 08:31:48 +0000 (10:31 +0200)]
Merge pull request #12954 from Habbie/generate-repo-files-error-crash
generate-repo-files: don't crash when the process errors
Remi Gacogne [Fri, 30 Jun 2023 15:33:45 +0000 (17:33 +0200)]
Merge pull request #12973 from jacobbunk/statnode-document-trailing-dot
Document the trailing '.' in StatNode.fullname
Jacob Bunk Nielsen [Fri, 30 Jun 2023 13:41:40 +0000 (15:41 +0200)]
Document the trailing '.' in StatNode.fullname
Remi Gacogne [Fri, 30 Jun 2023 13:23:00 +0000 (15:23 +0200)]
Merge pull request #12971 from jacobbunk/fix-statnodestats-doc
Document the StatNodeStats.hits attribute.
Jacob Bunk Nielsen [Fri, 30 Jun 2023 13:22:16 +0000 (15:22 +0200)]
Update pdns/dnsdistdist/docs/reference/config.rst
Co-authored-by: Remi Gacogne <github@coredump.fr>
Jacob Bunk Nielsen [Fri, 30 Jun 2023 11:28:34 +0000 (13:28 +0200)]
Document the StatNodeStats.hits attribute.
Otto Moerbeek [Fri, 30 Jun 2023 09:58:43 +0000 (11:58 +0200)]
Merge pull request #12969 from omoerbeek/rec-prep-49
Prep for rec-4.9.0
Otto Moerbeek [Thu, 29 Jun 2023 12:41:52 +0000 (14:41 +0200)]
Prep for rec-4.9.0
Otto Moerbeek [Thu, 29 Jun 2023 13:12:55 +0000 (15:12 +0200)]
Merge pull request #12917 from omoerbeek/delint-pdns-recursor
rec: Delint pdns recursor.cc
Otto Moerbeek [Thu, 29 Jun 2023 12:50:24 +0000 (14:50 +0200)]
Merge pull request #12963 from omoerbeek/rec-step4-iter2
rec: fix qname length getting out-of-sync with qname-minimization iteration count (approach 2)
Peter van Dijk [Thu, 29 Jun 2023 12:02:39 +0000 (14:02 +0200)]
Merge pull request #12964 from Habbie/cov-on-22.04
coverity: bump to ubuntu 22.04
Peter van Dijk [Thu, 29 Jun 2023 12:02:23 +0000 (14:02 +0200)]
Merge pull request #12877 from Habbie/sdist-alpine-3.18
bump sdist builders to alpine 3.18
Peter van Dijk [Thu, 29 Jun 2023 11:22:00 +0000 (13:22 +0200)]
Merge pull request #12965 from Habbie/provenance-centos-7
workaround: recognise centos-7 target name too in provenance generation
Otto Moerbeek [Thu, 29 Jun 2023 10:52:32 +0000 (12:52 +0200)]
Take one suggestion form review. The others keep on producing clang-tidy
issues.
Otto Moerbeek [Wed, 14 Jun 2023 07:56:56 +0000 (09:56 +0200)]
Reformat
Otto Moerbeek [Wed, 17 May 2023 13:36:44 +0000 (15:36 +0200)]
Delint pdns_recursor.cc
Otto Moerbeek [Thu, 29 Jun 2023 07:31:46 +0000 (09:31 +0200)]
rec: fix qname length getting out-of-sync with qname-minimization iteration count
Approach two: fall back to non-QM mode if loop detected
Fixes #12956
Peter van Dijk [Thu, 29 Jun 2023 10:26:05 +0000 (12:26 +0200)]
workaround: recognise centos-7 target name too in provenance generation
Peter van Dijk [Thu, 29 Jun 2023 07:09:22 +0000 (09:09 +0200)]
coverity: bump to ubuntu 22.04
Remi Gacogne [Wed, 28 Jun 2023 15:33:47 +0000 (17:33 +0200)]
Merge pull request #12961 from rgacogne/doing-red-hat-job-myself
Work around RHEL8 pooping the bed in OpenSSL's headers
Remi Gacogne [Wed, 28 Jun 2023 13:23:35 +0000 (15:23 +0200)]
Work around Red Hat 8 pooping the bed in OpenSSL's headers
The openssl/kdf.h header on EL8 is invalid because someone backported
a work-in-progress feature to an older OpenSSL branch and did not
bother to backport the fixes that were added later.
Red Hat declined to fix their mess and helpfully suggested we do the
work instead in https://bugzilla.redhat.com/show_bug.cgi?id=
2215856
Remi Gacogne [Wed, 28 Jun 2023 12:40:22 +0000 (14:40 +0200)]
Merge pull request #12921 from rgacogne/ddist-declare-custom-metrics-at-runtime
dnsdist: Allow declaring custom metrics at runtime
Remi Gacogne [Wed, 28 Jun 2023 08:58:56 +0000 (10:58 +0200)]
Merge pull request #12556 from rgacogne/generate-provenance
Builder-dispatch: Generate provenance for built artifacts
Otto Moerbeek [Wed, 28 Jun 2023 05:49:11 +0000 (07:49 +0200)]
Merge pull request #12957 from dwfreed/patch-1
rec: include qname when logging skip of step 4 of qname minimization
Doug Freed [Wed, 28 Jun 2023 05:13:51 +0000 (00:13 -0500)]
rec: include qname when logging skip of step 4 of qname minimization
Peter van Dijk [Tue, 27 Jun 2023 15:16:15 +0000 (17:16 +0200)]
generate-repo-files: don't crash when the process errors
Remi Gacogne [Tue, 27 Jun 2023 14:55:42 +0000 (16:55 +0200)]
Warn about the duplicated content in builder-dispatch and build-packages
Remi Gacogne [Tue, 27 Jun 2023 12:38:50 +0000 (14:38 +0200)]
build-packages: Upload the provenance artifacts to downloads.powerdns.com
Otto Moerbeek [Tue, 27 Jun 2023 14:41:30 +0000 (16:41 +0200)]
Merge pull request #12952 from omoerbeek/rec-coverity-moves-part1
rec: fix a set of move optimizations, as suggested by coverity
Remi Gacogne [Tue, 27 Jun 2023 14:18:39 +0000 (16:18 +0200)]
dnsdist: Fix a typo spotted by Otto in the docs
Remi Gacogne [Tue, 27 Jun 2023 14:18:04 +0000 (16:18 +0200)]
dnsdist: Fix the initial value of the custom gauge in our tests
Thanks Otto!
Remi Gacogne [Fri, 16 Jun 2023 14:55:37 +0000 (16:55 +0200)]
dnsdist: Apply clang-tidy's suggestions
Remi Gacogne [Fri, 16 Jun 2023 13:12:57 +0000 (15:12 +0200)]
dnsdist: Fix formatting in dnsdist-metrics.{cc,hh}
Remi Gacogne [Fri, 16 Jun 2023 13:00:07 +0000 (15:00 +0200)]
dnsdist: Move metrics to dnsdist-metrics.{cc,hh}
This makes it possible to get more parts of the code out of the
dnsdist.hh header, which ideally should go.
Remi Gacogne [Fri, 16 Jun 2023 11:39:16 +0000 (13:39 +0200)]
dnsdist: Implement a FFI method to declare a new custom metric
Remi Gacogne [Thu, 15 Jun 2023 12:17:03 +0000 (14:17 +0200)]
dnsdist: Allow declaring custom metrics at runtime
Also fixes a bug in the prometheus HELP and TYPE messages for custom
metrics with labels, and adds a method to increment a counter by more
than one.
Peter van Dijk [Tue, 27 Jun 2023 13:24:52 +0000 (15:24 +0200)]
Merge pull request #10776 from Habbie/python-requirement-hashes
docs: generate requirements.txt with package hashes
Peter van Dijk [Tue, 27 Jun 2023 11:37:52 +0000 (13:37 +0200)]
auth docs: generate requirements.txt with package hashes
Peter van Dijk [Tue, 27 Jun 2023 11:49:55 +0000 (13:49 +0200)]
update docs builder workflow to ubuntu 22.04, get invoke from apt
Remi Gacogne [Thu, 4 May 2023 12:40:45 +0000 (14:40 +0200)]
builder-dispatch: Use the build-packages workflow
Remi Gacogne [Tue, 28 Mar 2023 12:13:58 +0000 (14:13 +0200)]
Add a workflow to build packages when a tag is pushed
Remi Gacogne [Tue, 27 Jun 2023 11:46:35 +0000 (13:46 +0200)]
builder-dispatch: Update the list of OS for pkghashes
Remi Gacogne [Wed, 22 Feb 2023 10:24:17 +0000 (11:24 +0100)]
builder-dispatch: Refactoring to get provenance for all targets
Also include the list of installed packages during our package builds
Remi Gacogne [Thu, 16 Feb 2023 10:26:42 +0000 (11:26 +0100)]
Builder-dispatch: Generate provenance for built artifacts
Otto Moerbeek [Tue, 27 Jun 2023 09:20:52 +0000 (11:20 +0200)]
Merge pull request #12951 from omoerbeek/rec-docs-imbalance
rec: give advice on a typical dnsdist-recursor setup with the new defauls
Otto Moerbeek [Tue, 27 Jun 2023 09:08:20 +0000 (11:08 +0200)]
rec: fix a set of move optimizations, as suggested by coverity
Otto Moerbeek [Tue, 27 Jun 2023 08:22:55 +0000 (10:22 +0200)]
rec: give advice on a typical dnsdist-recursor setup with the new defaults
Remi Gacogne [Tue, 27 Jun 2023 07:24:19 +0000 (09:24 +0200)]
Merge pull request #12943 from rgacogne/ddist-coverity-perf-suggestions
dnsdist: Apply performance suggestions from Coverity
Remi Gacogne [Tue, 27 Jun 2023 07:23:24 +0000 (09:23 +0200)]
Merge pull request #12941 from Habbie/dnsdist-libeditr
dnsdist: fix typo
Remi Gacogne [Mon, 26 Jun 2023 09:29:46 +0000 (11:29 +0200)]
Merge pull request #12948 from rgacogne/ddist-async-channel
dnsdist: Implement the AsynchronousHolder with the new channel feature
Fred Morcos [Mon, 26 Jun 2023 09:29:13 +0000 (11:29 +0200)]
Merge pull request #12945 from fredmorcos/clang-tidy-ci-fixes
Fix issue with clang-tidy and module source files
Remi Gacogne [Mon, 26 Jun 2023 09:25:14 +0000 (11:25 +0200)]
Merge pull request #12950 from rgacogne/ddist-fix-setRandomizedOutgoingSockets
dnsdist: Fix setRandomizedOutgoingSockets not showing up in the search
Remi Gacogne [Mon, 26 Jun 2023 08:36:11 +0000 (10:36 +0200)]
dnsdist: Fix setRandomizedOutgoingSockets not showing up in the search
Also add a link to it from newServer's 'sockets' parameter, which is
related.
Remi Gacogne [Fri, 23 Jun 2023 14:18:56 +0000 (16:18 +0200)]
dnsdist: Delint dnsdist-async.{cc,hh}
Remi Gacogne [Fri, 23 Jun 2023 13:01:05 +0000 (15:01 +0200)]
dnsdist: Implement the AsynchronousHolder with the new channel feature
Fred Morcos [Thu, 22 Jun 2023 12:39:06 +0000 (14:39 +0200)]
Fix clang-tidy-diff not finding module and ext files
Fred Morcos [Wed, 21 Jun 2023 11:06:39 +0000 (13:06 +0200)]
Print a message when clang-tidy fails
Remi Gacogne [Thu, 22 Jun 2023 11:41:35 +0000 (13:41 +0200)]
Merge pull request #12944 from rgacogne/test-dnsname-warning
test-dnsname: Fix "unnecessary parentheses in declaration of ‘name5’"
Remi Gacogne [Thu, 22 Jun 2023 10:07:29 +0000 (12:07 +0200)]
Merge pull request #12942 from rgacogne/channel-coverity-leak
channel: Add an annotation so Coverity does not think we leak
Remi Gacogne [Thu, 22 Jun 2023 10:05:00 +0000 (12:05 +0200)]
test-dnsname: Fix "unnecessary parentheses in declaration of ‘name5’"
Remi Gacogne [Thu, 22 Jun 2023 09:58:18 +0000 (11:58 +0200)]
dnsdist: Apply performance suggestions from Coverity
I don't expect these changes to actually make a difference in practice,
because pretty much all of them impact configuration processing, where
performance is not that critical. Still they should not hurt and a few
of them might actually improve some edge cases.
Remi Gacogne [Thu, 22 Jun 2023 09:09:44 +0000 (11:09 +0200)]
channel: Add an annotation so Coverity does not think we leak
Peter van Dijk [Thu, 22 Jun 2023 08:50:13 +0000 (10:50 +0200)]
dnsdist: fix typo
Remi Gacogne [Thu, 22 Jun 2023 08:02:35 +0000 (10:02 +0200)]
Merge pull request #12939 from Habbie/dnsdist-missing-file
dnsdist: add dnsdist-lua-inspection-ffi.h to dist tarballs
Peter van Dijk [Thu, 22 Jun 2023 07:18:56 +0000 (09:18 +0200)]
dnsdist: add dnsdist-lua-inspection-ffi.h to dist tarballs
Remi Gacogne [Wed, 21 Jun 2023 14:03:09 +0000 (16:03 +0200)]
Merge pull request #12935 from rgacogne/fix-crypto-detection-deprecated
Stop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL
Otto Moerbeek [Wed, 21 Jun 2023 13:23:47 +0000 (15:23 +0200)]
Merge pull request #12934 from omoerbeek/rec-coverity1462719
rec: Silence Coverity
1462719 Unchecked return value from library.
Remi Gacogne [Wed, 21 Jun 2023 12:58:15 +0000 (14:58 +0200)]
Stop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL
And move to BN_new() instead, which has been present since at least
0.9.6 and is still in 3.1.
Otto Moerbeek [Wed, 21 Jun 2023 12:26:41 +0000 (14:26 +0200)]
Merge pull request #12933 from omoerbeek/rec-followp-to-12893
rec: Followup to #12893: Rewrite and fix verifyOne() loop
Otto Moerbeek [Wed, 21 Jun 2023 12:25:03 +0000 (14:25 +0200)]
rec: Silence Coverity
1462719 Unchecked return value from library.
Call should not fail and it's a best effort anyway in this case
Otto Moerbeek [Wed, 21 Jun 2023 11:17:01 +0000 (13:17 +0200)]
Typo inc omment
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Wed, 21 Jun 2023 08:43:26 +0000 (10:43 +0200)]
Followup to #12893: Rewrite and fix verifyOne() loop
Previous version could return true if the first iteration succeeded, but
the second one threw. Spotted by pt01 on IRC.
Remi Gacogne [Wed, 21 Jun 2023 08:16:29 +0000 (10:16 +0200)]
Merge pull request #11427 from rgacogne/ddist-channels
dnsdist: Implement Channels for communication between threads
Remi Gacogne [Wed, 21 Jun 2023 08:15:22 +0000 (10:15 +0200)]
Merge pull request #12923 from rgacogne/ddist-auto-include-ffi-inspection
dnsdist: Automatically load Lua FFI inspection functions
Remi Gacogne [Tue, 20 Jun 2023 16:47:36 +0000 (18:47 +0200)]
channel: Rename 'fd' to 'descriptor'
Peter van Dijk [Tue, 20 Jun 2023 16:10:16 +0000 (18:10 +0200)]
Merge pull request #11510 from klaus-nicat/ignore-axfr-expand-alias-errors
new option 'ignore-errors' for setting 'outgoing-axfr-expand-alias'
Remi Gacogne [Tue, 20 Jun 2023 15:05:36 +0000 (17:05 +0200)]
Merge pull request #12924 from rgacogne/ddist-luaffi-rawtag-test
dnsdist: Add a regression test for the Lua FFI raw tag interface
Remi Gacogne [Tue, 20 Jun 2023 15:05:26 +0000 (17:05 +0200)]
Merge pull request #12925 from rgacogne/ddist-pp-doc
dnsdist: Clarify the proxy protocol documentation
Chris Hofstaedtler [Wed, 7 Jun 2023 12:08:28 +0000 (14:08 +0200)]
auth: ignore readability-function-cognitive-complexity for doAXFR for now
Chris Hofstaedtler [Mon, 5 Jun 2023 20:51:59 +0000 (22:51 +0200)]
auth: docs: warn more clearly about setting-outgoing-axfr-expand-alias=ignore-errors
Chris Hofstaedtler [Mon, 5 Jun 2023 20:38:34 +0000 (22:38 +0200)]
auth: add startup warning about outgoing-axfr-expand-alias=ignore-errors
Otto Moerbeek [Tue, 20 Jun 2023 14:21:36 +0000 (16:21 +0200)]
Merge pull request #12928 from omoerbeek/rec-fix-daemonize
rec: fix daemonize(), followup to #12836
Otto Moerbeek [Tue, 20 Jun 2023 14:08:35 +0000 (16:08 +0200)]
Merge pull request #12930 from omoerbeek/fix-unused-warnings
Fix compile warnings
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 11:55:11 +0000 (13:55 +0200)]
Avoid main() throwing an exception
Otto Moerbeek [Tue, 20 Jun 2023 07:24:50 +0000 (09:24 +0200)]
Fix unused warnings coming from our own code.
Some third party warning remain, mostly coming from boost.
Otto Moerbeek [Tue, 20 Jun 2023 07:22:01 +0000 (09:22 +0200)]
Merge pull request #12929 from ddmler/patch-1
Fix wrong rfc number in docs for ZONEMD record
Enrico Höschler [Tue, 20 Jun 2023 07:15:05 +0000 (09:15 +0200)]
Fix wrong rfc number for zonemd record
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 [Fri, 16 Jun 2023 13:35:53 +0000 (15:35 +0200)]
dnsdist: Clarify the proxy protocol documentation
- A proxy protocol payload is actually required from incoming clients
configured with setProxyProtocolACL, not just allowed.
- setProxyProtocolApplyACLToProxiedClients was wrongly documented as
setProxyProtocolApplyACL