]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vladimír Čunát [Thu, 25 Jun 2020 12:52:03 +0000 (14:52 +0200)]
Merge !1013: lib/cache: fix locking around cache preallocation
Fixes #582.
Petr Špaček [Thu, 25 Jun 2020 12:40:26 +0000 (14:40 +0200)]
cache: NEWS for prealloc lock fix
Lukáš Ježek [Thu, 25 Jun 2020 08:30:23 +0000 (10:30 +0200)]
lib/cache: fix locking around cache preallocation
Vladimír Čunát [Fri, 19 Jun 2020 12:12:52 +0000 (14:12 +0200)]
Merge !1010: meson: treat -Wattributes as error
Tomas Krizek [Wed, 17 Jun 2020 08:53:18 +0000 (10:53 +0200)]
meson: treat -Wattributes as error
Trie relies on __attribute__(cleanup) and if its missing, it could
lead to memory leaks such as:
https://sonarcloud.io/project/issues?id=dns-oarc%3Adnsjit&issues=AXDyskhlrWLe1VCMvmVe&open=AXDyskhlrWLe1VCMvmVe
Tomas Krizek [Wed, 27 May 2020 08:54:29 +0000 (10:54 +0200)]
Merge branch 'packaging-pytest' into 'master'
CI: optimize packaging tests
Closes #541
See merge request knot/knot-resolver!947
Lukáš Ježek [Tue, 26 May 2020 08:12:37 +0000 (10:12 +0200)]
CI: error handling when using gitlab api
Tomas Krizek [Mon, 18 May 2020 16:15:08 +0000 (18:15 +0200)]
tests/packaging: fix runtime dependencies
Tomas Krizek [Mon, 18 May 2020 12:30:04 +0000 (14:30 +0200)]
tests/packaging: add centos 8
Tomas Krizek [Mon, 18 May 2020 11:48:03 +0000 (13:48 +0200)]
tests/packaging: add ubuntu 20.04
Tomas Krizek [Mon, 18 May 2020 11:41:13 +0000 (13:41 +0200)]
tests/packaging: add f32, remove f30
Tomas Krizek [Mon, 18 May 2020 09:18:26 +0000 (11:18 +0200)]
scripts: remove obsolete make-archive.sh
Tomas Krizek [Mon, 18 May 2020 08:41:08 +0000 (10:41 +0200)]
tests/packaging: python nitpicks
Tomas Krizek [Mon, 18 May 2020 08:21:06 +0000 (10:21 +0200)]
tests/packaging: rename packaging file directories to .packaging
Lukáš Ježek [Mon, 11 May 2020 11:44:13 +0000 (13:44 +0200)]
tests: Remove old packaging tests
Lukáš Ježek [Mon, 11 May 2020 11:38:28 +0000 (13:38 +0200)]
packaging tests: Remove dependency on knot-resolver-release package
Lukáš Ježek [Fri, 13 Mar 2020 10:54:01 +0000 (11:54 +0100)]
CI: run all distributions on nightly branch
Lukáš Ježek [Tue, 24 Mar 2020 09:01:16 +0000 (10:01 +0100)]
packaging tests: add refuse_nord
Lukáš Ježek [Thu, 12 Mar 2020 15:04:52 +0000 (16:04 +0100)]
packaging tests: Add Debian 9, CentOS 7, Fedora 30 and 31, Ubuntu 16.04
and Ubuntu 18.04, Leap 15.2
Lukáš Ježek [Wed, 11 Mar 2020 12:45:02 +0000 (13:45 +0100)]
packaging tests: remove unused files
Lukáš Ježek [Fri, 28 Feb 2020 10:50:26 +0000 (11:50 +0100)]
Add test to .gitlab-ci.yml
Lukáš Ježek [Fri, 28 Feb 2020 09:33:42 +0000 (10:33 +0100)]
Add README.rst
Lukáš Ježek [Thu, 6 Feb 2020 15:12:11 +0000 (16:12 +0100)]
tests: pytest packaging tests for Debian 10 and Ubuntu Disco
Petr Špaček [Tue, 26 May 2020 14:25:47 +0000 (16:25 +0200)]
Merge branch 'tls-alerts' into 'master'
daemon/tls: send fatal error on failed handshake
See merge request knot/knot-resolver!1007
Tomas Krizek [Tue, 26 May 2020 12:29:01 +0000 (14:29 +0200)]
daemon/tls: send fatal alert on handshake failure
If the TLS handshake process fatally fails (e.g. no matching cipher
suite / cert), sent an alert to notify the peer.
Petr Špaček [Mon, 25 May 2020 14:26:36 +0000 (16:26 +0200)]
Merge branch 'hints-nodata-noaddr' into 'master'
modules/hints: NODATA answers also for non-address queries
See merge request knot/knot-resolver!1005
Vladimír Čunát [Mon, 25 May 2020 13:25:40 +0000 (15:25 +0200)]
modules/hints/tests: test NODATA, fix module order
Vladimír Čunát [Mon, 25 May 2020 13:20:45 +0000 (15:20 +0200)]
tests check_answer(): support testing NODATA
The fact that it's not a real separate RCODE
is always complicating stuff.
Also avoid using non-local variables.
Vladimír Čunát [Mon, 25 May 2020 12:16:06 +0000 (14:16 +0200)]
tests check_answer(): do not return until finished
Vladimír Čunát [Mon, 25 May 2020 11:53:57 +0000 (13:53 +0200)]
tests: move check_answer() into require('tests_utils')
Vladimír Čunát [Wed, 20 May 2020 12:30:15 +0000 (14:30 +0200)]
modules/hints: NODATA answers also for non-address queries
Apparently the original implementation in
14de9110 didn't think of this.
Noticed by Fantomas:
https://forum.turris.cz/t/kresd-returns-nxdomain-for-local-mx-records/12991
Petr Špaček [Thu, 21 May 2020 06:48:30 +0000 (08:48 +0200)]
Merge branch 'backup_submodules' into 'master'
use 3rd party submodule mirrors from our Gitlab
Closes #576
See merge request knot/knot-resolver!1006
Petr Špaček [Thu, 21 May 2020 06:40:07 +0000 (08:40 +0200)]
use 3rd party submodule mirrors from our Gitlab
lua-aho-corasick and lua-tapered submodules now use our mirrors
to avoid problems when upstream repositories are deleted
(which happened to lua-tapered on or around 2020-05-21).
Tomas Krizek [Tue, 19 May 2020 08:56:35 +0000 (10:56 +0200)]
Merge branch 'release-5-1-1' into 'master'
release 5.1.1
See merge request knot/knot-resolver!1004
Tomas Krizek [Tue, 19 May 2020 08:46:13 +0000 (10:46 +0200)]
update authors
Tomas Krizek [Tue, 19 May 2020 08:30:17 +0000 (10:30 +0200)]
release 5.1.1
Tomas Krizek [Tue, 19 May 2020 08:28:03 +0000 (10:28 +0200)]
Merge branch 'dos-many-ns' into 'master'
NXNSAttack mitigation
See merge request knot/knot-resolver!1003
Petr Špaček [Tue, 5 May 2020 11:44:47 +0000 (13:44 +0200)]
NEWS for NXNSAttack CVE-2020-12667
Petr Špaček [Tue, 5 May 2020 15:01:38 +0000 (17:01 +0200)]
NXNSAttack mitigation tests
New Deckard repo without conflicting iter_refused.rpl test
does not contain libswrap and libfaketime anymore
so I had to remove hacks in build system for these.
Vladimír Čunát [Tue, 5 May 2020 09:32:02 +0000 (11:32 +0200)]
mitigate NXNSAttack protocol vulnerability for wildcards in victim zone
Attacker might generate fake NS records pointing to victim's DNS zone.
If the zone contains wildcard the attacker might force us into packet
exchange with a (lame) DNS server on that IP address.
We now limit number of consecuctive failures and kill whole request if
limit is exceeded.
Vladimír Čunát [Tue, 24 Mar 2020 08:07:54 +0000 (09:07 +0100)]
mitigate NXNSAttack protocol vulnerability for unresolvable NS names
CWE-406: Insufficient Control of Network Message Volume (Network Amplification)
We now limit number of failed NS name resolution attempts for each
request. This does not prevent attacker from spoofing delegations
but it puts upper bound on amplification factor.
Vladimír Čunát [Mon, 18 May 2020 08:14:36 +0000 (10:14 +0200)]
Merge !999: doc: fix broken links
Lukáš Ježek [Wed, 6 May 2020 06:55:49 +0000 (08:55 +0200)]
doc: fix broken links
Tomas Krizek [Thu, 14 May 2020 10:53:16 +0000 (12:53 +0200)]
Merge branch 'distrotests-leap15.2' into 'master'
distro/tests: update to leap 15.2
See merge request knot/knot-resolver!1002
Tomas Krizek [Thu, 14 May 2020 09:51:20 +0000 (11:51 +0200)]
distro/tests: update to leap 15.2
Lukas Jezek [Wed, 13 May 2020 12:57:02 +0000 (14:57 +0200)]
Merge branch 'new-gdb' into 'master'
scripts/gen-cdefs.sh: adapt to changes in new gdb
See merge request knot/knot-resolver!1001
Vladimír Čunát [Wed, 13 May 2020 09:08:47 +0000 (11:08 +0200)]
scripts/gen-cdefs.sh: adapt to changes in new gdb
Now it works again with the latest gdb-9.1.
As a side effect, some simplification was possible, so that some
typedefs are newly defined at once with the underlying type.
Vladimír Čunát [Fri, 8 May 2020 14:43:23 +0000 (16:43 +0200)]
Merge !991: daemon/io: tty recognizes command boundary
Lukáš Ježek [Wed, 29 Apr 2020 12:22:51 +0000 (14:22 +0200)]
daemon/io: tty recognize newline as command boundary
Petr Špaček [Thu, 7 May 2020 06:49:55 +0000 (08:49 +0200)]
Merge branch 'luajit-includes' into 'master'
luajit includes
Closes #570
See merge request knot/knot-resolver!996
Vladimír Čunát [Mon, 4 May 2020 10:17:43 +0000 (12:17 +0200)]
daemon/bindings: stricter luajit detection
Petr Špaček [Thu, 7 May 2020 06:36:56 +0000 (08:36 +0200)]
Merge branch '559-handle-conflicting-trust-anchor-negative-trust-anchor-definitions' into 'master'
daemon/lua/trust_anchors: set_insecure() fails when NTA is in TA list
Closes #559
See merge request knot/knot-resolver!995
Lukáš Ježek [Thu, 30 Apr 2020 13:22:56 +0000 (15:22 +0200)]
daemon/lua/trust_anchors: set_insecure() fails when NTA is in TA list
Tomas Krizek [Wed, 6 May 2020 11:35:37 +0000 (13:35 +0200)]
Merge branch 'distrotests-ubuntu' into 'master'
distro/tests: switch to generic/ubuntu2004 box
See merge request knot/knot-resolver!998
Tomas Krizek [Wed, 6 May 2020 08:17:09 +0000 (10:17 +0200)]
distro/tests: switch to generic/ubuntu2004 box
Tomas Krizek [Tue, 5 May 2020 09:00:29 +0000 (11:00 +0200)]
Merge branch 'doc-centos-8' into 'master'
doc/quickstart: CentOS 8 is now supported
See merge request knot/knot-resolver!993
Tomas Krizek [Thu, 30 Apr 2020 13:00:25 +0000 (15:00 +0200)]
doc/quickstart: CentOS 8 is now supported
Vladimír Čunát [Mon, 4 May 2020 14:42:39 +0000 (16:42 +0200)]
Merge !994: ci: add faketime for Deckard to Dockerfile
Štěpán Balážik [Sat, 2 May 2020 17:06:14 +0000 (19:06 +0200)]
ci: add faketime for Deckard to Dockerfile
Petr Špaček [Thu, 30 Apr 2020 13:42:06 +0000 (15:42 +0200)]
Merge branch 'deckard_update' into 'master'
Deckard update
See merge request knot/knot-resolver!992
Štěpán Balážik [Thu, 30 Apr 2020 12:39:46 +0000 (14:39 +0200)]
ci: change scan-build error number
38 -> 30. 8 were in Deckard's libswrap which is now longer used.
Štěpán Balážik [Thu, 30 Apr 2020 12:10:04 +0000 (14:10 +0200)]
ci: reenable `sendmmsg` for Deckard tests
Petr Špaček [Mon, 27 Apr 2020 11:15:38 +0000 (13:15 +0200)]
ci: update Deckard to a version without swrap
Tomas Krizek [Wed, 29 Apr 2020 11:04:26 +0000 (13:04 +0200)]
Merge branch 'release-5-1-0' into 'master'
release 5.1.0
See merge request knot/knot-resolver!987
Tomas Krizek [Tue, 28 Apr 2020 09:24:15 +0000 (11:24 +0200)]
ci: generate en_US.UTF-8 locale in docker image
Tomas Krizek [Tue, 28 Apr 2020 08:14:53 +0000 (10:14 +0200)]
AUTHORS: update
Vladimír Čunát [Mon, 27 Apr 2020 16:17:14 +0000 (18:17 +0200)]
lib/module: bump KR_MODULE_API, reformulate NEWS
We had some minor API changes since the last release.
Perhaps we haven't been bumping this often enough.
Tomas Krizek [Mon, 27 Apr 2020 15:37:35 +0000 (17:37 +0200)]
release 5.1.0
Petr Špaček [Wed, 29 Apr 2020 10:33:38 +0000 (12:33 +0200)]
Merge branch 'survey' into 'master'
doc: link to survey page
See merge request knot/knot-resolver!990
Petr Špaček [Wed, 29 Apr 2020 10:12:07 +0000 (12:12 +0200)]
doc: link to survey page
Tomas Krizek [Wed, 29 Apr 2020 08:05:17 +0000 (10:05 +0200)]
Merge branch 'distrotest-f32' into 'master'
distro/tests: add Fedora 32
See merge request knot/knot-resolver!989
Tomas Krizek [Tue, 28 Apr 2020 16:01:15 +0000 (18:01 +0200)]
distro/tests: add Fedora 32
Tomas Krizek [Mon, 27 Apr 2020 16:08:34 +0000 (18:08 +0200)]
Merge branch 'distrotest-ubuntu2004' into 'master'
distro/tests: add Ubuntu 20.04
See merge request knot/knot-resolver!986
Tomas Krizek [Thu, 23 Apr 2020 12:51:35 +0000 (14:51 +0200)]
distro/tests: add Ubuntu 20.04
Vladimír Čunát [Mon, 27 Apr 2020 14:08:55 +0000 (16:08 +0200)]
Merge !982: docs: set user expectations
Petr Špaček [Thu, 23 Apr 2020 10:07:18 +0000 (12:07 +0200)]
docs: ask for feedback around policies
Feedback will get handy when we start working on #535.
Petr Špaček [Thu, 23 Apr 2020 09:38:08 +0000 (11:38 +0200)]
docs: add warning about DoH properties
Petr Špaček [Thu, 23 Apr 2020 09:37:44 +0000 (11:37 +0200)]
docs: add warning about DoT properties
Petr Špaček [Wed, 22 Apr 2020 08:18:56 +0000 (10:18 +0200)]
daemon: warn that non-Linux platforms are untested
Hopefully this will help to set right expectations.
Tomas Krizek [Mon, 27 Apr 2020 13:57:55 +0000 (15:57 +0200)]
Merge branch 'docker_debug' into 'master'
Docker debug improvements
See merge request knot/knot-resolver!984
Petr Špaček [Mon, 27 Apr 2020 06:13:57 +0000 (08:13 +0200)]
docker: measure request resolution time in debug mode
Petr Špaček [Mon, 27 Apr 2020 06:13:21 +0000 (08:13 +0200)]
docker: enable DO bit in debug mode
Petr Špaček [Mon, 27 Apr 2020 06:12:10 +0000 (08:12 +0200)]
docker: always clear cache in debug mode
Petr Špaček [Wed, 8 Apr 2020 07:40:17 +0000 (09:40 +0200)]
WIP: improvements for Docker debug mode
Petr Špaček [Mon, 27 Apr 2020 13:23:28 +0000 (15:23 +0200)]
Merge branch 'dname-support' into 'master'
DNAME support
Closes #234
See merge request knot/knot-resolver!965
Vladimír Čunát [Fri, 24 Apr 2020 10:24:42 +0000 (12:24 +0200)]
lib/cache: shut up linters
It makes no sense to run produce/consume with either of these NULL.
Petr Špaček [Mon, 27 Apr 2020 12:43:37 +0000 (14:43 +0200)]
tests: add Deckard module with DNAME tests
Vladimír Čunát [Fri, 17 Apr 2020 09:14:12 +0000 (11:14 +0200)]
validator: stricter filtering of "failed" ranks from answer
It appears possible that a KR_RANK_MISSING record might still get into
answer in some edge cases, so let's be more defensive. See
cce8d9355 .
Vladimír Čunát [Mon, 30 Mar 2020 15:28:26 +0000 (17:28 +0200)]
fix DNAME support
Vladimír Čunát [Fri, 24 Apr 2020 10:15:19 +0000 (12:15 +0200)]
Merge !983: prefill/zimport: fix race condition on TA access
Petr Špaček [Fri, 24 Apr 2020 09:08:32 +0000 (11:08 +0200)]
zimport: log errors on error level, not just verbose
Petr Špaček [Fri, 24 Apr 2020 09:08:06 +0000 (11:08 +0200)]
prefill/zimport: NEWS
Petr Špaček [Fri, 24 Apr 2020 08:59:07 +0000 (10:59 +0200)]
prefill/zimport: fix race condition on TA access
TA RRset might change asynchronously between zi_zone_import() and
zi_zone_process(), we cannot rely pointer from zi_zone_import().
Petr Špaček [Thu, 23 Apr 2020 12:29:29 +0000 (14:29 +0200)]
Merge branch 'cname-rank-no-ta' into 'master'
cache: fix cases of CNAMEs not getting cached
See merge request knot/knot-resolver!974
Vladimír Čunát [Wed, 22 Apr 2020 11:38:39 +0000 (13:38 +0200)]
iterate: use resolve_badmsg() fallback for more RCODEs
+ REFUSED and SERVFAIL (in non-STUB)
Vladimír Čunát [Tue, 7 Apr 2020 08:25:05 +0000 (10:25 +0200)]
cache: avoid CNAMEs when QTYPE=DS
It's disallowed combination, but why not fix it when it's so easy.
This was exposed by some of the previous two commits (not sure why)
in CI test for kresd->kresd forwarding.
Vladimír Čunát [Mon, 6 Apr 2020 10:10:50 +0000 (12:10 +0200)]
cache: fix CNAME caching when validation is disabled
This also fixes the same for DNAMEs - soon, when they get supported.
Only the special case is changed - xNAMEs when no TAs exist.
Overall the TA handling in kresd is buggy; fortunately in practice it
seems very rare to run in other configuration than single root TA.
Vladimír Čunát [Mon, 6 Apr 2020 11:43:05 +0000 (13:43 +0200)]
cache: in STUB mode always cache whole packets
... instead of individual records.
- iterator in STUB mode can't process individual CNAME steps from cache
- perhaps it's more suitable for STUB anyway
Tomas Krizek [Fri, 17 Apr 2020 09:54:47 +0000 (11:54 +0200)]
Merge branch 'ci-dumpcap-fix' into 'master'
ci: enable docker-build to run non-interactively
See merge request knot/knot-resolver!981
Štěpán Balážik [Thu, 16 Apr 2020 19:52:27 +0000 (21:52 +0200)]
ci: enable docker-build to run non-interactively