]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Tomas Krizek [Fri, 10 Jul 2020 12:16:36 +0000 (14:16 +0200)]
Merge branch 'gitlab-move' into 'master'
treewide: move to our new GitLab URL
See merge request knot/knot-resolver!1019
Vladimír Čunát [Wed, 1 Jul 2020 09:20:49 +0000 (11:20 +0200)]
treewide: move to our new GitLab URL
s/gitlab\.labs\.nic/gitlab.nic/g
Redirects are in place, so it shouldn't be required now, but why not.
Petr Špaček [Wed, 8 Jul 2020 06:46:37 +0000 (08:46 +0200)]
Merge branch 'test_cleanup' into 'master'
test cleanups
See merge request knot/knot-resolver!1017
Vladimír Čunát [Wed, 1 Jul 2020 16:27:23 +0000 (18:27 +0200)]
module tests (daf + prefill): switch to shared check_answer()
I think this eliminates the remaining copies. Most of the places don't
need all the features, but it still seems worth to deduplicate.
Petr Špaček [Tue, 30 Jun 2020 15:54:38 +0000 (17:54 +0200)]
config tests: log test file name at the beginning of output
Petr Špaček [Tue, 30 Jun 2020 15:50:35 +0000 (17:50 +0200)]
config tests: detect incorrect config test suite definitions
Old behavior where test definition without "return" was silently
skipped was very confusing.
Petr Špaček [Tue, 30 Jun 2020 15:26:35 +0000 (17:26 +0200)]
config tests: do not load and detect_time_skew and ta_update modules
It was only generating noise in test logs, especially when network is
not abvailable/is intentionally disabled.
Vladimír Čunát [Fri, 3 Jul 2020 16:09:20 +0000 (18:09 +0200)]
Merge !1012: don't drop capabilities when running as root
Tomas Krizek [Fri, 19 Jun 2020 10:33:40 +0000 (12:33 +0200)]
meson: add build options to disable libcapng
Tomas Krizek [Fri, 19 Jun 2020 09:47:33 +0000 (11:47 +0200)]
daemon: don't drop capabilities when running as root
When the effective user is root, no capabilities are dropped. This
change has no effect when running as non-privileged user or when
switching to non-privileged user via user() in config.
Dropping capabilities as a root user resulted in the following
unexpected behaviour:
1. When using trust anchor update, r/w access to root keys is neeeded.
These are typically owned by knot-resolver user. When kresd is
executed as root and capabilities are dropped, this file was no longer
writable, because it is owned by knot-resolver, not root.
2. It is impossible to recreate/resize cache due to the same permission
issue as above.
If you want to drop capabilities when starting kresd as a root user,
you can switch the user with the `user()` command. This changes the
effective user ID and drops any capabilities as well.
Tomas Krizek [Wed, 1 Jul 2020 12:26:03 +0000 (14:26 +0200)]
Merge branch 'release-5-1-2' into 'master'
release 5.1.2
See merge request knot/knot-resolver!1018
Tomas Krizek [Wed, 1 Jul 2020 08:30:03 +0000 (10:30 +0200)]
release 5.1.2
Tomas Krizek [Wed, 1 Jul 2020 11:26:23 +0000 (13:26 +0200)]
doc: default to ignoring warning during doc build
Add new target doc-strict for development to detect warnings, but avoid
failing package builds due to documentation warnings.
Tomas Krizek [Wed, 1 Jul 2020 08:24:42 +0000 (10:24 +0200)]
distro/rpm: use opensuse license format
opensuse and fedora/epel use different license strings, but the opensuse
value is used in Knot DNS, so let's be consistent.
Cherry picked from https://build.opensuse.org/request/show/817870
Tomas Krizek [Wed, 1 Jul 2020 07:58:46 +0000 (09:58 +0200)]
distro/tests: remove fedora30 (EOL)
Petr Špaček [Wed, 1 Jul 2020 06:25:14 +0000 (08:25 +0200)]
Merge branch 'rpz-warnings' into 'master'
policy.rpz: various fixes
See merge request knot/knot-resolver!1016
Vladimír Čunát [Tue, 30 Jun 2020 16:27:44 +0000 (18:27 +0200)]
NEWS: describe the RPZ fixes
Vladimír Čunát [Tue, 30 Jun 2020 14:11:18 +0000 (16:11 +0200)]
policy.rpz: support local data with larger RRsets
Vladimír Čunát [Tue, 30 Jun 2020 14:05:32 +0000 (16:05 +0200)]
tests check_answer(): support checking RDATA
Also allow using empty set as an alternative to NODATA pseudo-RCODE,
and migrate RPZ tests to this merged function.
Vladimír Čunát [Tue, 30 Jun 2020 13:45:08 +0000 (15:45 +0200)]
policy.ANSWER: allow multiple RRs
... by allowing .rdata to be a table. Larger RRsets seem useful.
Vladimír Čunát [Tue, 30 Jun 2020 12:37:12 +0000 (14:37 +0200)]
policy.rpz: fix $ORIGIN-related handling
- use parser-detected $ORIGIN instead of looking at SOA owner
- skip records outside $ORIGIN (and warn) instead of nesting them
- simplify a bit, and tweak warnings
Vladimír Čunát [Tue, 30 Jun 2020 08:51:08 +0000 (10:51 +0200)]
policy.rpz: don't warn on NS and SOA records
Also utilize table indexing.
This was a "regression" from extending RPZ support in 5.1.0.
NS and SOA are even mandatory, as RPZ is supposed to be a valid zone:
https://tools.ietf.org/html/draft-ietf-dnsop-dns-rpz-00#section-2
Tomas Krizek [Mon, 29 Jun 2020 15:05:08 +0000 (17:05 +0200)]
Merge branch '585-graphite-prevents-kresd-to-start-if-graphite-server-is-not-available' into 'master'
graphite: Reconnect to the graphite server when it was unavailable
Closes #585
See merge request knot/knot-resolver!1014
Petr Špaček [Mon, 29 Jun 2020 14:07:43 +0000 (16:07 +0200)]
graphite: NEWS
Petr Špaček [Mon, 29 Jun 2020 13:58:10 +0000 (15:58 +0200)]
graphite: use TCP timeout value derived from publish interval
It seems pointless to accumulate "late" connection attempts.
Petr Špaček [Mon, 29 Jun 2020 12:29:10 +0000 (14:29 +0200)]
graphite: make socket operations asynchronous
Petr Špaček [Mon, 29 Jun 2020 12:28:45 +0000 (14:28 +0200)]
graphite: more informative socket error messages
Lukáš Ježek [Fri, 26 Jun 2020 11:39:39 +0000 (13:39 +0200)]
graphite: reconnect to the graphite server when it was unavailable
Tomas Krizek [Mon, 29 Jun 2020 13:34:35 +0000 (15:34 +0200)]
Merge branch 'gc-fixes' into 'master'
GC fixes
See merge request knot/knot-resolver!1009
Vladimír Čunát [Tue, 9 Jun 2020 14:27:07 +0000 (16:27 +0200)]
gc: use kresd versioning instead of separate one
I don't think it makes sense to ever package it separately from kresd,
so why should it have separate versioning? (could be confusing)
Vladimír Čunát [Tue, 9 Jun 2020 14:19:24 +0000 (16:19 +0200)]
gc: print numbers in more readable way
Vladimír Čunát [Tue, 9 Jun 2020 06:09:32 +0000 (08:09 +0200)]
gc: fix integer overflow when computing how much to GC
On 32-bit systems the insufficient GC could commonly happen:
https://lists.nic.cz/pipermail/knot-resolver-users/2020/000265.html
The meaning of -f parameter got slightly changed, so that the buggy
computation could be greatly simplified. GC seems to make sense when
most of cache space is used, in which case the difference is small.
Vladimír Čunát [Tue, 9 Jun 2020 04:24:42 +0000 (06:24 +0200)]
gc: fix flushing of messages to logs
There were the usual effects: very incorrect timestamps (even by days),
and I suspect we could even lose some logs completely.
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.