]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto Moerbeek [Thu, 8 Dec 2022 12:14:03 +0000 (13:14 +0100)]
rec: Document preoutquery limitations
Fixes #10247
Otto Moerbeek [Thu, 8 Dec 2022 08:55:34 +0000 (09:55 +0100)]
Merge pull request #11554 from yog-singh/yog-singh/ddist-ebpf-memlock-limit
dnsdist: Raise RLIMIT_MEMLOCK automatically when eBPF is requested
Remi Gacogne [Thu, 8 Dec 2022 08:33:10 +0000 (09:33 +0100)]
Merge pull request #12281 from rgacogne/ddist-optim-cross
dnsdist: Get rid of TCPCrossProtocolQuerySender
Peter van Dijk [Wed, 7 Dec 2022 18:34:31 +0000 (19:34 +0100)]
Merge pull request #12298 from Habbie/tinydns-data-fix2
actually fix tinydns data
Remi Gacogne [Wed, 7 Dec 2022 15:37:55 +0000 (16:37 +0100)]
Merge pull request #12274 from rgacogne/ddist-debug-snmp
dnsdist: Add logs to investigate the SNMP regression tests failure
Peter van Dijk [Wed, 7 Dec 2022 15:00:02 +0000 (16:00 +0100)]
actually fix tinydns data
Otto Moerbeek [Wed, 7 Dec 2022 14:31:52 +0000 (15:31 +0100)]
Merge pull request #12290 from omoerbeek/mincurl-coverity
Coverity
1501408 : Uninitialized scalar field
Otto Moerbeek [Wed, 7 Dec 2022 13:33:56 +0000 (14:33 +0100)]
Merge pull request #12289 from omoerbeek/rec-unsupported-qtype
rec: refactor unsuppored qtype code and make sure we ServFail on all unsupported qtypes
Peter van Dijk [Wed, 7 Dec 2022 13:15:44 +0000 (14:15 +0100)]
Merge pull request #12285 from mind04/auth-api-consumer
auth: api, do not create SOA and NS records for consumer zones
Otto Moerbeek [Wed, 7 Dec 2022 13:09:56 +0000 (14:09 +0100)]
Only raise the limit to 1M if the current is lower than 1M
Otto Moerbeek [Wed, 7 Dec 2022 12:37:13 +0000 (13:37 +0100)]
Elaborate on NSEC/NSEC3 diffference in comment
Otto Moerbeek [Wed, 7 Dec 2022 12:30:19 +0000 (13:30 +0100)]
Apply suggestions from code review
Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
Remi Gacogne [Wed, 7 Dec 2022 12:15:54 +0000 (13:15 +0100)]
Merge pull request #12288 from rgacogne/fix-spelling
Fix a typo and allow 'byteslimit'
Remi Gacogne [Wed, 7 Dec 2022 12:14:32 +0000 (13:14 +0100)]
Merge pull request #11065 from pieterlexis/sd-protectproc
service files: Add more sandboxing options
Peter van Dijk [Wed, 7 Dec 2022 11:05:17 +0000 (12:05 +0100)]
Merge pull request #12185 from PenelopeFudd/master
Enhancing dnsupdate documentation
Otto Moerbeek [Wed, 7 Dec 2022 10:54:01 +0000 (11:54 +0100)]
Coverity
1501408 : Uninitialized scalar field
Peter van Dijk [Wed, 7 Dec 2022 10:21:56 +0000 (11:21 +0100)]
Merge pull request #12216 from kpfleming/catalog-zone-doc-clarifications
Small clarifications to docs for API usage with catalog zones.
Otto Moerbeek [Wed, 7 Dec 2022 09:09:25 +0000 (10:09 +0100)]
Incorporate comments from @rgacogne
Otto Moerbeek [Wed, 7 Dec 2022 09:54:49 +0000 (10:54 +0100)]
rec: refactor unsuppored qtype code and make sure we ServFail on all unsupported qtypes
This fixes #12251
Also I'd like to know why we ServFail on NSEC3 but not on NSEC: we should either fix that or add a comment explaining this.
Remi Gacogne [Wed, 7 Dec 2022 09:05:20 +0000 (10:05 +0100)]
rec: Fix a typo in the doc
Remi Gacogne [Wed, 7 Dec 2022 09:04:50 +0000 (10:04 +0100)]
spell-check: Allow 'byteslimit' (name of a parameter to a Lua function)
Peter van Dijk [Wed, 7 Dec 2022 09:03:23 +0000 (10:03 +0100)]
Merge pull request #12287 from Habbie/fix-tinydns-data
auth: fix tinydns data, missed this spot in #12279
Remi Gacogne [Tue, 29 Nov 2022 15:10:57 +0000 (16:10 +0100)]
systemd service: Only enable MemoryDenyWriteExecute for ixfrdist
Because it does not play well with LuaJIT, which all other products
use.
Pieter Lexis [Fri, 3 Dec 2021 12:08:09 +0000 (13:08 +0100)]
systemd service: disallow access to devices (except, zero, full, null, random, urandom)
Pieter Lexis [Fri, 3 Dec 2021 12:04:57 +0000 (13:04 +0100)]
systemd service: lock down IPC
Pieter Lexis [Fri, 3 Dec 2021 10:01:00 +0000 (11:01 +0100)]
service files: Add MemoryDenyWriteExecute
This disallows the services to write executable memory.
Pieter Lexis [Fri, 3 Dec 2021 09:37:46 +0000 (10:37 +0100)]
service files: Add ProtectProc
Another sandboxing option,
[ProtectProc](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectProc=)
hides all /proc/<pid> that are not owned by the service user and hides
some kernel things from /proc as well.
Remi Gacogne [Wed, 7 Dec 2022 08:56:37 +0000 (09:56 +0100)]
dnsdist: Rename the field containing the TCP worker thread ID
Remi Gacogne [Wed, 7 Dec 2022 08:42:25 +0000 (09:42 +0100)]
Merge pull request #12248 from kpfleming/issue-11153
systemd: Add "After" dependency on time-sync.target
Remi Gacogne [Wed, 7 Dec 2022 08:33:31 +0000 (09:33 +0100)]
Merge pull request #12237 from rgacogne/ddist-unscrew-resumption-ossl3
dnsdist: Ignore unclean TLS session shutdown
Remi Gacogne [Wed, 7 Dec 2022 08:33:23 +0000 (09:33 +0100)]
Merge pull request #12283 from rgacogne/ddist-fix-long-double-warning
dnsdist: Fix a warning about long to double conversion
Yogesh Singh [Sun, 17 Apr 2022 11:47:00 +0000 (17:17 +0530)]
Short Description:
Raise RLIMIT_MEMLOCK automatically when eBPF is requested.
This PR adds changes to eBPF filter constructor which when invoked automatically raises the RLIMIT_MEMLOCK from 64k to 1024k.
The hard limit for the user needs to be set in `/etc/security/limits.conf`.
Peter van Dijk [Tue, 6 Dec 2022 18:02:31 +0000 (19:02 +0100)]
auth: fix tinydns data, missed this spot in #12279
Kees Monshouwer [Tue, 6 Dec 2022 17:34:09 +0000 (18:34 +0100)]
auth: api, add create/delete consumer zone test
Kees Monshouwer [Tue, 6 Dec 2022 17:29:16 +0000 (18:29 +0100)]
auth: api, do not create SOA and NS records for consumer zones
Remi Gacogne [Tue, 6 Dec 2022 16:43:12 +0000 (17:43 +0100)]
dnsdist: Fix a warning about long to double conversion
```
dnsdist-backend.cc:601:61: warning: implicit conversion from 'long' to 'double' changes value from
9223372036854775807 to
9223372036854775808 [-Wimplicit-const-int-float-conversion]
if (backOffCoeffTmp != HUGE_VAL && backOffCoeffTmp <= std::numeric_limits<time_t>::max()) {
~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Remi Gacogne [Fri, 2 Dec 2022 14:57:17 +0000 (15:57 +0100)]
dnsdist: Get rid of TCPCrossProtocolQuerySender
We need this construct to deal with cross-protocol queries, like
queries received over TCP or DoT, but forwarded over DoH, because
the thread dealing with the client and the one dealing with the
backend will not be the same in that case, and we do not want to
have different threads touching the same TCP connections.
So we pass the query and response to the correct thread via pipes.
Until now we were allocating an additional object, TCPCrossProtocolQuerySender,
to deal with that case, but I noticed that the existing IncomingTCPConnectionState
object already does everything we need, except that it needs to
know that the response is a cross-protocol one in order to pass it
via the pipe instead of treating it in a different way. This can be
done by looking if the current thread ID differs from the one that
created this object: if it does, we are dealing with a cross-protocol
response and should pass it via the pipe, and if it does not we
can deal with it directly.
This change saves the need to allocate a new object wrapped in a
shared pointer for each cross-protocol query, which is quite nice.
Remi Gacogne [Tue, 6 Dec 2022 15:51:00 +0000 (16:51 +0100)]
Merge pull request #12276 from rgacogne/ddist-less-wakeups
dnsdist: Reduce useless wake-ups from the event loop
Remi Gacogne [Tue, 6 Dec 2022 15:50:41 +0000 (16:50 +0100)]
Merge pull request #12278 from rgacogne/ddist-prevent-allocs
dnsdist: Small improvements
Peter van Dijk [Tue, 6 Dec 2022 15:16:20 +0000 (16:16 +0100)]
Merge pull request #12279 from Habbie/auth-test-ordername
auth: add ordername testing
Peter van Dijk [Tue, 6 Dec 2022 14:40:51 +0000 (15:40 +0100)]
add ordername testing
Remi Gacogne [Tue, 6 Dec 2022 14:25:15 +0000 (15:25 +0100)]
Merge pull request #12275 from rgacogne/ddist-andor-modern
dnsdist: Refactor AndRule and OrRule to modern C++ loops
Otto Moerbeek [Tue, 6 Dec 2022 12:11:31 +0000 (13:11 +0100)]
Merge pull request #12218 from nneul/patch-1
rec: Document negation of netmasks in settings.rst
Peter van Dijk [Tue, 6 Dec 2022 12:09:49 +0000 (13:09 +0100)]
Merge pull request #12277 from chbruyand/auth-ifurlup-byteslimit
auth: add byteslimit support to lua ifurlup() function
Remi Gacogne [Thu, 10 Nov 2022 11:11:45 +0000 (12:11 +0100)]
dnsdist: Only allocate a ConnectionInfo object when actually needed
Otto Moerbeek [Tue, 6 Dec 2022 11:23:08 +0000 (12:23 +0100)]
Introduce a seperate parapraph explaining negation in netmask lists.
Also tell which settings allow negation.
Charles-Henri Bruyand [Tue, 6 Dec 2022 11:20:26 +0000 (12:20 +0100)]
auth: add byteslimit support to lua ifurlup() function
Remi Gacogne [Fri, 18 Nov 2022 15:57:09 +0000 (16:57 +0100)]
dnsdist: Prevent a copy when inserting a tag
Peter van Dijk [Tue, 6 Dec 2022 11:14:25 +0000 (12:14 +0100)]
Merge pull request #12254 from rgacogne/restrict-github-token
Restrict permissions for GITHUB_TOKEN in our workflows
Remi Gacogne [Fri, 18 Nov 2022 15:56:47 +0000 (16:56 +0100)]
dnsdist: Keep the local copy of the downstream servers around
Remi Gacogne [Fri, 18 Nov 2022 15:56:16 +0000 (16:56 +0100)]
dnsdist: Reduce useless wake-ups from the event loop
The TCP acceptor, UDP client and Lua network threads never needs to break out of the event loop.
The outgoing DoH one only needs to do that once per second to check for timeouts.
Remi Gacogne [Mon, 5 Dec 2022 15:22:03 +0000 (16:22 +0100)]
dnsdist: Refactor AndRule and OrRule to modern C++ loops
Remi Gacogne [Tue, 6 Dec 2022 10:35:30 +0000 (11:35 +0100)]
dnsdist: Add logs to investigate the SNMP regression tests failure
Peter van Dijk [Tue, 6 Dec 2022 10:34:24 +0000 (11:34 +0100)]
Merge pull request #12087 from zeha/apizonecreaterectify
API: Auth: fix newly created zone not rectified
Peter van Dijk [Tue, 6 Dec 2022 10:22:06 +0000 (11:22 +0100)]
Merge pull request #12269 from frei-style/master
auth: fix invalid catalog zone sql query for gpgsqlbackend
Manuel Frei [Tue, 6 Dec 2022 00:34:37 +0000 (01:34 +0100)]
auth: fix invalid catalog zone sql query for gpgsqlbackend
Peter van Dijk [Mon, 5 Dec 2022 14:02:16 +0000 (15:02 +0100)]
Merge pull request #12265 from Habbie/alsonotifies
auth: move alsoNotifies up into DNSBackend
Peter van Dijk [Mon, 5 Dec 2022 13:01:15 +0000 (14:01 +0100)]
auth: move alsoNotifies up into DNSBackend, fixes #12256
Peter van Dijk [Mon, 5 Dec 2022 09:21:32 +0000 (10:21 +0100)]
Merge pull request #12257 from Habbie/auth-api-backend-refused
auth API: slightly clearer message when a backend cannot create domains
Peter van Dijk [Thu, 1 Dec 2022 18:51:40 +0000 (19:51 +0100)]
auth API: slightly clearer message when a backend cannot create domains
Remi Gacogne [Thu, 1 Dec 2022 14:17:57 +0000 (15:17 +0100)]
Merge pull request #12255 from rgacogne/ddist-doc-counters-typo
dnsdist: Fix a typo in the counters documentation
Remi Gacogne [Thu, 1 Dec 2022 13:42:34 +0000 (14:42 +0100)]
dnsdist: Fix a typo in the counters documentation
Remi Gacogne [Thu, 1 Dec 2022 13:34:19 +0000 (14:34 +0100)]
Restrict permissions for GITHUB_TOKEN in our workflows
Added using https://github.com/step-security/secure-workflows
For more information see:
- https://github.com/ossf/scorecard/blob/
d8fefc9b246db3600c777e9d60d441d7c386ce1d /docs/checks.md#token-permissions
- https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
Remi Gacogne [Thu, 1 Dec 2022 13:05:26 +0000 (14:05 +0100)]
Merge pull request #11020 from MiniPierre/xdp-logging
dnsdist: Added XDP middleware for dropped/redirected queries logging
Peter van Dijk [Thu, 1 Dec 2022 09:20:02 +0000 (10:20 +0100)]
Merge pull request #12252 from omoerbeek/auth-docs-recordtypes
auth: Update supported recordtypes: remove A6 MAILA MAILB SIG and WKS, add ZONEMD
Pierre Grié [Wed, 24 Nov 2021 13:15:50 +0000 (14:15 +0100)]
dnsdist: fixed XDP filter indentation
Pierre Grié [Mon, 22 Nov 2021 16:56:12 +0000 (17:56 +0100)]
dnsdist: Added XDP middleware for dropped/redirected queries logging
Otto Moerbeek [Wed, 30 Nov 2022 15:02:55 +0000 (16:02 +0100)]
Merge pull request #11863 from darnuria/dnsname/usememchr_check_length
DNSName constructor use memchr instead of strchr and cleanup with string_view
Otto Moerbeek [Wed, 30 Nov 2022 14:12:28 +0000 (15:12 +0100)]
Drop ref from string_view arg
Otto Moerbeek [Wed, 30 Nov 2022 13:26:18 +0000 (14:26 +0100)]
Use '\0' for (char) 0 and ref for string_view argument
Axel Viala [Mon, 22 Aug 2022 11:46:54 +0000 (13:46 +0200)]
fixup: Optionnal removal of plen.
Axel Viala [Mon, 22 Aug 2022 10:17:16 +0000 (12:17 +0200)]
WIP: Clean-up DNSName constructor unify with string_view.
Axel Viala [Mon, 22 Aug 2022 10:24:43 +0000 (12:24 +0200)]
fixup: Apply @omoerbeek suggestion
Axel Viala [Thu, 18 Aug 2022 10:31:04 +0000 (12:31 +0200)]
DNSName constructor use memchr instead of strchr.
Also check length before dereferencing.
Rational for this change:
- Why using strchr if we have a length?
- Accepting char * p that doesn't contains `\0`.
Otto Moerbeek [Wed, 30 Nov 2022 10:32:16 +0000 (11:32 +0100)]
Merge pull request #11594 from ClaudioRifo/patch-1
Update statistics.rst
Otto Moerbeek [Wed, 30 Nov 2022 10:08:11 +0000 (11:08 +0100)]
Update supported recordtypes: remove A6 MAILA MAILB SIG and WKS, add ZONEMD
Fixes #11468
Otto Moerbeek [Wed, 30 Nov 2022 09:52:34 +0000 (10:52 +0100)]
better word
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Wed, 30 Nov 2022 08:57:08 +0000 (09:57 +0100)]
Refer to Linux docs and RFC instead of documenting these ourselves.
ClaudioRifo [Fri, 29 Apr 2022 22:18:17 +0000 (18:18 -0400)]
Update statistics.rst
Notes that help understand some UDP counters.
Note that help understand that counters from /proc/net/ are global and O.S. related.
Otto Moerbeek [Wed, 30 Nov 2022 08:37:51 +0000 (09:37 +0100)]
Merge pull request #11951 from Habbie/Werror
make builds pass with -Werror on _my_ system
Kevin P. Fleming [Tue, 29 Nov 2022 11:14:10 +0000 (06:14 -0500)]
systemd: Add "After" dependency on time-sync.target
Adds 'After=time-sync.target' to the service unit files; this will not
have any immediate effect, unless the system administrator has also
enabled a unit which has a 'Before' dependency on that target;
there are none of those units enabled in a default configuration in
common distributions. systemd itself adds such an 'After' dependency
to all timer units with OnCalendar settings, and to some other units.
However, in a system which makes use of systemd-timesyncd, the admin
can enable systemd-time-wait-sync.service, which has such a
dependency. The result would be that none of the PowerDNS services on
the system would be started until after systemd-timesyncd is certain
that the system's clock is synchronized with the configured external
source.
A similar configuration can be achieved on systems which use ntpd,
chronyd, or other time synchronization tools.
Closes #11153.
Otto Moerbeek [Mon, 28 Nov 2022 18:50:48 +0000 (19:50 +0100)]
Merge pull request #11346 from omoerbeek/pdnsutil-no-colors
auth: Basic abstraction for handling colored terminal output, respecting isatty(), --no-colors and NO_COLOR
Otto Moerbeek [Sat, 19 Feb 2022 18:28:13 +0000 (19:28 +0100)]
Basic abstraction for handling colored terminal output, respecting isatty(), --no-colors and NO_COLOR
Remi Gacogne [Mon, 28 Nov 2022 15:15:47 +0000 (16:15 +0100)]
Merge pull request #9709 from rgacogne/fuzz-yahttp
Add a simple fuzzing target for YaHTTP
Remi Gacogne [Mon, 28 Nov 2022 15:13:59 +0000 (16:13 +0100)]
Merge pull request #12244 from rgacogne/typos
Fix a typo in the recursor's ChangeLog, allow 'builddeb'
Remi Gacogne [Mon, 28 Nov 2022 14:28:40 +0000 (15:28 +0100)]
spellcheck: Allow 'builddeb'
Remi Gacogne [Mon, 28 Nov 2022 14:28:11 +0000 (15:28 +0100)]
rec: Fix a typo (Timout->Timeout) in the recursor's ChangeLog
Remi Gacogne [Thu, 12 Nov 2020 08:01:23 +0000 (09:01 +0100)]
Add a fuzzing target for YaHTTP
Peter van Dijk [Mon, 28 Nov 2022 12:58:18 +0000 (13:58 +0100)]
Merge pull request #11329 from Kian0815/doc-remove-kees-monshouer
Update installation.rst
Otto Moerbeek [Mon, 28 Nov 2022 12:28:22 +0000 (13:28 +0100)]
Merge pull request #12243 from omoerbeek/rpz-axfr-docs
rec: Mention timeout also aplies to IXFRs
Peter van Dijk [Mon, 28 Nov 2022 12:25:58 +0000 (13:25 +0100)]
fix typo
Otto Moerbeek [Mon, 28 Nov 2022 12:15:42 +0000 (13:15 +0100)]
Merge pull request #11417 from nils-wisiol/benchmark-2048bit
Use RSA-2048 instead of RSA-1024 for crypto benchmark
Otto Moerbeek [Mon, 28 Nov 2022 11:50:42 +0000 (12:50 +0100)]
Mention timeout also aplies to IXFRs
Otto Moerbeek [Mon, 28 Nov 2022 11:07:30 +0000 (12:07 +0100)]
Merge pull request #12210 from rgacogne/auth-remotebackend-tests-failures
auth: Better error handling in the remote backend tests
Otto Moerbeek [Mon, 28 Nov 2022 10:58:57 +0000 (11:58 +0100)]
Merge pull request #11966 from darnuria/clang-tidy/empty
[clang-tidy] pdns_utils use empty where possible + move decl to assignation site.
Otto Moerbeek [Mon, 28 Nov 2022 10:52:34 +0000 (11:52 +0100)]
Merge pull request #11910 from darnuria/clang-tidy/get-line
[clang-tidy]: DynListener::getLine.
Otto Moerbeek [Mon, 28 Nov 2022 10:50:11 +0000 (11:50 +0100)]
Merge pull request #11968 from darnuria/clang-tidy/nullptr/pdns-utils
[clang-tidy] Use nullptr explicitly and initialize directly.
Otto Moerbeek [Mon, 28 Nov 2022 10:49:21 +0000 (11:49 +0100)]
Merge pull request #12059 from darnuria/clang-tidy/geoipbackend
Clang tidy/geoipbackend
Otto Moerbeek [Mon, 28 Nov 2022 10:43:01 +0000 (11:43 +0100)]
Merge pull request #12060 from darnuria/clang-tidy/bindbackend
Clang tidy/bindbackend
Remi Gacogne [Mon, 28 Nov 2022 09:24:38 +0000 (10:24 +0100)]
Merge pull request #11505 from jroessler-ox/docs-auth-api-examples
updates to API documentation of Auth