]>
granicus.if.org Git - pdns/log
Otto Moerbeek [Wed, 9 Oct 2019 12:39:29 +0000 (14:39 +0200)]
Using a variable format string opens up all kinds of cans of worms.
Peter van Dijk [Wed, 9 Oct 2019 07:29:17 +0000 (09:29 +0200)]
Merge pull request #7719 from Habbie/dnspython-assertequal
better assertEqual for dnspython
Peter van Dijk [Thu, 3 Oct 2019 13:59:51 +0000 (15:59 +0200)]
recursor-dnssec: use eqdnsmessage
Peter van Dijk [Thu, 3 Oct 2019 13:35:43 +0000 (15:35 +0200)]
ixfrdist: eqdnsmessage
Peter van Dijk [Thu, 3 Oct 2019 13:26:23 +0000 (15:26 +0200)]
(uselessly) add eqdnsmessage to auth testing
Peter van Dijk [Thu, 3 Oct 2019 13:18:31 +0000 (15:18 +0200)]
move assert helper out of dnsdist tests
Peter van Dijk [Thu, 11 Apr 2019 15:40:20 +0000 (17:40 +0200)]
better assertEqual for dnspython
before:
AssertionError: <DNS message, ID 38993> != <DNS message, ID 38993>
after:
AssertionError: <DNS message, ID 46818> != <DNS message, ID 46818>:
--- first
+++ second
@@ -1,10 +1,10 @@
id 46818
-opcode 6
-rcode NOTAUTH
-flags AD CD
+opcode QUERY
+rcode NOERROR
+flags RD
;QUESTION
xpf.tests.powerdns.com. IN A
;ANSWER
;AUTHORITY
;ADDITIONAL
-. 0 IN TYPE65422 \# 14
04117f0000017f000001f8bc14dc
+xpf.tests.powerdns.com. 60 IN TYPE65422 \# 14
04117f0000017f00000100000000
Otto Moerbeek [Tue, 8 Oct 2019 08:23:49 +0000 (10:23 +0200)]
Merge pull request #8351 from Habbie/no-move-mutex
auth statbag: move to std::mutex, avoid copies
Remi Gacogne [Mon, 7 Oct 2019 15:27:37 +0000 (17:27 +0200)]
Merge pull request #8382 from rgacogne/ddist-ciphers-order
dnsdist: Add a 'preferServerCiphers' option for DoH and DoT
Remi Gacogne [Mon, 7 Oct 2019 15:27:20 +0000 (17:27 +0200)]
Merge pull request #8381 from rgacogne/ddist-prometheus-thread-number
dnsdist: Add a prometheus 'thread' label to distinguish identical frontends
Remi Gacogne [Mon, 7 Oct 2019 15:26:55 +0000 (17:26 +0200)]
Merge pull request #8375 from rgacogne/ddist-python-dns-options-print
Implement python's to_text() for Cookies and Client Subnet options
Otto Moerbeek [Mon, 7 Oct 2019 12:17:36 +0000 (14:17 +0200)]
And declare assignment operator deleted
Otto Moerbeek [Mon, 7 Oct 2019 11:44:59 +0000 (13:44 +0200)]
Merge pull request #8385 from omoerbeek/more-strict-flags
More strict flags
Otto Moerbeek [Mon, 7 Oct 2019 09:27:13 +0000 (11:27 +0200)]
While there is no shadowing going on for global functions, improve
consistency by calling a lua_state lua_state.
Otto Moerbeek [Mon, 7 Oct 2019 08:43:41 +0000 (10:43 +0200)]
Add copy-ct, gcc C++ lib <= 4.8 seems to need it.
Otto Moerbeek [Fri, 4 Oct 2019 15:13:19 +0000 (17:13 +0200)]
Some more shadowing going on
Otto Moerbeek [Fri, 4 Oct 2019 14:40:00 +0000 (16:40 +0200)]
Use -Wextra -Wshadow.
This cause plenty of signed-compare warnings from clang in the unit-tests. So
fix those plus a few cases of -Wshadow.
Remi Gacogne [Fri, 4 Oct 2019 10:28:56 +0000 (12:28 +0200)]
dnsdist: Add a 'preferServerCiphers' option for DoH and DoT
It used to be that the servers had a much better configuration than
the clients, but nowadays we better rely on the clients, as they
know whether they have hardware support for a specific algorithm
which might save battery life or improve latency by a large margin.
Remi Gacogne [Fri, 4 Oct 2019 09:13:42 +0000 (11:13 +0200)]
dnsdist: Add a prometheus 'thread' label to distinguish identical frontends
Remi Gacogne [Fri, 4 Oct 2019 08:23:56 +0000 (10:23 +0200)]
Merge pull request #8377 from rgacogne/ddist-more-warnings
dnsdist: Compile with -Wall -Wextra -Wshadow by default
Remi Gacogne [Fri, 4 Oct 2019 08:22:53 +0000 (10:22 +0200)]
Merge pull request #8378 from rgacogne/ddist-prometheus-senderrors-typo
dnsdist: Fix a typo in the prometheus description of 'senderrors'
Remi Gacogne [Thu, 3 Oct 2019 15:29:39 +0000 (17:29 +0200)]
dnsdist: Fix a typo in the prometheus description of 'senderrors'
Remi Gacogne [Thu, 3 Oct 2019 13:41:46 +0000 (15:41 +0200)]
dnsdist: Compile with -Wall -Wextra -Wshadow by default
And -Werror=vla -Werror=shadow -Wformat=2 -Werror=format-security
in CircleCI.
Remi Gacogne [Thu, 3 Oct 2019 13:41:20 +0000 (15:41 +0200)]
Fix 'this statement may fall through' warnings
Remi Gacogne [Thu, 3 Oct 2019 13:41:07 +0000 (15:41 +0200)]
dnsdist: Fix shadowed variables
Remi Gacogne [Thu, 3 Oct 2019 13:40:12 +0000 (15:40 +0200)]
Fix implicitly-declared 'YaHTTP::CookieJar& YaHTTP::CookieJar::operator='
Remi Gacogne [Thu, 3 Oct 2019 12:53:02 +0000 (14:53 +0200)]
Merge pull request #8342 from chbruyand/pipebackend-unused-warning
pipebackend: remove unused variable
Remi Gacogne [Thu, 3 Oct 2019 09:53:48 +0000 (11:53 +0200)]
Implement python's to_text() for Cookies and Client Subnet options
Otto Moerbeek [Wed, 2 Oct 2019 13:46:46 +0000 (15:46 +0200)]
Merge pull request #8371 from omoerbeek/rec-fix-debian-pkg-build
Fix chmod paths in rules files
Otto Moerbeek [Wed, 2 Oct 2019 13:18:51 +0000 (15:18 +0200)]
Fix chmod paths in rules files
Otto Moerbeek [Wed, 2 Oct 2019 12:23:41 +0000 (14:23 +0200)]
Merge pull request #8369 from omoerbeek/auth-pthread_t-isnotanint
Printing a pthread_t on platforms having a non-int pthread_id requires a cast to uintptr_t.
Remi Gacogne [Wed, 2 Oct 2019 12:16:45 +0000 (14:16 +0200)]
Merge pull request #8368 from rgacogne/ddist-prometheus-third
dnsdist: More prometheus fixes
Remi Gacogne [Wed, 2 Oct 2019 12:15:01 +0000 (14:15 +0200)]
Merge pull request #8365 from rgacogne/ddist-lowercase-custom-header-names
dnsdist: Lowercase custom DoH header names
Otto Moerbeek [Wed, 2 Oct 2019 11:38:33 +0000 (13:38 +0200)]
Merge pull request #8344 from franklouwers/rec-signalhandling
Add signal handling for SIGTERM and SIGINT in pdns_recursor, if we are PID1
Otto Moerbeek [Wed, 2 Oct 2019 11:01:57 +0000 (13:01 +0200)]
Merge pull request #8366 from omoerbeek/rec-enable-nod
rec: Build Newly Observerd Domain (NOD) support by default.
Otto Moerbeek [Wed, 2 Oct 2019 09:17:48 +0000 (11:17 +0200)]
Printing a pthread_t on platforms having a non-int pthread_id
requires a cast to uintptr_t.
Remi Gacogne [Wed, 2 Oct 2019 09:14:50 +0000 (11:14 +0200)]
dnsdist: Also lowercase custom DoH header names for early responses
Remi Gacogne [Wed, 2 Oct 2019 08:49:12 +0000 (10:49 +0200)]
dnsdist: Deduplicate DoH frontend names in prometheus
Remi Gacogne [Wed, 2 Oct 2019 08:47:47 +0000 (10:47 +0200)]
dnsdist: Add missing prometheus descriptions for dnsdist_pool_servers and dnsdist_pool_active_servers
Remi Gacogne [Wed, 2 Oct 2019 08:45:07 +0000 (10:45 +0200)]
dnsdist: Fix a typo in 'tcpdownstreamtimeouts' prometheus description
Remi Gacogne [Wed, 2 Oct 2019 08:44:44 +0000 (10:44 +0200)]
dnsdist: Fix handling of latency-sum and latency-count in prometheus
Remi Gacogne [Wed, 2 Oct 2019 08:38:53 +0000 (10:38 +0200)]
dnsdist: Add per-frontend and per-server response counters
Frank Louwers [Tue, 1 Oct 2019 15:44:38 +0000 (17:44 +0200)]
Typo. Thanks @phonedph1
Otto Moerbeek [Tue, 1 Oct 2019 12:42:17 +0000 (14:42 +0200)]
Auto, conditional on availability of boot-filesystem lib
Remi Gacogne [Tue, 1 Oct 2019 11:45:16 +0000 (13:45 +0200)]
Merge pull request #8364 from rgacogne/ddist-webserver-checkconfig
dnsdist: Check the address supplied to 'webserver' in check-config
Remi Gacogne [Tue, 1 Oct 2019 11:44:58 +0000 (13:44 +0200)]
Merge pull request #8363 from omoerbeek/lgtm-coverity-1
LGTM/coverity spotted issues: copy constructors and = operators
Otto Moerbeek [Tue, 1 Oct 2019 09:57:57 +0000 (11:57 +0200)]
Build Newly Observerd Domain (NOD) support by default.
Still disabled by default config.
Otto Moerbeek [Tue, 1 Oct 2019 09:35:03 +0000 (11:35 +0200)]
Merge pull request #8360 from omoerbeek/rec-systemd-config-perms
rec: chmod/own recursor.conf for the systemd case
Remi Gacogne [Tue, 1 Oct 2019 09:10:07 +0000 (11:10 +0200)]
dnsdist: Lowercase custom DoH header names
Remi Gacogne [Tue, 1 Oct 2019 08:36:02 +0000 (10:36 +0200)]
Merge pull request #8361 from rgacogne/ddist-doh-prometheus-bis
dnsdist: Refactor DoH prometheus metrics again
Remi Gacogne [Tue, 1 Oct 2019 08:35:04 +0000 (10:35 +0200)]
Merge pull request #8359 from rgacogne/dnsdist-setrules-creationorder
dnsdist: Fix the creation order of rules when inserted via SetRules()
Remi Gacogne [Tue, 1 Oct 2019 08:02:14 +0000 (10:02 +0200)]
dnsdist: Check the address supplied to 'webserver' in check-config
Otto Moerbeek [Mon, 30 Sep 2019 09:46:13 +0000 (11:46 +0200)]
Cleanup copy constructor/assignment op "rule-of-2" violations.
Remi Gacogne [Mon, 30 Sep 2019 15:44:51 +0000 (17:44 +0200)]
dnsdist: Refactor DoH prometheus metrics again
Otto Moerbeek [Mon, 30 Sep 2019 15:40:15 +0000 (17:40 +0200)]
chmod/own recursor.conf for the systemd case
Remi Gacogne [Mon, 30 Sep 2019 14:54:57 +0000 (16:54 +0200)]
dnsdist: Fix the creation order of rules when inserted via SetRules()
Remi Gacogne [Mon, 30 Sep 2019 13:03:25 +0000 (15:03 +0200)]
Merge pull request #8356 from rgacogne/ddist-140-rc3-changelog-secpoll
dnsdist: ChangeLog and secpoll update for 1.4.0-rc3
Remi Gacogne [Mon, 30 Sep 2019 08:40:26 +0000 (10:40 +0200)]
dnsdist: add DNS over HTTPS and DNS over TLS tags to the conf
Remi Gacogne [Mon, 30 Sep 2019 08:28:35 +0000 (10:28 +0200)]
dnsdist: ChangeLog and secpoll update for 1.4.0-rc3
Remi Gacogne [Mon, 30 Sep 2019 02:03:55 +0000 (04:03 +0200)]
Merge pull request #8318 from rgacogne/ddist-prometheus-labels
dnsdist: Better use of labels in our DoH prometheus export
Remi Gacogne [Sun, 29 Sep 2019 21:00:34 +0000 (23:00 +0200)]
Merge pull request #8349 from rgacogne/ddist-doh-tickets
dnsdist: Implement TLS Session Ticket Keys management for DoH
Peter van Dijk [Fri, 27 Sep 2019 15:09:47 +0000 (17:09 +0200)]
auth statbag: move to std::mutex, avoid copies
Otto Moerbeek [Fri, 27 Sep 2019 14:28:44 +0000 (16:28 +0200)]
Problem found by coverity.
Remi Gacogne [Fri, 27 Sep 2019 14:15:40 +0000 (16:15 +0200)]
dnsdist: Remove references to GnuTLS for DoH
Remi Gacogne [Fri, 27 Sep 2019 14:11:23 +0000 (16:11 +0200)]
dnsdist: Exclude TLS session resumption tests from Travis (no DoH, old libssl)
Remi Gacogne [Fri, 27 Sep 2019 14:10:36 +0000 (16:10 +0200)]
dnsdist: Document DoH TLS Session Ticket keys management. Add tests.
Otto Moerbeek [Fri, 27 Sep 2019 14:00:08 +0000 (16:00 +0200)]
Merge pull request #8343 from omoerbeek/lgtm-low-hanging-fruit
Lgtm low hanging fruit
Otto Moerbeek [Fri, 27 Sep 2019 13:57:39 +0000 (15:57 +0200)]
Merge pull request #8350 from omoerbeek/fix-bind-mutex-leak
bind backend: pthread_mutex_t should be inited and destroyed and not be copied
Otto Moerbeek [Fri, 27 Sep 2019 12:40:24 +0000 (14:40 +0200)]
bind backend: pthread_mutex_t should be inited and destroyed and not be copied
To make our live easier, use a native C++ mutex.
Fixes #8161
Remi Gacogne [Thu, 26 Sep 2019 15:02:48 +0000 (17:02 +0200)]
dnsdist: Skip TCP metrics for UDP frontends over prometheus
Remi Gacogne [Thu, 26 Sep 2019 14:19:28 +0000 (16:19 +0200)]
dnsdist: Implement TLS Session Ticket Keys management for DoH
Remi Gacogne [Thu, 26 Sep 2019 12:36:51 +0000 (14:36 +0200)]
Merge pull request #8348 from rgacogne/auth-unit-hardening
auth: Add NoNewPrivileges, PrivateDevices and PrivateTmp back
Remi Gacogne [Thu, 26 Sep 2019 11:35:12 +0000 (13:35 +0200)]
auth: Add NoNewPrivileges, PrivateDevices and PrivateTmp back
Frank Louwers [Thu, 26 Sep 2019 09:42:27 +0000 (11:42 +0200)]
Add comments on why we need this
Frank Louwers [Thu, 26 Sep 2019 09:22:55 +0000 (11:22 +0200)]
Only register our handler when we're pid 1, and change to doExit()
Remi Gacogne [Thu, 26 Sep 2019 07:58:05 +0000 (09:58 +0200)]
Merge pull request #8208 from rgacogne/no-naked-pointers
auth: Get rid of most remaining naked pointers
Remi Gacogne [Wed, 25 Sep 2019 15:04:26 +0000 (17:04 +0200)]
auth: Mark getFreshAXFRPacket() as static
Remi Gacogne [Wed, 25 Sep 2019 15:03:43 +0000 (17:03 +0200)]
auth: Use shared pointers for the DNSPacket Lua bindings
Frank Louwers [Wed, 25 Sep 2019 10:07:14 +0000 (12:07 +0200)]
Add signal handling for SIGTERM and SIGINT in pdns_recursor
The Linux kernel handles signals for PID 1 processes differently. It
doesn't implement a default handler for some signals such as
SIGTERM/SIGINT.
When running pdns_recursor as a container, this causes a few annoyances.
You can work around those by running your containers with --init or by
installing `tini` inside the container. Or you can handle the signals in
the application itself.
This commit adds signal() handlers for SIGTERM and SIGINT for
pdns_recursor.
Otto Moerbeek [Wed, 25 Sep 2019 11:33:05 +0000 (13:33 +0200)]
Merge pull request #8339 from omoerbeek/clang-format-file
clang-format file proposal
Otto Moerbeek [Wed, 25 Sep 2019 10:25:51 +0000 (12:25 +0200)]
Merge pull request #8340 from omoerbeek/rec-rpz-load-zz
Fix #8338: Issue with "zz" abbreviation for IPv6 RPZ triggers
Remi Gacogne [Sun, 4 Aug 2019 19:28:48 +0000 (21:28 +0200)]
auth: Get rid of most remaining naked pointers
Otto Moerbeek [Wed, 25 Sep 2019 08:00:47 +0000 (10:00 +0200)]
Add lgtm annotations and #error directives if we're configured wrongly.
Already showing its worth: a few ac checks were missing.
Otto Moerbeek [Tue, 24 Sep 2019 14:51:57 +0000 (16:51 +0200)]
Missed one case of localtime()
Otto Moerbeek [Tue, 24 Sep 2019 14:30:18 +0000 (16:30 +0200)]
Some low-hanging LGTM fruit
Otto Moerbeek [Tue, 24 Sep 2019 11:27:45 +0000 (13:27 +0200)]
Incorporate suggestions from rgacogne
Charles-Henri Bruyand [Tue, 24 Sep 2019 09:15:20 +0000 (11:15 +0200)]
pipebackend: remove unused variable
Peter van Dijk [Tue, 24 Sep 2019 08:20:48 +0000 (10:20 +0200)]
Merge pull request #8328 from mind04/pdns-mysql-ssl
auth: gmysql backend, add an option to send the SSL capability flag t…
Remi Gacogne [Tue, 24 Sep 2019 07:56:34 +0000 (09:56 +0200)]
Merge pull request #8326 from rgacogne/security-policy
Add a security policy in our repo, remove outdated statement about versions
Remi Gacogne [Tue, 24 Sep 2019 07:54:00 +0000 (09:54 +0200)]
Merge pull request #8336 from Habbie/auth-no-version-in-manpage
auth: remove version number from man page footers
Remi Gacogne [Mon, 23 Sep 2019 15:04:10 +0000 (17:04 +0200)]
dnsdist: Update metrics based on the non-encrypted rcode over DNSCrypt
Remi Gacogne [Mon, 23 Sep 2019 14:34:38 +0000 (16:34 +0200)]
dnsdist: Update frontend* stats over TCP as well
Remi Gacogne [Mon, 23 Sep 2019 14:34:21 +0000 (16:34 +0200)]
dnsdist: Better use of labels in our DoH prometheus export
Also add stats about TLS session resumption.
Kees Monshouwer [Wed, 28 Aug 2019 10:07:02 +0000 (12:07 +0200)]
auth: gmysql backend, add an option to send the SSL capability flag to the server
Otto Moerbeek [Mon, 23 Sep 2019 12:59:38 +0000 (14:59 +0200)]
Fix #8338: Issue with "zz" abbreviation for IPv6 RPZ triggers
While there, add unittest for translating rpz names into netmasks
Otto Moerbeek [Mon, 23 Sep 2019 09:43:42 +0000 (11:43 +0200)]
clang-format file proposal
Run with clang-format [-i] -style=file in the tree.
-i does an in-place edit, without it result is written to stdout.
Peter van Dijk [Mon, 23 Sep 2019 08:38:39 +0000 (10:38 +0200)]
auth: remove version number from man page footers
Peter van Dijk [Mon, 23 Sep 2019 08:29:25 +0000 (10:29 +0200)]
Merge pull request #8332 from omoerbeek/rec-no-version-in-manpage
Remove version number in man page footer
Remi Gacogne [Mon, 23 Sep 2019 07:46:51 +0000 (09:46 +0200)]
Be more than explicit about the fact that dnsdist is also covered
Otto Moerbeek [Sat, 21 Sep 2019 08:09:38 +0000 (10:09 +0200)]
Remove version number