]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto [Mon, 4 Oct 2021 11:46:59 +0000 (13:46 +0200)]
Add two comments based on code review
Otto [Mon, 4 Oct 2021 11:36:50 +0000 (13:36 +0200)]
Small stuff from review comments
Otto [Mon, 4 Oct 2021 10:23:21 +0000 (12:23 +0200)]
Basic zone to cache unit test plus scaffolding to make structured
logging work (test backend logs to the regular logging)
Otto Moerbeek [Fri, 1 Oct 2021 13:40:47 +0000 (15:40 +0200)]
Don;t take refresh time from SOA, allow for single shot (refreshPeriod = 0) and
docs fixes.
Otto Moerbeek [Fri, 1 Oct 2021 12:18:23 +0000 (14:18 +0200)]
Docs
Otto Moerbeek [Fri, 1 Oct 2021 11:42:14 +0000 (13:42 +0200)]
Use structured logging, move loading to separate thread (a la RPZ)
Otto Moerbeek [Fri, 1 Oct 2021 11:31:57 +0000 (13:31 +0200)]
setting verbosity should not reset the logger name
Otto [Wed, 29 Sep 2021 14:36:42 +0000 (16:36 +0200)]
Current code doesn't care if dnssec is enabled or not; reorder struct Config
Otto [Wed, 29 Sep 2021 13:51:51 +0000 (15:51 +0200)]
Scaffolding for config via Lua
Otto [Wed, 12 May 2021 13:56:57 +0000 (15:56 +0200)]
Add a periodic zones-to-cache function.
No signatures are validated, that will happen on-demand if the
records are used.
Otto Moerbeek [Wed, 29 Sep 2021 08:48:57 +0000 (10:48 +0200)]
Merge pull request #10764 from omoerbeek/rec-prep-4.6.0-alpha1
rec: Upgrade guide and changelog for rec-4.6.0-alpha1
Otto Moerbeek [Wed, 29 Sep 2021 08:36:40 +0000 (10:36 +0200)]
Merge pull request #10774 from omoerbeek/dnsdist-centos7-undef-cert
undef CERT from libssl, as it conflicts with the one from qtype.hh
Otto [Wed, 29 Sep 2021 07:01:03 +0000 (09:01 +0200)]
undef cert from libssl, as it conflicts with the one from qtype.hh
Peter van Dijk [Tue, 28 Sep 2021 17:09:46 +0000 (19:09 +0200)]
Merge pull request #10748 from mind04/pdns-bind-reload
auth: try to reload rejected zones in bind-backend
Otto Moerbeek [Tue, 28 Sep 2021 15:23:15 +0000 (17:23 +0200)]
Merge pull request #10773 from omoerbeek/dnsdist-regress-log
dnsdist: Print summary after a failed dnsdist regress run and disable secpoll
Peter van Dijk [Tue, 28 Sep 2021 15:13:33 +0000 (17:13 +0200)]
Merge pull request #10231 from pieterlexis/DNAME-YXDOMAIN
auth: send YXDOMAIN for too long DNAME synth
Remi Gacogne [Tue, 28 Sep 2021 14:18:50 +0000 (16:18 +0200)]
Merge pull request #10770 from rgacogne/auth-udp-handle-uncaught-exceptions
auth: Gracefully handle uncaught exceptions in the UDP path
Otto [Tue, 28 Sep 2021 13:33:31 +0000 (15:33 +0200)]
Print summary after a failed dnsdist regress run and disable secpoll
Remi Gacogne [Tue, 28 Sep 2021 13:43:41 +0000 (15:43 +0200)]
Merge pull request #10768 from rgacogne/rec-rpz-stats-name
rec: Use the correct RPZ policy name when loading via XFR
Remi Gacogne [Fri, 16 Jul 2021 12:16:15 +0000 (14:16 +0200)]
auth: Gracefully handle uncaught exceptions in the UDP path
These exceptions should never bubble up to this point, but if it
does it makes no sense to terminate the whole process because of it.
This commit logs a message at error level and moves on to the next
query, like we do in the TCP path.
Otto [Tue, 28 Sep 2021 10:25:18 +0000 (12:25 +0200)]
missed 10157
Otto Moerbeek [Tue, 28 Sep 2021 10:18:43 +0000 (12:18 +0200)]
Merge pull request #10760 from omoerbeek/libssl-file-mode
Don't create file with wide permissions
Remi Gacogne [Tue, 28 Sep 2021 10:15:04 +0000 (12:15 +0200)]
Merge pull request #10767 from chbruyand/dnsdist-settag
dnsdist: Update existing tags when calling setTagAction and setTagResponseAction
Remi Gacogne [Tue, 28 Sep 2021 09:12:23 +0000 (11:12 +0200)]
rec: Use the correct RPZ policy name when loading via XFR
This commit fixes two issues:
- if the existing zone name is not empty we should use it, instead of
the zone domain
- if the zone domain has to be used, it should not include a final dot
Otto Moerbeek [Tue, 28 Sep 2021 08:25:09 +0000 (10:25 +0200)]
Merge pull request #10765 from omoerbeek/rec-lwres-without-dnstap
rec: Fix compile for !HAVE_FSTRM
Otto Moerbeek [Tue, 28 Sep 2021 08:24:06 +0000 (10:24 +0200)]
add O_APPEND
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Tue, 28 Sep 2021 08:22:58 +0000 (10:22 +0200)]
Merge pull request #10766 from omoerbeek/dnsdist-clarify-addMasks
dnsdist: Improve NetmaskGroup:addMasks docs
Otto [Tue, 28 Sep 2021 08:21:07 +0000 (10:21 +0200)]
Less strong words on deprecated setting names.
Otto Moerbeek [Tue, 28 Sep 2021 06:32:49 +0000 (08:32 +0200)]
Merge pull request #10757 from rgacogne/rec-rpz-file-stats
rec: Update the stats (serial, number of records, timestamp) for RPZ files
Charles-Henri Bruyand [Mon, 27 Sep 2021 16:32:43 +0000 (18:32 +0200)]
dnsdist: make sure setting tags will overwrite any existing value
Otto [Mon, 27 Sep 2021 15:08:55 +0000 (17:08 +0200)]
Improve NetmaskGroup:addMasks docs
Otto Moerbeek [Mon, 27 Sep 2021 14:51:59 +0000 (16:51 +0200)]
Merge pull request #10763 from omoerbeek/clang12-for-gh-actions
Move to clang12 for github actions, at least tsan seems to work better
Otto [Mon, 27 Sep 2021 12:58:22 +0000 (14:58 +0200)]
Fix compile for !HAVE_FSTRM, spotted by mind04
Otto [Fri, 24 Sep 2021 08:49:34 +0000 (10:49 +0200)]
Upgrade guide and changelog for rec-4.6.0
Otto [Mon, 27 Sep 2021 11:14:10 +0000 (13:14 +0200)]
Move to clang12 for github actions, at least tsan seems to work better
Otto Moerbeek [Fri, 24 Sep 2021 14:40:25 +0000 (16:40 +0200)]
Merge pull request #10755 from rgacogne/speedtest-user-and-system-time
speedtest: Count the system time as well as the user time
Otto Moerbeek [Fri, 24 Sep 2021 13:59:32 +0000 (15:59 +0200)]
Merge pull request #10761 from omoerbeek/rec-fix-suseconds
rec: work around clang on MacOS being pedantic
Otto [Fri, 24 Sep 2021 12:40:57 +0000 (14:40 +0200)]
Better error messages
Otto [Fri, 24 Sep 2021 12:24:20 +0000 (14:24 +0200)]
On MacOS:
pdns_recursor.cc:5069:67: error: non-constant-expression cannot be narrowed from type 'long long' to '__darwin_suseconds_t' (aka 'int') in initializer list [-Wc++11-narrowing]
TCPOutConnectionManager::s_maxIdleTime = timeval{millis / 1000, (millis % 1000) * 1000 };
Otto [Fri, 24 Sep 2021 12:11:19 +0000 (14:11 +0200)]
Don't create file with wide permissions as noted by CodeQL
Otto Moerbeek [Fri, 24 Sep 2021 10:13:48 +0000 (12:13 +0200)]
Merge pull request #10669 from omoerbeek/rec-tcp-connection-pooling2
Rec: tcp/dot connection pooling
Otto [Fri, 24 Sep 2021 08:56:20 +0000 (10:56 +0200)]
Fixes in docs and metrics help texts
Otto [Fri, 24 Sep 2021 07:10:11 +0000 (09:10 +0200)]
Review comments: Count queries before desciding to cleanup; a missing std::move
Otto [Wed, 15 Sep 2021 14:32:04 +0000 (16:32 +0200)]
Process review comments, most importantly a simplification of the retry logic
Otto [Mon, 13 Sep 2021 11:39:45 +0000 (13:39 +0200)]
Refactor the tcp case of lwres.
Not as far as rgacogne suggested, but it's more readable right now.
Otto [Mon, 13 Sep 2021 11:38:52 +0000 (13:38 +0200)]
Add comment: we do not do SNI (and the idle connections pooling does not work for that case atm)
Otto [Mon, 13 Sep 2021 08:51:29 +0000 (10:51 +0200)]
Refactor out the tcp connect code
Otto [Mon, 13 Sep 2021 08:16:55 +0000 (10:16 +0200)]
Process comments from review:
- Pass current time as arg where appropiate;
- Use rvalue ref for Connection in store().
Otto [Wed, 25 Aug 2021 13:56:44 +0000 (15:56 +0200)]
openssl/ssl2.h #defines CERT, #undef it. While there move an include not needed in the .hh
file to the .cc file and add an error message in dnsparser.hh
Otto [Wed, 25 Aug 2021 11:10:54 +0000 (13:10 +0200)]
Typo in filename
Otto [Wed, 25 Aug 2021 10:52:56 +0000 (12:52 +0200)]
Doc header fixes
Otto [Wed, 25 Aug 2021 10:24:22 +0000 (12:24 +0200)]
Formatting
Otto [Wed, 25 Aug 2021 10:13:40 +0000 (12:13 +0200)]
Spello's, better names for settings
Otto [Tue, 24 Aug 2021 09:25:07 +0000 (11:25 +0200)]
Only clean on store if over a limit
Otto [Tue, 24 Aug 2021 09:19:32 +0000 (11:19 +0200)]
Cleanup and docs
Otto [Mon, 26 Jul 2021 11:13:13 +0000 (13:13 +0200)]
TCP/DoT connection pooling
Otto Moerbeek [Fri, 24 Sep 2021 07:57:38 +0000 (09:57 +0200)]
Merge pull request #10753 from omoerbeek/speedtest-random
Add our various random implementations to speedtest
Otto [Fri, 24 Sep 2021 06:29:04 +0000 (08:29 +0200)]
Review nits; also change order of rnd tests to match our "auto" order.
Remi Gacogne [Thu, 23 Sep 2021 13:15:15 +0000 (15:15 +0200)]
rec: Update the stats (serial, number of records, timestamp) for RPZ files
We used to only update these for RPZ loaded via XFR, which does not really
makes sense.
Remi Gacogne [Thu, 23 Sep 2021 09:35:39 +0000 (11:35 +0200)]
Merge pull request #10756 from rgacogne/ddist17-fix-secpoll
dnsdist: Fix secpoll for 1.7.0-alpha1
Remi Gacogne [Thu, 23 Sep 2021 09:28:57 +0000 (11:28 +0200)]
dnsdist: Fix secpoll for 1.7.0-alpha1
It should be '1', not '3' as there is currently nothing to update to.
Currently dnsdist complains with:
```
PowerDNS DNSDist Security Update Mandatory: Unsupported pre-release
```
Remi Gacogne [Thu, 23 Sep 2021 08:49:15 +0000 (10:49 +0200)]
Merge pull request #10730 from rgacogne/ddist17a1-changelog
dnsdist: Prepare ChangeLog and secpoll update for 1.7.0-alpha1
Remi Gacogne [Thu, 23 Sep 2021 08:42:17 +0000 (10:42 +0200)]
speedtest: Count the system time as well as the user time
Our tests are designed to run for 100 ms of CPU time, but this is currently
measured with `ITIMER_VIRTUAL` which means only when the process is executing
in userspace. Switching to `ITIMER_PROF` would also account for the time spent
when the system is running on behalf of the process, which seems closer to what
we want.
Pieter Lexis [Tue, 6 Jul 2021 10:57:32 +0000 (12:57 +0200)]
auth: send YXDOMAIN on too long DNAME synth
Kees Monshouwer [Tue, 21 Sep 2021 18:25:35 +0000 (20:25 +0200)]
auth: try to reload rejected zones in bind-backend once every bind-check-interval
Peter van Dijk [Thu, 23 Sep 2021 07:40:06 +0000 (09:40 +0200)]
Merge pull request #10744 from franklouwers/feature/update-docs
Add dyndns status to general backend table
Peter van Dijk [Thu, 23 Sep 2021 07:12:44 +0000 (09:12 +0200)]
Merge pull request #10749 from mind04/pdns-nobackend
auth: add cookie counters
Peter van Dijk [Thu, 23 Sep 2021 06:44:05 +0000 (08:44 +0200)]
fix title underline length
Remi Gacogne [Wed, 22 Sep 2021 13:23:28 +0000 (15:23 +0200)]
dnsdist: 1.7.0-alpha1 will be released on the 23rd
Peter van Dijk [Wed, 22 Sep 2021 13:21:22 +0000 (15:21 +0200)]
Merge pull request #10711 from Habbie/gh-actions-auth-backends
gh actions: test auth backends
Otto [Wed, 22 Sep 2021 13:10:05 +0000 (15:10 +0200)]
Add our various random implementations to speedtest
Kees Monshouwer [Tue, 21 Sep 2021 20:44:23 +0000 (22:44 +0200)]
auth: add cookie counters
Peter van Dijk [Fri, 10 Sep 2021 10:14:11 +0000 (12:14 +0200)]
gh actions: move testing of almost all auth backends from CircleCI
Remi Gacogne [Wed, 22 Sep 2021 07:55:15 +0000 (09:55 +0200)]
Merge pull request #10745 from rgacogne/ddist-duplicate-id-on-tcp-conn
dnsdist: Don't increase the outstanding counter on a duplicated ID over TCP
Otto Moerbeek [Tue, 21 Sep 2021 14:22:44 +0000 (16:22 +0200)]
Merge pull request #10740 from omoerbeek/some-codeql-fixes
Fix "Large object passed by value" issues as spotted by CodeQL
Peter van Dijk [Tue, 21 Sep 2021 12:35:53 +0000 (14:35 +0200)]
Merge pull request #10727 from pieterlexis/svcb-generic-parse
SVCB: Accept known SVCParams in generic format
Peter van Dijk [Tue, 21 Sep 2021 12:31:19 +0000 (14:31 +0200)]
Merge pull request #10289 from pieterlexis/auth-cookies-3
Implement EDNS cookies in the auth
Frank Louwers [Tue, 21 Sep 2021 12:11:32 +0000 (14:11 +0200)]
Add dyndns status to general backend table
Peter van Dijk [Tue, 21 Sep 2021 11:07:05 +0000 (13:07 +0200)]
Merge pull request #10742 from Habbie/rec-build-without-sodium
rec: unbreak building without libsodium
Remi Gacogne [Tue, 21 Sep 2021 10:30:52 +0000 (12:30 +0200)]
dnsdist: Don't increase the outstanding counter on a duplicated ID over TCP
If the client has sent more than one concurrent query using the same query ID,
we only send one response for all of these queries, and we should not mess up
our outstanding queries counter.
Otto Moerbeek [Tue, 21 Sep 2021 10:20:55 +0000 (12:20 +0200)]
typo
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto [Tue, 21 Sep 2021 08:46:14 +0000 (10:46 +0200)]
Tweaks
Otto [Tue, 21 Sep 2021 06:59:11 +0000 (08:59 +0200)]
Mostly "Large object passed by value" fixes a spoted by CodeQL.
Plus a sign issue in a test as detected by OpenBSD/clang.
I simplified the hostog.hh template since it is used in only one place (dnsscope)
and the argument is not used there.
Remi Gacogne [Tue, 21 Sep 2021 09:43:09 +0000 (11:43 +0200)]
Merge pull request #10733 from pieterlexis/ddist-svcb-table
dnsdist: accept a table to SVCParams for newSVCRecordParameters
Peter van Dijk [Tue, 21 Sep 2021 09:16:45 +0000 (11:16 +0200)]
rec: unbreak building without libsodium
Otto Moerbeek [Tue, 21 Sep 2021 06:48:38 +0000 (08:48 +0200)]
Merge pull request #10738 from omoerbeek/rec-fix-prom-threads
Rec: fix Prometheus thread cpu usage
Otto [Mon, 20 Sep 2021 09:03:10 +0000 (11:03 +0200)]
Prometheus is a dependency for rec regress tests now
Otto Moerbeek [Mon, 20 Sep 2021 08:10:06 +0000 (08:10 +0000)]
Fix #10735: Prometheus formatting of tag values
Otto [Mon, 20 Sep 2021 07:32:30 +0000 (09:32 +0200)]
Add a regress test for Prometheus output
Remi Gacogne [Mon, 20 Sep 2021 14:42:19 +0000 (16:42 +0200)]
Merge pull request #10737 from rgacogne/coverity-
20210920
Fix issues reported by Coverity
Remi Gacogne [Mon, 20 Sep 2021 08:03:44 +0000 (10:03 +0200)]
auth: Add missing <optional> header
Remi Gacogne [Mon, 20 Sep 2021 08:03:02 +0000 (10:03 +0200)]
Credentials: Add move assignement operator
Remi Gacogne [Mon, 20 Sep 2021 07:46:49 +0000 (09:46 +0200)]
Credentials: Fix a possible overflow with a very large work factor
Reported by Coverity as CID
1462395 .
Remi Gacogne [Mon, 20 Sep 2021 07:40:00 +0000 (09:40 +0200)]
FDWrapper: Propery handle a negative descriptor in the move assignement operator
Reported by Coverity in CID
1462392 .
Peter van Dijk [Mon, 20 Sep 2021 09:37:44 +0000 (11:37 +0200)]
Merge pull request #10720 from Habbie/gh-actions-daily
gh actions: build packages & docker images only once a day
Pieter Lexis [Mon, 20 Sep 2021 09:31:53 +0000 (11:31 +0200)]
COOKIES: Use getInnerRemote to determine IP
Pieter Lexis [Fri, 17 Sep 2021 14:35:56 +0000 (16:35 +0200)]
dnsdist: accept a table to SVCParams for newSVCRecordParameters
Pieter Lexis [Mon, 20 Sep 2021 09:19:38 +0000 (11:19 +0200)]
COOKIE: Only send BADCOOKIE over UDP
Pieter Lexis [Mon, 20 Sep 2021 09:12:34 +0000 (11:12 +0200)]
Remove separate string_compare source
Pieter Lexis [Mon, 20 Sep 2021 09:02:56 +0000 (11:02 +0200)]
dnspacket: add missing include