]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
2 years agodnsdist: Fix "Pointer to local outside storage" reported by Coverity 12974/head
Remi Gacogne [Fri, 30 Jun 2023 16:16:03 +0000 (18:16 +0200)] 
dnsdist: Fix "Pointer to local outside storage" reported by Coverity

We use a temporary `std::string` for a very short tile after it is no
longer required to exist when adding a new custom metric.
Reported by Coverity as CID 394511.

2 years agoMerge pull request #12917 from omoerbeek/delint-pdns-recursor
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

2 years agoMerge pull request #12963 from omoerbeek/rec-step4-iter2
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)

2 years agoMerge pull request #12964 from Habbie/cov-on-22.04
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

2 years agoMerge pull request #12877 from Habbie/sdist-alpine-3.18
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

2 years agoMerge pull request #12965 from Habbie/provenance-centos-7
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

2 years agoTake one suggestion form review. The others keep on producing clang-tidy 12917/head
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.

2 years agoReformat
Otto Moerbeek [Wed, 14 Jun 2023 07:56:56 +0000 (09:56 +0200)] 
Reformat

2 years agoDelint pdns_recursor.cc
Otto Moerbeek [Wed, 17 May 2023 13:36:44 +0000 (15:36 +0200)] 
Delint pdns_recursor.cc

2 years agorec: fix qname length getting out-of-sync with qname-minimization iteration count 12963/head
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

2 years agoworkaround: recognise centos-7 target name too in provenance generation 12965/head
Peter van Dijk [Thu, 29 Jun 2023 10:26:05 +0000 (12:26 +0200)] 
workaround: recognise centos-7 target name too in provenance generation

2 years agocoverity: bump to ubuntu 22.04 12964/head
Peter van Dijk [Thu, 29 Jun 2023 07:09:22 +0000 (09:09 +0200)] 
coverity: bump to ubuntu 22.04

2 years agoMerge pull request #12961 from rgacogne/doing-red-hat-job-myself
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

2 years agoWork around Red Hat 8 pooping the bed in OpenSSL's headers 12961/head
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

2 years agoMerge pull request #12921 from rgacogne/ddist-declare-custom-metrics-at-runtime
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

2 years agoMerge pull request #12556 from rgacogne/generate-provenance
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

2 years agoMerge pull request #12957 from dwfreed/patch-1
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

2 years agorec: include qname when logging skip of step 4 of qname minimization 12957/head
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

2 years agoWarn about the duplicated content in builder-dispatch and build-packages 12556/head
Remi Gacogne [Tue, 27 Jun 2023 14:55:42 +0000 (16:55 +0200)] 
Warn about the duplicated content in builder-dispatch and build-packages

2 years agobuild-packages: Upload the provenance artifacts to downloads.powerdns.com
Remi Gacogne [Tue, 27 Jun 2023 12:38:50 +0000 (14:38 +0200)] 
build-packages: Upload the provenance artifacts to downloads.powerdns.com

2 years agoMerge pull request #12952 from omoerbeek/rec-coverity-moves-part1
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

2 years agodnsdist: Fix a typo spotted by Otto in the docs 12921/head
Remi Gacogne [Tue, 27 Jun 2023 14:18:39 +0000 (16:18 +0200)] 
dnsdist: Fix a typo spotted by Otto in the docs

2 years agodnsdist: Fix the initial value of the custom gauge in our tests
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!

2 years agodnsdist: Apply clang-tidy's suggestions
Remi Gacogne [Fri, 16 Jun 2023 14:55:37 +0000 (16:55 +0200)] 
dnsdist: Apply clang-tidy's suggestions

2 years agodnsdist: Fix formatting in dnsdist-metrics.{cc,hh}
Remi Gacogne [Fri, 16 Jun 2023 13:12:57 +0000 (15:12 +0200)] 
dnsdist: Fix formatting in dnsdist-metrics.{cc,hh}

2 years agodnsdist: Move metrics to 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.

2 years agodnsdist: Implement a FFI method to declare a new custom metric
Remi Gacogne [Fri, 16 Jun 2023 11:39:16 +0000 (13:39 +0200)] 
dnsdist: Implement a FFI method to declare a new custom metric

2 years agodnsdist: Allow declaring custom metrics at runtime
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.

2 years agoMerge pull request #10776 from Habbie/python-requirement-hashes
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

2 years agoauth docs: generate requirements.txt with package hashes 10776/head
Peter van Dijk [Tue, 27 Jun 2023 11:37:52 +0000 (13:37 +0200)] 
auth docs: generate requirements.txt with package hashes

2 years agoupdate docs builder workflow to ubuntu 22.04, get invoke from apt
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

2 years agobuilder-dispatch: Use the build-packages workflow
Remi Gacogne [Thu, 4 May 2023 12:40:45 +0000 (14:40 +0200)] 
builder-dispatch: Use the build-packages workflow

2 years agoAdd a workflow to build packages when a tag is pushed
Remi Gacogne [Tue, 28 Mar 2023 12:13:58 +0000 (14:13 +0200)] 
Add a workflow to build packages when a tag is pushed

2 years agobuilder-dispatch: Update the list of OS for pkghashes
Remi Gacogne [Tue, 27 Jun 2023 11:46:35 +0000 (13:46 +0200)] 
builder-dispatch: Update the list of OS for pkghashes

2 years agobuilder-dispatch: Refactoring to get provenance for all targets
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

2 years agoBuilder-dispatch: Generate provenance for built artifacts
Remi Gacogne [Thu, 16 Feb 2023 10:26:42 +0000 (11:26 +0100)] 
Builder-dispatch: Generate provenance for built artifacts

2 years agoMerge pull request #12951 from omoerbeek/rec-docs-imbalance
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

2 years agorec: fix a set of move optimizations, as suggested by coverity 12952/head
Otto Moerbeek [Tue, 27 Jun 2023 09:08:20 +0000 (11:08 +0200)] 
rec: fix a set of move optimizations, as suggested by coverity

2 years agorec: give advice on a typical dnsdist-recursor setup with the new defaults 12951/head
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

2 years agoMerge pull request #12943 from rgacogne/ddist-coverity-perf-suggestions
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

2 years agoMerge pull request #12941 from Habbie/dnsdist-libeditr
Remi Gacogne [Tue, 27 Jun 2023 07:23:24 +0000 (09:23 +0200)] 
Merge pull request #12941 from Habbie/dnsdist-libeditr

dnsdist: fix typo

2 years agoMerge pull request #12948 from rgacogne/ddist-async-channel
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

2 years agoMerge pull request #12945 from fredmorcos/clang-tidy-ci-fixes
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

2 years agoMerge pull request #12950 from rgacogne/ddist-fix-setRandomizedOutgoingSockets
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

2 years agodnsdist: Fix setRandomizedOutgoingSockets not showing up in the search 12950/head
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.

2 years agodnsdist: Delint dnsdist-async.{cc,hh} 12948/head
Remi Gacogne [Fri, 23 Jun 2023 14:18:56 +0000 (16:18 +0200)] 
dnsdist: Delint dnsdist-async.{cc,hh}

2 years agodnsdist: Implement the AsynchronousHolder with the new channel feature
Remi Gacogne [Fri, 23 Jun 2023 13:01:05 +0000 (15:01 +0200)] 
dnsdist: Implement the AsynchronousHolder with the new channel feature

2 years agoFix clang-tidy-diff not finding module and ext files 12945/head
Fred Morcos [Thu, 22 Jun 2023 12:39:06 +0000 (14:39 +0200)] 
Fix clang-tidy-diff not finding module and ext files

2 years agoPrint a message when clang-tidy fails
Fred Morcos [Wed, 21 Jun 2023 11:06:39 +0000 (13:06 +0200)] 
Print a message when clang-tidy fails

2 years agoMerge pull request #12944 from rgacogne/test-dnsname-warning
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’"

2 years agoMerge pull request #12942 from rgacogne/channel-coverity-leak
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

2 years agotest-dnsname: Fix "unnecessary parentheses in declaration of ‘name5’" 12944/head
Remi Gacogne [Thu, 22 Jun 2023 10:05:00 +0000 (12:05 +0200)] 
test-dnsname: Fix "unnecessary parentheses in declaration of ‘name5’"

2 years agodnsdist: Apply performance suggestions from Coverity 12943/head
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.

2 years agochannel: Add an annotation so Coverity does not think we leak 12942/head
Remi Gacogne [Thu, 22 Jun 2023 09:09:44 +0000 (11:09 +0200)] 
channel: Add an annotation so Coverity does not think we leak

2 years agodnsdist: fix typo 12941/head
Peter van Dijk [Thu, 22 Jun 2023 08:50:13 +0000 (10:50 +0200)] 
dnsdist: fix typo

2 years agoMerge pull request #12939 from Habbie/dnsdist-missing-file
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

2 years agodnsdist: add dnsdist-lua-inspection-ffi.h to dist tarballs 12939/head
Peter van Dijk [Thu, 22 Jun 2023 07:18:56 +0000 (09:18 +0200)] 
dnsdist: add dnsdist-lua-inspection-ffi.h to dist tarballs

2 years agoMerge pull request #12935 from rgacogne/fix-crypto-detection-deprecated
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

2 years agoMerge pull request #12934 from omoerbeek/rec-coverity1462719
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.

2 years agoStop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL 12935/head
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.

2 years agoMerge pull request #12933 from omoerbeek/rec-followp-to-12893
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

2 years agorec: Silence Coverity 1462719 Unchecked return value from library. 12934/head
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

2 years agoTypo inc omment 12933/head
Otto Moerbeek [Wed, 21 Jun 2023 11:17:01 +0000 (13:17 +0200)] 
Typo inc omment

Co-authored-by: Remi Gacogne <github@coredump.fr>
2 years agoFollowup to #12893: Rewrite and fix verifyOne() loop
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.

2 years agoMerge pull request #11427 from rgacogne/ddist-channels
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

2 years agoMerge pull request #12923 from rgacogne/ddist-auto-include-ffi-inspection
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

2 years agochannel: Rename 'fd' to 'descriptor' 11427/head
Remi Gacogne [Tue, 20 Jun 2023 16:47:36 +0000 (18:47 +0200)] 
channel: Rename 'fd' to 'descriptor'

2 years agoMerge pull request #11510 from klaus-nicat/ignore-axfr-expand-alias-errors
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'

2 years agoMerge pull request #12924 from rgacogne/ddist-luaffi-rawtag-test
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

2 years agoMerge pull request #12925 from rgacogne/ddist-pp-doc
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

2 years agoauth: ignore readability-function-cognitive-complexity for doAXFR for now 11510/head
Chris Hofstaedtler [Wed, 7 Jun 2023 12:08:28 +0000 (14:08 +0200)] 
auth: ignore readability-function-cognitive-complexity for doAXFR for now

2 years agoauth: docs: warn more clearly about setting-outgoing-axfr-expand-alias=ignore-errors
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

2 years agoauth: add startup warning about 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

2 years agoMerge pull request #12928 from omoerbeek/rec-fix-daemonize
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

2 years agoMerge pull request #12930 from omoerbeek/fix-unused-warnings
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

2 years agoFix typos in comment 12928/head
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>
2 years agoAvoid main() throwing an exception 12930/head
Otto Moerbeek [Tue, 20 Jun 2023 11:55:11 +0000 (13:55 +0200)] 
Avoid main() throwing an exception

2 years agoFix unused warnings coming from our own code.
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.

2 years agoMerge pull request #12929 from ddmler/patch-1
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

2 years agoFix wrong rfc number for zonemd record 12929/head
Enrico Höschler [Tue, 20 Jun 2023 07:15:05 +0000 (09:15 +0200)] 
Fix wrong rfc number for zonemd record

2 years agorec: fix daemonize(), followup to #12836
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.

2 years agoMerge pull request #12927 from omoerbeek/rec-zonetocache-local
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

2 years agoMerge pull request #12913 from omoerbeek/dns_random
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

2 years agorec: fix documentation of zoneToCache localAddress attribute 12927/head
Otto Moerbeek [Mon, 19 Jun 2023 11:19:22 +0000 (13:19 +0200)] 
rec: fix documentation of zoneToCache localAddress attribute

Fixes #12919

2 years agoMerge pull request #12911 from rgacogne/ddist-increment-dyn-blocked-ebpf
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

2 years agoConvert a couple of calls from dns_random() to dns_random_uint32() 12913/head
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()

2 years agoDon't close the urandom file descriptor
Otto Moerbeek [Mon, 19 Jun 2023 09:23:05 +0000 (11:23 +0200)] 
Don't close the urandom file descriptor

2 years agodnsdist: Clarify the proxy protocol documentation 12925/head
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

2 years agodnsdist: Add a regression test for the Lua FFI raw tag interface 12924/head
Remi Gacogne [Fri, 16 Jun 2023 08:14:21 +0000 (10:14 +0200)] 
dnsdist: Add a regression test for the Lua FFI raw tag interface

2 years agodnsdist: Automatically load Lua FFI inspection functions 12923/head
Remi Gacogne [Fri, 16 Jun 2023 07:46:16 +0000 (09:46 +0200)] 
dnsdist: Automatically load Lua FFI inspection functions

We used to do that for all Lua FFI functions except the ones used
for inspecting StatNode objects.

2 years agoMerge pull request #12783 from rgacogne/ddist-fix-pool-cache-metrics
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

2 years agoMerge pull request #12918 from omoerbeek/rec-prep-4.9.0-rc1
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

2 years agoMerge pull request #12916 from Houtworm/master
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.

2 years agoPrep for rec-4.9.0-rc1 12918/head
Otto Moerbeek [Tue, 13 Jun 2023 08:30:39 +0000 (10:30 +0200)] 
Prep for rec-4.9.0-rc1

2 years agoUpdate dockerdata/startup.py 12916/head
Houtworm [Wed, 14 Jun 2023 08:09:15 +0000 (10:09 +0200)] 
Update dockerdata/startup.py

Co-authored-by: Remi Gacogne <github@coredump.fr>
2 years agodelint
Otto Moerbeek [Wed, 14 Jun 2023 06:55:48 +0000 (08:55 +0200)] 
delint

2 years agofixed the webserver config line?
djonker [Tue, 13 Jun 2023 22:34:09 +0000 (00:34 +0200)] 
fixed the webserver config line?

2 years agoFix loops
Otto Moerbeek [Tue, 13 Jun 2023 11:02:36 +0000 (13:02 +0200)] 
Fix loops

2 years agodnsdist: Increment the "dyn blocked" counter for eBPF blocks as well 12911/head
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.

2 years agoMerge pull request #12811 from rgacogne/ddist-health-check-better-messages
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