]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
3 years agoProperly handle ipcipher support when libcrypto is not available 11129/head
Remi Gacogne [Thu, 23 Dec 2021 09:38:17 +0000 (10:38 +0100)] 
Properly handle ipcipher support when libcrypto is not available

3 years agoMerge pull request #11121 from rgacogne/ddist-ignore-p12
Remi Gacogne [Thu, 23 Dec 2021 08:37:43 +0000 (09:37 +0100)] 
Merge pull request #11121 from rgacogne/ddist-ignore-p12

dnsdist: Ignore the generated p12 file in the regression tests dir

3 years agoMerge pull request #11126 from Habbie/dnsdist-luathread
Remi Gacogne [Thu, 23 Dec 2021 08:36:21 +0000 (09:36 +0100)] 
Merge pull request #11126 from Habbie/dnsdist-luathread

dnsdist: add newThread() function (experimental, subject to change)

3 years agodnsdist: add newThread() function (experimental, subject to change) 11126/head
Peter van Dijk [Fri, 17 Dec 2021 18:27:27 +0000 (19:27 +0100)] 
dnsdist: add newThread() function (experimental, subject to change)

3 years agoMerge pull request #10950 from rgacogne/ddist-console-disable-completion
Remi Gacogne [Wed, 22 Dec 2021 14:05:46 +0000 (15:05 +0100)] 
Merge pull request #10950 from rgacogne/ddist-console-disable-completion

dnsdist: Add a lot more of build-time options to select features

3 years agodnsdist: Ignore the generated p12 file in the regression tests dir 11121/head
Remi Gacogne [Wed, 22 Dec 2021 10:27:40 +0000 (11:27 +0100)] 
dnsdist: Ignore the generated p12 file in the regression tests dir

3 years agodnsdist: Also disable nghttp2 support for the 'lean' build 10950/head
Remi Gacogne [Wed, 22 Dec 2021 10:10:31 +0000 (11:10 +0100)] 
dnsdist: Also disable nghttp2 support for the 'lean' build

3 years agoMerge pull request #11116 from omoerbeek/do-not-start-services
Otto Moerbeek [Wed, 22 Dec 2021 10:08:02 +0000 (11:08 +0100)] 
Merge pull request #11116 from omoerbeek/do-not-start-services

github actions: Set policy to not start/enable services by default

3 years agoMerge pull request #11076 from rgacogne/ddist-170rc1
Remi Gacogne [Wed, 22 Dec 2021 09:34:42 +0000 (10:34 +0100)] 
Merge pull request #11076 from rgacogne/ddist-170rc1

dnsdist: Update the ChangeLog and the secpoll zone for 1.7.0-rc1

3 years agoTasks.py: Fix the format string for dnsdist's configure
Remi Gacogne [Thu, 16 Dec 2021 08:56:30 +0000 (09:56 +0100)] 
Tasks.py: Fix the format string for dnsdist's configure

3 years agoAdd 'dnsheader' to the list of allowed words
Remi Gacogne [Thu, 16 Dec 2021 08:54:31 +0000 (09:54 +0100)] 
Add 'dnsheader' to the list of allowed words

3 years agoUpdate pdns/dnsdistdist/docs/install.rst
Remi Gacogne [Thu, 16 Dec 2021 08:46:04 +0000 (09:46 +0100)] 
Update pdns/dnsdistdist/docs/install.rst

Co-authored-by: Pieter Lexis <pieter@plexis.eu>
3 years agodnsdist: First attempt at buiding a 'thin' version with features disabled
Remi Gacogne [Wed, 15 Dec 2021 17:00:17 +0000 (18:00 +0100)] 
dnsdist: First attempt at buiding a 'thin' version with features disabled

3 years agodnsdist: Document the compile-time options we have
Remi Gacogne [Wed, 15 Dec 2021 17:00:09 +0000 (18:00 +0100)] 
dnsdist: Document the compile-time options we have

3 years agodnsdist: Fix the mockup implementation of checkParameterBound in our unit tests
Remi Gacogne [Wed, 15 Dec 2021 16:05:07 +0000 (17:05 +0100)] 
dnsdist: Fix the mockup implementation of checkParameterBound in our unit tests

3 years agodnsdist: Clean up unused parts in the libedit and nghttp2 m4s
Remi Gacogne [Thu, 25 Nov 2021 15:11:32 +0000 (16:11 +0100)] 
dnsdist: Clean up unused parts in the libedit and nghttp2 m4s

3 years agodnsdist: Add DISABLE_TOP_N_BINDINGS
Remi Gacogne [Thu, 25 Nov 2021 10:20:48 +0000 (11:20 +0100)] 
dnsdist: Add DISABLE_TOP_N_BINDINGS

3 years agodnsdist: Remove useless actions and rules when support is not present
Remi Gacogne [Mon, 15 Nov 2021 13:55:27 +0000 (14:55 +0100)] 
dnsdist: Remove useless actions and rules when support is not present

3 years agodnsdist: Disable /jsonstats w/ DISABLE_BUILTIN_HTML. Add DISABLE_WEB_CONFIG
Remi Gacogne [Mon, 15 Nov 2021 11:01:33 +0000 (12:01 +0100)] 
dnsdist: Disable /jsonstats w/ DISABLE_BUILTIN_HTML. Add DISABLE_WEB_CONFIG

3 years agodnsdist: Also disable forgotten bindings for DISABLE_DEPRECATED_DYNBLOCK
Remi Gacogne [Mon, 15 Nov 2021 11:00:52 +0000 (12:00 +0100)] 
dnsdist: Also disable forgotten bindings for DISABLE_DEPRECATED_DYNBLOCK

3 years agodnsdist: Fix formatting
Remi Gacogne [Mon, 15 Nov 2021 09:33:45 +0000 (10:33 +0100)] 
dnsdist: Fix formatting

3 years agodnsdist: More options to disable features, fix compilation on OpenWRT
Remi Gacogne [Fri, 12 Nov 2021 17:04:44 +0000 (18:04 +0100)] 
dnsdist: More options to disable features, fix compilation on OpenWRT

3 years agodnsdist: Only expose SNMP helpers when SNMP is built in
Remi Gacogne [Fri, 12 Nov 2021 15:10:16 +0000 (16:10 +0100)] 
dnsdist: Only expose SNMP helpers when SNMP is built in

3 years agodnsdist: Remove deprecated actions
Remi Gacogne [Fri, 12 Nov 2021 15:06:17 +0000 (16:06 +0100)] 
dnsdist: Remove deprecated actions

3 years agodnsdist: Clean up parameter types in Lua bindings
Remi Gacogne [Fri, 12 Nov 2021 14:59:45 +0000 (15:59 +0100)] 
dnsdist: Clean up parameter types in Lua bindings

3 years agodnsdist: Disable deprecated DynBlock methods when DISABLE_DEPRECATED_DYNBLOCK is...
Remi Gacogne [Fri, 12 Nov 2021 14:59:13 +0000 (15:59 +0100)] 
dnsdist: Disable deprecated DynBlock methods when DISABLE_DEPRECATED_DYNBLOCK is defined

3 years agodnsdist: Only expose KVS helpers when CDB or LMDB is available
Remi Gacogne [Fri, 12 Nov 2021 14:57:51 +0000 (15:57 +0100)] 
dnsdist: Only expose KVS helpers when CDB or LMDB is available

Idem for DNSCrypt

3 years agodnsdist: Add a comment on which symbols are actually exported
Remi Gacogne [Fri, 12 Nov 2021 14:57:18 +0000 (15:57 +0100)] 
dnsdist: Add a comment on which symbols are actually exported

3 years agodnsdist: Move more DNSCrypt bindings into the right Lua file
Remi Gacogne [Fri, 12 Nov 2021 10:56:50 +0000 (11:56 +0100)] 
dnsdist: Move more DNSCrypt bindings into the right Lua file

3 years agodnsdist: Make libedit support optional
Remi Gacogne [Tue, 9 Nov 2021 15:37:17 +0000 (16:37 +0100)] 
dnsdist: Make libedit support optional

3 years agodnsdist: Do not build secpoll support when DISABLE_SECPOLL is defined
Remi Gacogne [Tue, 9 Nov 2021 14:12:09 +0000 (15:12 +0100)] 
dnsdist: Do not build secpoll support when DISABLE_SECPOLL is defined

3 years agodnsdist: Do not build carbon support when DISABLE_CARBON is defined
Remi Gacogne [Tue, 9 Nov 2021 10:58:57 +0000 (11:58 +0100)] 
dnsdist: Do not build carbon support when DISABLE_CARBON is defined

3 years agodnsdist: Move carbon configuration into a separate header file
Remi Gacogne [Mon, 8 Nov 2021 16:44:51 +0000 (17:44 +0100)] 
dnsdist: Move carbon configuration into a separate header file

3 years agodnsdist: Do not include built-in HTML content when DISABLE_BUILTIN_HTML is defined
Remi Gacogne [Mon, 8 Nov 2021 16:38:59 +0000 (17:38 +0100)] 
dnsdist: Do not include built-in HTML content when DISABLE_BUILTIN_HTML is defined

3 years agodnsdist: Do not build protobuf support when DISABLE_PROTOBUF is defined
Remi Gacogne [Mon, 8 Nov 2021 16:24:32 +0000 (17:24 +0100)] 
dnsdist: Do not build protobuf support when DISABLE_PROTOBUF is defined

3 years agodnsdist: Add a configure option to disable CDB
Remi Gacogne [Mon, 8 Nov 2021 11:26:44 +0000 (12:26 +0100)] 
dnsdist: Add a configure option to disable CDB

3 years agoauth,dnsdist: Add an option to disable 'ipcipher' during configure
Remi Gacogne [Mon, 8 Nov 2021 11:14:31 +0000 (12:14 +0100)] 
auth,dnsdist: Add an option to disable 'ipcipher' during configure

3 years agodnsdist: Do not build prometheus support when DISABLE_PROMETHEUS is defined
Remi Gacogne [Mon, 8 Nov 2021 10:02:29 +0000 (11:02 +0100)] 
dnsdist: Do not build prometheus support when DISABLE_PROMETHEUS is defined

3 years agodnsdist: Do not build the completion and help when DISABLE_COMPLETION is defined
Remi Gacogne [Fri, 5 Nov 2021 08:52:00 +0000 (09:52 +0100)] 
dnsdist: Do not build the completion and help when DISABLE_COMPLETION is defined

A configure option would be better, as we might then also not link
against libedit.

3 years agoMerge pull request #11110 from rgacogne/rec-suppressions-forks
Otto Moerbeek [Tue, 21 Dec 2021 15:24:52 +0000 (16:24 +0100)] 
Merge pull request #11110 from rgacogne/rec-suppressions-forks

rec: Fix the path to the recursor's UBSan suppression file in forks

3 years agoMerge pull request #11117 from omoerbeek/sendMsgWithOptions-firstTry
Otto Moerbeek [Tue, 21 Dec 2021 15:24:19 +0000 (16:24 +0100)] 
Merge pull request #11117 from omoerbeek/sendMsgWithOptions-firstTry

fix warning: firstTry is set but not used

3 years agoMerge pull request #11098 from chbruyand/dnsdist-clear-response-qtypes
Remi Gacogne [Tue, 21 Dec 2021 12:48:37 +0000 (13:48 +0100)] 
Merge pull request #11098 from chbruyand/dnsdist-clear-response-qtypes

dnsdist: lua support to remove resource records from a response

3 years agofirstTry is set but not used if !defined(MSG_FASTOPEN) 11117/head
Otto [Tue, 21 Dec 2021 10:32:59 +0000 (11:32 +0100)] 
firstTry is set but not used if !defined(MSG_FASTOPEN)

3 years agodnsdist: Move 1.7.0-rc1 release date to the 22nd 11076/head
Remi Gacogne [Tue, 21 Dec 2021 10:06:49 +0000 (11:06 +0100)] 
dnsdist: Move 1.7.0-rc1 release date to the 22nd

3 years agodnsdist: Remove a duplicated entry in the changelog
Remi Gacogne [Thu, 16 Dec 2021 10:07:00 +0000 (11:07 +0100)] 
dnsdist: Remove a duplicated entry in the changelog

3 years agodnsdist: Update the 1.7.0-rc1 changelog
Remi Gacogne [Thu, 9 Dec 2021 10:28:24 +0000 (11:28 +0100)] 
dnsdist: Update the 1.7.0-rc1 changelog

3 years agodnsdist: Update the ChangeLog and the secpoll zone for 1.7.0-rc1
Remi Gacogne [Tue, 7 Dec 2021 16:52:17 +0000 (17:52 +0100)] 
dnsdist: Update the ChangeLog and the secpoll zone for 1.7.0-rc1

3 years agoMerge pull request #11109 from omoerbeek/version-features
Otto Moerbeek [Tue, 21 Dec 2021 08:15:35 +0000 (09:15 +0100)] 
Merge pull request #11109 from omoerbeek/version-features

version.c: Two more features to print

3 years agoSet policy to not start/enable services by default 11116/head
Otto [Sat, 18 Dec 2021 19:24:14 +0000 (20:24 +0100)] 
Set policy to not start/enable services by default

3 years agorec: Fix the path to the recursor's UBSan suppression file in forks 11110/head
Remi Gacogne [Fri, 17 Dec 2021 16:10:03 +0000 (17:10 +0100)] 
rec: Fix the path to the recursor's UBSan suppression file in forks

3 years agoMerge pull request #11108 from chbruyand/libssl-fix-missing-functions
Otto Moerbeek [Fri, 17 Dec 2021 13:00:31 +0000 (14:00 +0100)] 
Merge pull request #11108 from chbruyand/libssl-fix-missing-functions

libssl: fix compilation issues on older openssl versions

3 years agoTwo more features to print 11109/head
Otto [Fri, 17 Dec 2021 11:16:51 +0000 (12:16 +0100)] 
Two more features to print

3 years agoMerge pull request #11074 from omoerbeek/rec-postresolve-ffi
Otto Moerbeek [Fri, 17 Dec 2021 10:40:56 +0000 (11:40 +0100)] 
Merge pull request #11074 from omoerbeek/rec-postresolve-ffi

rec: postresolve ffi

3 years agolibssl: do not check for sk_X509_free 11108/head
Charles-Henri Bruyand [Fri, 17 Dec 2021 10:18:25 +0000 (11:18 +0100)] 
libssl: do not check for sk_X509_free

3 years agoMerge pull request #11079 from rgacogne/ddist-doh-tc-check-query-size
Remi Gacogne [Fri, 17 Dec 2021 10:13:42 +0000 (11:13 +0100)] 
Merge pull request #11079 from rgacogne/ddist-doh-tc-check-query-size

dnsdist: Check the size of the query when re-sending a DoH query

3 years agoMerge pull request #11105 from rgacogne/ddist-unbreak-compilation-without-doh
Remi Gacogne [Fri, 17 Dec 2021 10:13:13 +0000 (11:13 +0100)] 
Merge pull request #11105 from rgacogne/ddist-unbreak-compilation-without-doh

dnsdist: Fix compilation without incoming DoH support

3 years agoMerge pull request #11099 from omoerbeek/rec-prep-4.6.0
Otto Moerbeek [Fri, 17 Dec 2021 10:01:32 +0000 (11:01 +0100)] 
Merge pull request #11099 from omoerbeek/rec-prep-4.6.0

rec: Prep for rec-4.6.0 release

3 years agoMention that keeping idle outgoing connections open uses fds. 11099/head
Otto [Fri, 17 Dec 2021 09:40:57 +0000 (10:40 +0100)] 
Mention that keeping idle outgoing connections open uses fds.
Also correct default tcp-out-max-idle-per-thread in docs.

3 years agolibssl: fix missing SSL_CTX_use_cert_and_key function on openssl version < 1.1.1...
Charles-Henri Bruyand [Fri, 17 Dec 2021 09:39:07 +0000 (10:39 +0100)] 
libssl: fix missing SSL_CTX_use_cert_and_key function on openssl version < 1.1.1 by disabling pkcs12 support

3 years agodnsdist: fix ClearRecordTypesResponseAction documentation with an example and clarify... 11098/head
Charles-Henri Bruyand [Thu, 16 Dec 2021 12:35:18 +0000 (13:35 +0100)] 
dnsdist: fix ClearRecordTypesResponseAction documentation with an example and clarify subsequent rules will be processed

3 years agoCleanup and issues raised by first rgacogne's review (thanks!)
Charles-Henri Bruyand [Fri, 10 Dec 2021 16:23:51 +0000 (17:23 +0100)] 
Cleanup and issues raised by first rgacogne's review (thanks!)

3 years agodnsdist: add non ffi interface to clear given record types in a response
Charles-Henri Bruyand [Fri, 10 Dec 2021 15:59:27 +0000 (16:59 +0100)] 
dnsdist: add non ffi interface to clear given record types in a response

3 years agodnsdist: add ffi interface to clear given record types in a response
Charles-Henri Bruyand [Fri, 3 Dec 2021 17:54:05 +0000 (18:54 +0100)] 
dnsdist: add ffi interface to clear given record types in a response

3 years agodnsdist: add parser method to clear given record types in a packet
Charles-Henri Bruyand [Fri, 3 Dec 2021 09:07:25 +0000 (10:07 +0100)] 
dnsdist: add parser method to clear given record types in a packet

3 years agoMerge pull request #11027 from chbruyand/dnsdist-pcks12-certs
Remi Gacogne [Thu, 16 Dec 2021 10:08:55 +0000 (11:08 +0100)] 
Merge pull request #11027 from chbruyand/dnsdist-pcks12-certs

dnsdist: add support for password protected PCKS12 files for TLS configuration

3 years agoMerge pull request #11051 from chbruyand/dnsdist-spoof-packet
Remi Gacogne [Thu, 16 Dec 2021 10:08:27 +0000 (11:08 +0100)] 
Merge pull request #11051 from chbruyand/dnsdist-spoof-packet

 dnsdist: add support to spoof a full self-generated response from lua

3 years agoMerge pull request #10949 from rgacogne/ddist-lua-ffi-proxy-protocol
Remi Gacogne [Thu, 16 Dec 2021 09:58:17 +0000 (10:58 +0100)] 
Merge pull request #10949 from rgacogne/ddist-lua-ffi-proxy-protocol

dnsdist: Add a Lua FFI helper to generate proxy protocol payloads

3 years agoApply rgacogne's suggestions from code review, thanks :) 11027/head
Charles-Henri Bruyand [Wed, 24 Nov 2021 10:37:10 +0000 (11:37 +0100)] 
Apply rgacogne's suggestions from code review, thanks :)

3 years agodnsdist: add pkcs12 file regression tests
Charles-Henri Bruyand [Wed, 24 Nov 2021 10:29:51 +0000 (11:29 +0100)] 
dnsdist: add pkcs12 file regression tests

3 years agodnsdist: add support for password protected PCKS12 files for TLS configuration
Charles-Henri Bruyand [Fri, 19 Nov 2021 14:21:15 +0000 (15:21 +0100)] 
dnsdist: add support for password protected PCKS12 files for TLS configuration

3 years agoMerge pull request #11017 from rgacogne/ddist-network-itfs
Remi Gacogne [Thu, 16 Dec 2021 08:57:56 +0000 (09:57 +0100)] 
Merge pull request #11017 from rgacogne/ddist-network-itfs

dnsdist: Add Lua bindings to get the list of network interfaces, addresses

3 years agodnsdist: Fix compilation without incoming DoH support 11105/head
Remi Gacogne [Thu, 16 Dec 2021 08:36:25 +0000 (09:36 +0100)] 
dnsdist: Fix compilation without incoming DoH support

3 years agodnsdist: Make sure we do not throw from the Lua FFI interface 10949/head
Remi Gacogne [Wed, 15 Dec 2021 15:31:06 +0000 (16:31 +0100)] 
dnsdist: Make sure we do not throw from the Lua FFI interface

3 years agoMerge pull request #11095 from Habbie/upgrade-notes-11081
Peter van Dijk [Wed, 15 Dec 2021 14:38:36 +0000 (15:38 +0100)] 
Merge pull request #11095 from Habbie/upgrade-notes-11081

dnsdist, rec, auth: upgrade notes for 11081

3 years agoMerge pull request #10734 from rgacogne/ddist-async-tls
Remi Gacogne [Wed, 15 Dec 2021 14:12:56 +0000 (15:12 +0100)] 
Merge pull request #10734 from rgacogne/ddist-async-tls

dnsdist: Add experimental support for TLS asynchronous engines

3 years agodnsdist: Add a Lua FFI helper to generate proxy protocol payloads
Remi Gacogne [Fri, 5 Nov 2021 08:45:42 +0000 (09:45 +0100)] 
dnsdist: Add a Lua FFI helper to generate proxy protocol payloads

3 years agoMerge pull request #11101 from omoerbeek/auth-errno-clobbered
Otto Moerbeek [Wed, 15 Dec 2021 14:03:13 +0000 (15:03 +0100)] 
Merge pull request #11101 from omoerbeek/auth-errno-clobbered

auth: save errno value as close(2) might clobber it

3 years agoMerge pull request #11075 from rgacogne/ddist-fix-dropped-doh-cross-responses
Remi Gacogne [Wed, 15 Dec 2021 13:18:02 +0000 (14:18 +0100)] 
Merge pull request #11075 from rgacogne/ddist-fix-dropped-doh-cross-responses

dnsdist: Fix a double-free when a DoH cross-protocol response is dropped

3 years agoauth: save errno value as close(2) might clobber it 11101/head
Otto [Wed, 15 Dec 2021 12:40:20 +0000 (13:40 +0100)] 
auth: save errno value as close(2) might clobber it

3 years agodnsdist: Clarify that if the call failed we still own the DOHUnit 11075/head
Remi Gacogne [Wed, 15 Dec 2021 11:19:11 +0000 (12:19 +0100)] 
dnsdist: Clarify that if the call failed we still own the DOHUnit

3 years agodnsdist: Add comments on reference counting around our internal pipe
Remi Gacogne [Wed, 15 Dec 2021 10:49:29 +0000 (11:49 +0100)] 
dnsdist: Add comments on reference counting around our internal pipe

3 years agodnsdist: Use an alias for the DOHUnit unique pointer
Remi Gacogne [Wed, 15 Dec 2021 09:54:07 +0000 (10:54 +0100)] 
dnsdist: Use an alias for the DOHUnit unique pointer

3 years agodnsdist: Fix typo spotted by Otto
Remi Gacogne [Wed, 15 Dec 2021 09:53:28 +0000 (10:53 +0100)] 
dnsdist: Fix typo spotted by Otto

3 years agoPrep for rec-4.6.0 release
Otto [Wed, 15 Dec 2021 08:08:20 +0000 (09:08 +0100)] 
Prep for rec-4.6.0 release

3 years agoMerge pull request #11059 from chbruyand/dnsdist-lua-ttl-limit
Charles-Henri Bruyand [Tue, 14 Dec 2021 16:22:50 +0000 (17:22 +0100)] 
Merge pull request #11059 from chbruyand/dnsdist-lua-ttl-limit

dnsdist: add lua support to limit TTL values of responses

3 years agoMerge pull request #10984 from danel1/master
Pieter Lexis [Tue, 14 Dec 2021 09:47:20 +0000 (10:47 +0100)] 
Merge pull request #10984 from danel1/master

docs: Add hint on how to find generic records in SQL backends

3 years agodnsdist, rec, auth: upgrade notes for 11081 11095/head
Peter van Dijk [Mon, 13 Dec 2021 11:05:44 +0000 (12:05 +0100)] 
dnsdist, rec, auth: upgrade notes for 11081

3 years agoMerge pull request #11081 from nvaatstra/docker-unprivileged dnsdist-1.8.0-alpha0
Peter van Dijk [Mon, 13 Dec 2021 08:13:37 +0000 (09:13 +0100)] 
Merge pull request #11081 from nvaatstra/docker-unprivileged

Docker images: Remove capability requirements

3 years agoAdditional note on Docker Engine version where the requirement of the additional... 11081/head
Nico Vaatstra [Thu, 9 Dec 2021 11:39:29 +0000 (12:39 +0100)] 
Additional note on Docker Engine version where the requirement of the additional capability was dropped

3 years agoMerge pull request #11061 from Habbie/auth-4.6.0-alpha2-docs-secpoll
Peter van Dijk [Thu, 9 Dec 2021 10:44:12 +0000 (11:44 +0100)] 
Merge pull request #11061 from Habbie/auth-4.6.0-alpha2-docs-secpoll

auth-4.6.0-beta1: secpoll&docs

3 years agodnsdist: Account for the proxy protocol payload when checking the query size 11079/head
Remi Gacogne [Thu, 9 Dec 2021 10:14:57 +0000 (11:14 +0100)] 
dnsdist: Account for the proxy protocol payload when checking the query size

3 years agoauth-4.6.0-beta1: secpoll&docs 11061/head
Peter van Dijk [Thu, 2 Dec 2021 12:16:30 +0000 (13:16 +0100)] 
auth-4.6.0-beta1: secpoll&docs

3 years agoRemove capability requirements from Docker images
Nico Vaatstra [Wed, 8 Dec 2021 15:28:42 +0000 (16:28 +0100)] 
Remove capability requirements from Docker images

3 years agoMerge pull request #11078 from rgacogne/ddist-ffi-spoof-raw-no-const
Remi Gacogne [Wed, 8 Dec 2021 15:16:01 +0000 (16:16 +0100)] 
Merge pull request #11078 from rgacogne/ddist-ffi-spoof-raw-no-const

dnsdist: Fix const-correctness of dnsdist_ffi_raw_value_t's value

3 years agodnsdist: Check the size of the query when re-sending a DoH query
Remi Gacogne [Wed, 8 Dec 2021 14:36:37 +0000 (15:36 +0100)] 
dnsdist: Check the size of the query when re-sending a DoH query

When the UDP response to a DoH query was truncated, we re-send the
query via TCP, passing it to a TCP worker. We need to edit the ID
to its original value before that, and while there is no reason
that the query is smaller than a dnsheader, we need to check its size,
not the size of the response.

3 years agodnsdist: Increment the DoH ref counter before writing to the pipe
Remi Gacogne [Wed, 8 Dec 2021 14:31:18 +0000 (15:31 +0100)] 
dnsdist: Increment the DoH ref counter before writing to the pipe

As far as I can tell this is not actually needed, as we decrement
it right away, but it prevents TSAN from reporting a race when the
UDP response comes very fast, is truncated, and the query is then
passed to a TCP worker. TSAN seems to think that the thread is still
sending the UDP query when we touch it again in the TCP worker, which
does not really make sense to me.
My guess is that the memory barrier needed to update the ref counter
makes TSAN happy, but I might be missing something.

3 years agoAdd test for new APIs and reformat 11074/head
Otto Moerbeek [Wed, 8 Dec 2021 13:00:53 +0000 (14:00 +0100)] 
Add test for new APIs and reformat

3 years agoAPI tweaks in response to reviews
Otto [Wed, 8 Dec 2021 12:03:39 +0000 (13:03 +0100)] 
API tweaks in response to reviews

3 years agodnsdist: Fix const-correctness of dnsdist_ffi_raw_value_t's value 11078/head auth-4.7.0-alpha0
Remi Gacogne [Wed, 8 Dec 2021 11:41:23 +0000 (12:41 +0100)] 
dnsdist: Fix const-correctness of dnsdist_ffi_raw_value_t's value

This prevent an allocation and a copy since we can now directly pass
a Lua string.

3 years agodnsdist: Wrap the DOHUnit object in a unique_ptr whenever possible
Remi Gacogne [Wed, 8 Dec 2021 11:31:00 +0000 (12:31 +0100)] 
dnsdist: Wrap the DOHUnit object in a unique_ptr whenever possible