]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Aleš [Mon, 22 Mar 2021 15:12:47 +0000 (16:12 +0100)]
datamodel: simple configuration
Vasek Sraier [Sat, 20 Mar 2021 11:38:34 +0000 (12:38 +0100)]
dataclasses_yaml: full dataclasses parser
Vasek Sraier [Fri, 19 Mar 2021 21:13:33 +0000 (22:13 +0100)]
manager: dataclasses strictyaml schema support for Optional type
Vasek Sraier [Fri, 19 Mar 2021 20:41:41 +0000 (21:41 +0100)]
tests: unit tests testing compatibility of our decorator with dataclasses
Vasek Sraier [Fri, 19 Mar 2021 20:25:11 +0000 (21:25 +0100)]
manager: generating stringyaml schemas from dataclass-like definitions
Vasek Sraier [Fri, 19 Mar 2021 14:44:26 +0000 (15:44 +0100)]
poe: fixed unit test invocation command
Vasek Sraier [Sat, 13 Mar 2021 11:39:58 +0000 (12:39 +0100)]
manager: fixed formatting to make black happy
Vasek Sraier [Sat, 13 Mar 2021 11:38:30 +0000 (12:38 +0100)]
README.md: updated instructions with tools for integration testing
Vasek Sraier [Sat, 13 Mar 2021 11:33:46 +0000 (12:33 +0100)]
integration tests: testing tool can now be run by `poe integration`
Vasek Sraier [Sat, 13 Mar 2021 11:28:52 +0000 (12:28 +0100)]
integration testing: improved testing tool, testing changes in worker count
Vasek Sraier [Fri, 12 Mar 2021 16:12:58 +0000 (17:12 +0100)]
integration testing tool: improved interactive session
Vasek Sraier [Fri, 12 Mar 2021 14:31:29 +0000 (15:31 +0100)]
integration test tool: improved help message
Vasek Sraier [Fri, 12 Mar 2021 14:13:46 +0000 (15:13 +0100)]
bug fixes in order to make the basic startup integration test pass
Vasek Sraier [Tue, 9 Mar 2021 12:26:58 +0000 (13:26 +0100)]
manager: code style fixes
Vasek Sraier [Tue, 9 Mar 2021 12:23:01 +0000 (13:23 +0100)]
test: basic startup test and related fixes (however still failing)
Vasek Sraier [Tue, 9 Mar 2021 10:03:07 +0000 (11:03 +0100)]
integration: bind mounting repository and the test
Vasek Sraier [Fri, 5 Mar 2021 17:23:32 +0000 (18:23 +0100)]
integration tests: implemented basic testing framework with Podman
Vasek Sraier [Thu, 4 Mar 2021 16:11:21 +0000 (17:11 +0100)]
integration testing: initial Podman API code
Vasek Sraier [Wed, 3 Mar 2021 20:16:37 +0000 (21:16 +0100)]
ci: added systemd to devenv container, enabled docker image build job
Vasek Sraier [Thu, 25 Feb 2021 16:34:36 +0000 (17:34 +0100)]
CI: container with pydbus dependencies + small README update
Vasek Sraier [Wed, 24 Feb 2021 22:00:49 +0000 (23:00 +0100)]
systemd integration using pydbus
Vasek Sraier [Mon, 22 Feb 2021 08:55:00 +0000 (09:55 +0100)]
dependencies: removed dbus-python, because it breaks CI and it's not final that we will use it
Vasek Sraier [Mon, 22 Feb 2021 08:54:22 +0000 (09:54 +0100)]
CI: configure poetry to use pyenv
Vasek Sraier [Mon, 22 Feb 2021 07:40:00 +0000 (08:40 +0100)]
CI container: fixed poetry
Vasek Sraier [Mon, 22 Feb 2021 07:35:01 +0000 (08:35 +0100)]
CI: fixed base container config
Vasek Sraier [Sun, 21 Feb 2021 20:56:52 +0000 (21:56 +0100)]
CI containers: README and naming
Vasek Sraier [Sun, 21 Feb 2021 16:48:35 +0000 (17:48 +0100)]
basic foundation of inner APIs
Vasek Sraier [Sun, 21 Feb 2021 08:49:33 +0000 (09:49 +0100)]
removed dbus-next dependency
This library is not packaged anywhere so we will have to use something more traditional and build async interface on top of it if needed.
Vasek Sraier [Wed, 10 Feb 2021 22:56:13 +0000 (23:56 +0100)]
updated README.md
Vasek Sraier [Tue, 9 Feb 2021 21:08:12 +0000 (22:08 +0100)]
ci: docker image setup
Vasek Sraier [Tue, 9 Feb 2021 12:58:13 +0000 (13:58 +0100)]
ci: increased timeout
Vasek Sraier [Tue, 9 Feb 2021 12:52:20 +0000 (13:52 +0100)]
updated README.md with minimal setup, configured CI for linting
Vasek Sraier [Tue, 9 Feb 2021 11:18:01 +0000 (12:18 +0100)]
pyenv: multiple versions configured at the same time does not work, leaving 3.6.12 only
Vasek Sraier [Tue, 9 Feb 2021 10:13:47 +0000 (11:13 +0100)]
README.md: updated note about running code checks
Vasek Sraier [Tue, 9 Feb 2021 10:12:15 +0000 (11:12 +0100)]
dependencies: added strictyaml that we will need
Vasek Sraier [Sun, 7 Feb 2021 00:06:18 +0000 (01:06 +0100)]
README.md: correction of claims about type checkers
Vasek Sraier [Sat, 6 Feb 2021 12:49:47 +0000 (13:49 +0100)]
tox: added python 3.9.1 to the list of tested versions
Vasek Sraier [Sat, 6 Feb 2021 12:43:34 +0000 (13:43 +0100)]
tox config, README update, listening on Unix socket, added black for code formatting
Vasek Sraier [Fri, 5 Feb 2021 22:59:06 +0000 (23:59 +0100)]
project skeleton using Poetry and PoeThePoet
Ladislav Lhotka [Thu, 17 Dec 2020 09:05:28 +0000 (10:05 +0100)]
Initial commit
Vladimír Čunát [Thu, 7 Apr 2022 08:35:35 +0000 (10:35 +0200)]
Merge !1283: ci: fix ambiguous tag-sets
Vladimír Čunát [Thu, 7 Apr 2022 08:05:34 +0000 (10:05 +0200)]
ci: fix ambiguous tag-sets
In a few places the tag-set specification for jobs could match
either amd64 or arm64 runners. That non-determinism is bad,
especially when passing platform-specific artifacts around.
This is just a stop-gap measure. Later we'll need to rethink our CI
in terms of the two platforms.
I didn't touch tag-sets with `condor`, as that will probably always be
just a single machine (which coordinates scheduling on others).
Vladimír Čunát [Wed, 6 Apr 2022 08:49:22 +0000 (10:49 +0200)]
Merge !1282: ci/pkgtest: fix issues with sphinx
Vladimír Čunát [Mon, 4 Apr 2022 12:28:06 +0000 (14:28 +0200)]
ci/pkgtest: fix issues with sphinx
The apkg installation through pip3 was pulling too new jinja2 version,
breaking subsequent usage of sphinx to build docs (in `apkg build`).
Vladimír Čunát [Mon, 4 Apr 2022 08:40:28 +0000 (10:40 +0200)]
Merge !1276: xdp: make it work also with libknot 3.1
Fixes #735
Vladimír Čunát [Wed, 23 Mar 2022 11:47:14 +0000 (12:47 +0100)]
xdp nit: utilize freeing API added in libknot 3.1
It's probably a bit more efficient, but this part of code should be
rarely used even on a resolver serving all in XDP.
Vladimír Čunát [Wed, 23 Mar 2022 11:36:12 +0000 (12:36 +0100)]
xdp: make it work also with libknot 3.1
Somehow I did this wrong when porting to libknot 3.1.
Vladimír Čunát [Mon, 4 Apr 2022 08:27:16 +0000 (10:27 +0200)]
Merge !1281: pkg: update changelogs
Jakub Ružička [Tue, 29 Mar 2022 13:28:40 +0000 (15:28 +0200)]
pkg: update changelogs
* set myself as package maintainer
* use {{ now }} instead of hardcoded datetime
* bump apkg compat to 2
Jakub Ružička [Tue, 29 Mar 2022 13:25:33 +0000 (15:25 +0200)]
rpm: sync from Fedora
This is a no-op as GPG_CHECK is disabled for upstream package but it
keeps the .spec files in sync.
Vladimír Čunát [Mon, 21 Mar 2022 10:45:23 +0000 (11:45 +0100)]
Merge !1271: ci/images: add docs
Oto Šťáva [Mon, 21 Mar 2022 05:55:06 +0000 (06:55 +0100)]
ci/images: add debian-11-coverity description
Tomas Krizek [Wed, 9 Mar 2022 12:07:35 +0000 (13:07 +0100)]
ci/images: add image description
Tomas Krizek [Wed, 9 Mar 2022 11:59:32 +0000 (12:59 +0100)]
ci/images: ensure base image is updated
Vladimír Čunát [Mon, 21 Mar 2022 10:03:33 +0000 (11:03 +0100)]
Merge !1275: modules/dns64: fix incorrect packet writes for cached packets
Fixes #727
Oto Šťáva [Fri, 18 Mar 2022 14:22:08 +0000 (15:22 +0100)]
modules/dns64: fix incorrect packet writes for cached packets
Also change the return type of kr_pkt_has_dnssec() and lua's :dobit()
Aleš Mrázek [Tue, 15 Mar 2022 10:28:50 +0000 (11:28 +0100)]
Merge branch 'release-5-5-0' into 'master'
release 5.5.0
See merge request knot/knot-resolver!1272
Aleš Mrázek [Mon, 14 Mar 2022 21:18:58 +0000 (22:18 +0100)]
AUTHORS: duplicate alias removed
Aleš [Mon, 14 Mar 2022 14:22:13 +0000 (15:22 +0100)]
release 5.5.0
Vladimír Čunát [Tue, 15 Mar 2022 06:53:47 +0000 (07:53 +0100)]
Merge !1273: Documentation nits (policy, predict)
Vladimír Čunát [Mon, 14 Mar 2022 14:27:54 +0000 (15:27 +0100)]
predict docs: be more explicit about recommended use
We're still run into people who thought that the example config
is a suitable default. Example where it caused practical issues:
https://lists.nic.cz/hyperkitty/list/knot-resolver-users@lists.nic.cz/thread/WQDJJ3LLEIZ5U3VVSCITW6DZPICW4L7U/
Vladimír Čunát [Mon, 14 Mar 2022 14:19:45 +0000 (15:19 +0100)]
policy docs: explain non-ASCII names
Tomas Krizek [Mon, 14 Mar 2022 10:17:14 +0000 (11:17 +0100)]
Merge branch 'selection' into 'master'
lib/selection: fix interaction of timeouts with reboots
Closes #722
See merge request knot/knot-resolver!1269
Vladimír Čunát [Mon, 14 Mar 2022 06:33:05 +0000 (07:33 +0100)]
Revert "daemon/worker: add task timeouts for upstream TCP connections"
This reverts commit
0c9ea1332e1c4475043eab571f60915b90985999 (!1226).
CI rp:fwd-tls6.udp-asan now repeatedly shows use-after-free.
That could be a serious issue, and this commit's feature
seems less important than the risk. Let's revert until the issue
gets deeper investigation.
Vladimír Čunát [Mon, 7 Mar 2022 17:04:05 +0000 (18:04 +0100)]
lib/selection: fix interaction of timeouts with reboots
We use "monotonic" time-stamps for the dead_since field;
that breaks on system reboots, in which case we reset the stats.
(if the server was categorized as dead)
If the server times out afterwards, we'd fail the condition
`cur_state.consecutive_timeouts == old_state.consecutive_timeouts`
so its stats would not update. Therefore we'd get stuck forever
in a state where the unusable server has high priority (no_rtt_info).
This commit changes a bit more than was necessary to fix this,
including precision of the stats (in some cases).
Vladimír Čunát [Fri, 4 Mar 2022 11:55:55 +0000 (12:55 +0100)]
lib/selection: improve randomness of ties
The approach was dubious: random shuffle, qsort() and choose the first.
The main functional problem was that qsort() isn't a stable sort,
so the effect of pre-shuffling is not reliable, even though I don't have
any evidence of this causing issues in practice.
The new code should also be a bit more efficient in terms of CPU and
consumed randomness, but that probably won't be noticeable.
The arrays passed into select_transport() are now const (no sorting),
which could make the code easier to "understand".
Tomas Krizek [Wed, 9 Mar 2022 12:19:18 +0000 (13:19 +0100)]
Merge branch 'ci-remove-arm' into 'master'
ci: remove experimental arm builds
See merge request knot/knot-resolver!1270
Tomas Krizek [Wed, 9 Mar 2022 11:39:57 +0000 (12:39 +0100)]
ci: remove experimental arm builds
These are running on a hardware setup which is hard to maintain. In the
near future, ARM64 should be covered by a dedicated runner.
Tomas Krizek [Tue, 8 Mar 2022 14:44:16 +0000 (15:44 +0100)]
Merge branch 'keyblock-update' into 'master'
pgp: remove tkrizek, add amrazek
See merge request knot/knot-resolver!1268
Tomas Krizek [Mon, 7 Mar 2022 16:11:14 +0000 (17:11 +0100)]
pgp: remove tkrizek, add amrazek
Tomas Krizek [Mon, 7 Mar 2022 12:17:16 +0000 (13:17 +0100)]
Merge branch 'distrotests-rocky8' into 'master'
distro/tests: use rocky8 instead of centos8
See merge request knot/knot-resolver!1267
Tomas Krizek [Mon, 7 Mar 2022 09:25:44 +0000 (10:25 +0100)]
distro/tests: add Rocky support
Tomas Krizek [Fri, 4 Mar 2022 13:11:36 +0000 (14:11 +0100)]
.gitlabci: add some doc comments for distotest job
Tomas Krizek [Fri, 4 Mar 2022 13:11:16 +0000 (14:11 +0100)]
distro/tests: use rocky8 instead of centos8
Vladimír Čunát [Tue, 1 Mar 2022 17:46:47 +0000 (18:46 +0100)]
Merge !1266: Coverity Scan false positives clarifications
Oto Šťáva [Mon, 28 Feb 2022 15:00:25 +0000 (16:00 +0100)]
Coverity Scan false positives clarifications
Tomas Krizek [Tue, 1 Mar 2022 08:49:15 +0000 (09:49 +0100)]
Merge branch 'cache-nit-ttl' into 'master'
cache nit: reduce cache.max_ttl limit a bit
See merge request knot/knot-resolver!1265
Vladimír Čunát [Mon, 28 Feb 2022 08:33:25 +0000 (09:33 +0100)]
cache nit: reduce cache.max_ttl limit a bit
The new limit is over 68 years, so still completely meaningless.
Vladimír Čunát [Mon, 28 Feb 2022 13:34:56 +0000 (14:34 +0100)]
Merge !1264: Fix defects detected by Coverity Scan
Oto Šťáva [Fri, 25 Feb 2022 06:46:13 +0000 (07:46 +0100)]
Fix defects detected by Coverity Scan
Targeted CIDs: 155456, 155962, 346121, 346123, 346124, 346125,
346126, 346127, 346130, 346131, 346132, 346134, 346135, 346138,
346140, 346145, 346146, 346149, 346152, 346154, 346156, 346157
lib/dnssec/nsec3.c change:
apparently cleaning fallout from my (= vcunat's) commit
b5cf61325ae
Vladimír Čunát [Mon, 28 Feb 2022 11:08:14 +0000 (12:08 +0100)]
Merge !1256: modules/dnstap: improve UX for common errors
Vladimír Čunát [Tue, 8 Feb 2022 11:59:31 +0000 (12:59 +0100)]
modules/dnstap: improve UX for common errors
The main thing is the "failed to open socket" message.
But let's also elevate other fatal one-off logs to ERROR level.
Vladimír Čunát [Tue, 8 Feb 2022 11:46:55 +0000 (12:46 +0100)]
modules/dnstap: don't do anything on loading the module
Usually in configuration the module is loaded in a separate command
from passing configuration to it. For dnstap this loading would
immediately lead to opening the default socket path, even if the
configuration actually specifies (a different) path later.
Users can still force using the default by passing an empty table:
`dnstap.config({})` or `modules = { dnstap = {}}`
(though I doubt the utility of the default /tmp/dnstap.sock anyway)
Vladimír Čunát [Mon, 28 Feb 2022 10:58:54 +0000 (11:58 +0100)]
Merge !1257: lib/resolve, modules: NO_ANSWER for not responding to clients
Implements #432
Oto Šťáva [Tue, 8 Feb 2022 12:46:15 +0000 (13:46 +0100)]
lib/resolve, modules: NO_ANSWER for not responding to clients
Vladimír Čunát [Mon, 28 Feb 2022 10:43:25 +0000 (11:43 +0100)]
Merge !1238: Support for PROXYv2 protocol
Oto Šťáva [Tue, 8 Feb 2022 09:08:05 +0000 (10:08 +0100)]
daemon, lib: document API changes made due to PROXYv2
Oto Šťáva [Mon, 7 Feb 2022 13:56:33 +0000 (14:56 +0100)]
daemon: add PROXYv2 SSL TLV handling + minor refactoring
Oto Šťáva [Mon, 7 Feb 2022 09:08:21 +0000 (10:08 +0100)]
daemon: correct PROXYv2 handling for TCP sessions
Oto Šťáva [Fri, 4 Feb 2022 08:16:23 +0000 (09:16 +0100)]
daemon/bindings doc: PROXYv2 clarifications
Oto Šťáva [Thu, 3 Feb 2022 13:06:01 +0000 (14:06 +0100)]
daemon: use flags from proxy header + refactor comm data
Oto Šťáva [Fri, 28 Jan 2022 08:01:50 +0000 (09:01 +0100)]
daemon: allow setting zero netmasks for net.proxy_allowed()
Tomas Krizek [Wed, 26 Jan 2022 17:02:22 +0000 (18:02 +0100)]
tests/config: net.proxy_allowed() support
Oto Šťáva [Tue, 4 Jan 2022 12:45:29 +0000 (13:45 +0100)]
daemon/proxyv2.test: deckard test for PROXYv2
Oto Šťáva [Thu, 16 Dec 2021 13:24:05 +0000 (14:24 +0100)]
daemon/bindings: add net.proxy_allowed() + docs
Oto Šťáva [Mon, 13 Dec 2021 14:34:36 +0000 (15:34 +0100)]
daemon: PROXYv2 header processing
Vladimír Čunát [Tue, 22 Feb 2022 10:47:25 +0000 (11:47 +0100)]
Merge !1259: .gitlab-ci: Coverity scan
Implements #450
Oto Šťáva [Thu, 10 Feb 2022 10:16:24 +0000 (11:16 +0100)]
.gitlab-ci: Coverity scan
Tomas Krizek [Fri, 18 Feb 2022 10:53:55 +0000 (11:53 +0100)]
Merge branch 'fix-tls-client-resumption' into 'master'
daemon/tls: fix TLS client resumption
Closes #542
See merge request knot/knot-resolver!1261
Oto Šťáva [Fri, 18 Feb 2022 10:15:38 +0000 (11:15 +0100)]
daemon/tls: fix TLS client resumption