]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Lukáš Ondráček [Wed, 4 Dec 2024 16:04:59 +0000 (17:04 +0100)]
daemon/defer: configuration changes + logging
Lukáš Ondráček [Mon, 2 Dec 2024 17:00:27 +0000 (18:00 +0100)]
daemon/defer: change address mismatch assert to warning
Lukáš Ondráček [Mon, 2 Dec 2024 15:29:16 +0000 (16:29 +0100)]
daemon/defer: fix other places with recursive time measurements
Lukáš Ondráček [Mon, 2 Dec 2024 11:44:06 +0000 (12:44 +0100)]
daemon/defer: increase deferred request timeout
Lukáš Ondráček [Thu, 28 Nov 2024 16:00:59 +0000 (17:00 +0100)]
daemon/defer: fix charging time to UDP and non-UDP phases
Lukáš Ondráček [Thu, 28 Nov 2024 11:45:29 +0000 (12:45 +0100)]
daemon/defer: minor changes
Lukáš Ondráček [Wed, 27 Nov 2024 14:27:16 +0000 (15:27 +0100)]
daemon/defer: fix using src_addr instead of comm_addr
Lukáš Ondráček [Mon, 25 Nov 2024 18:10:20 +0000 (19:10 +0100)]
daemon/defer: allow recursive time accounting, fix subreq accounting
Lukáš Ondráček [Wed, 20 Nov 2024 23:59:47 +0000 (00:59 +0100)]
daemon/defer: fix closing session with deferred EOF
Lukáš Ondráček [Wed, 20 Nov 2024 23:15:29 +0000 (00:15 +0100)]
daemon/defer: limit deferred queries by memory usage
Lukáš Ondráček [Mon, 11 Nov 2024 18:13:27 +0000 (19:13 +0100)]
daemon/defer: defer stream EOF if data are deferred
Lukáš Ondráček [Thu, 14 Nov 2024 17:25:58 +0000 (18:25 +0100)]
daemon/session2: add half-closed TCP connection handling
Lukáš Ondráček [Wed, 6 Nov 2024 17:26:14 +0000 (18:26 +0100)]
daemon/io: keep TCP data in system queue on buffer overflow
Lukáš Ondráček [Mon, 4 Nov 2024 16:23:34 +0000 (17:23 +0100)]
daemon/defer: enable defer by default
Lukáš Ondráček [Mon, 4 Nov 2024 16:19:12 +0000 (17:19 +0100)]
lib/mmapped: fix typo
Vladimír Čunát [Mon, 4 Nov 2024 14:54:48 +0000 (15:54 +0100)]
mmapped_* nit: move from daemon/ to lib/
We'll utilize this for cache, so this will be an easy way for GC
to access the mmapped_* symbols.
In lib/ we usually prefix symbols by kr_ but I don't think it's worth
the hassle in this case, as mmapped_ seems like a good enough prefix.
Lukáš Ondráček [Thu, 31 Oct 2024 16:39:31 +0000 (17:39 +0100)]
daemon/mmapped: use static_assert on undefined padding
Lukáš Ondráček [Thu, 31 Oct 2024 16:28:01 +0000 (17:28 +0100)]
daemon/ratelimiting: add log-period and dry-run
Lukáš Ondráček [Thu, 31 Oct 2024 14:03:30 +0000 (15:03 +0100)]
lib/kru: improve code formatting
Lukáš Ondráček [Wed, 30 Oct 2024 18:09:41 +0000 (19:09 +0100)]
daemon/ratelimiting: polish
Lukáš Ondráček [Wed, 30 Oct 2024 15:46:08 +0000 (16:46 +0100)]
daemon/ratelimiting: fix runtime configuration reload
Lukáš Ondráček [Thu, 24 Oct 2024 16:37:00 +0000 (18:37 +0200)]
daemon/ratelimiting: use slip instead of tc_limit
Lukáš Ondráček [Wed, 23 Oct 2024 18:19:58 +0000 (20:19 +0200)]
Revert "pytests: change log level from debug to notice"
This reverts commit
b2cbbac2504106438326ee83dc01e305d9cb64f6 .
Lukáš Ondráček [Wed, 23 Oct 2024 17:59:02 +0000 (19:59 +0200)]
daemon/defer: disable by default, use real time in KRU
Lukáš Ondráček [Wed, 23 Oct 2024 14:02:32 +0000 (16:02 +0200)]
Revert "daemon/defer: use total accounted time as KRU time"
This reverts commit
9d4ad75d103f1fe5811a1bd2765d5fddaaab0a27 .
Lukáš Ondráček [Mon, 21 Oct 2024 17:48:46 +0000 (19:48 +0200)]
Merge remote-tracking branch 'master' into rrl-wip
Vladimír Čunát [Sun, 20 Oct 2024 09:24:06 +0000 (11:24 +0200)]
Merge !1621: python: Ruff linter and formatter
Aleš Mrázek [Thu, 17 Oct 2024 10:09:55 +0000 (12:09 +0200)]
doc/dev/manager-dev-env.rst: update
Aleš Mrázek [Tue, 15 Oct 2024 15:58:00 +0000 (17:58 +0200)]
tests/pytests: ruff linter fixes
Aleš Mrázek [Tue, 15 Oct 2024 15:57:29 +0000 (17:57 +0200)]
python/knot_resolver: ruff linter fixes
Aleš Mrázek [Fri, 11 Oct 2024 09:17:12 +0000 (11:17 +0200)]
.gitlab-ci.manager.yml: lint and format added
Aleš Mrázek [Fri, 11 Oct 2024 09:15:35 +0000 (11:15 +0200)]
scripts/poe-tasks: separate lint from other check script
Aleš Mrázek [Thu, 10 Oct 2024 13:59:16 +0000 (15:59 +0200)]
.gitlab-ci.manager.yml: install optional deps
Aleš Mrázek [Thu, 10 Oct 2024 12:36:28 +0000 (14:36 +0200)]
lint: pylint and flake8 removed
Aleš Mrázek [Wed, 9 Oct 2024 20:27:56 +0000 (22:27 +0200)]
python: linting fixes
Aleš Mrázek [Wed, 9 Oct 2024 20:19:31 +0000 (22:19 +0200)]
python: code format fixes
Aleš Mrázek [Wed, 9 Oct 2024 20:15:14 +0000 (22:15 +0200)]
scripts/poe-tasks: use ruff instead of black, isort, pylint and flake8
Aleš Mrázek [Wed, 9 Oct 2024 16:55:36 +0000 (18:55 +0200)]
pyproject.toml: ruff linter and code formatter added
Lukáš Ondráček [Thu, 17 Oct 2024 12:11:27 +0000 (14:11 +0200)]
pytests: change log level from debug to notice
Lukáš Ondráček [Wed, 16 Oct 2024 14:43:02 +0000 (16:43 +0200)]
daemon/ratelimiting: lint fixes
Vladimír Čunát [Wed, 16 Oct 2024 13:24:06 +0000 (15:24 +0200)]
Merge !1620: distro/pkg/deb: deep clean Debian packaging with pedantic lintian
Jakub Ružička [Mon, 7 Oct 2024 14:31:53 +0000 (16:31 +0200)]
distro/pkg/deb: silence more irrelevant lintian cries
Jakub Ružička [Mon, 7 Oct 2024 15:09:36 +0000 (17:09 +0200)]
distro/pkg/deb: make pkgconfig available for cross-compilation
This addresses lintian warning
W: knot-resolver6-dev: pkg-config-unavailable-for-cross-compilation [usr/lib/pkgconfig/libkres.pc]
Jakub Ružička [Mon, 7 Oct 2024 15:19:10 +0000 (17:19 +0200)]
distro/pkg/deb: exclude redundant COPYING file
Silences lintian cry:
I: knot-resolver6: extra-license-file [usr/share/doc/knot-resolver6/COPYING.gz]
Jakub Ružička [Mon, 7 Oct 2024 15:13:27 +0000 (17:13 +0200)]
distro/pkg/deb: extend -dev package description
Jakub Ružička [Mon, 7 Oct 2024 13:58:11 +0000 (15:58 +0200)]
distro/pkg/deb: remove Multi-Arch: same from dnstap
The module isn't really Multi-Arch, remove the false declaration.
Jakub Ružička [Mon, 7 Oct 2024 14:14:56 +0000 (16:14 +0200)]
distro/pkg/deb: improve knot-resolver6.postinst
Switching to deb-systemd-invoke saves one lintian warning about directly
invoking systemd.
Lukáš Ondráček [Mon, 14 Oct 2024 16:36:15 +0000 (18:36 +0200)]
daemon/defer: cleanup heads of queues after idle
Lukáš Ondráček [Thu, 10 Oct 2024 17:08:44 +0000 (19:08 +0200)]
daemon/defer: defer or close whole streams at once
Jakub Ružička [Mon, 7 Oct 2024 13:49:40 +0000 (15:49 +0200)]
distro/pkg/deb: update knot-resolver6.links
Jakub Ružička [Mon, 7 Oct 2024 12:50:47 +0000 (14:50 +0200)]
distro/pkg/deb: use meson through debhelper
Use standard debhelper as opposed to calling meson and ninja manually.
Aleš Mrázek [Wed, 9 Oct 2024 15:56:16 +0000 (17:56 +0200)]
Merge branch 'ci-manager-py3.13' into 'master'
python: support for the new python 3.13
See merge request knot/knot-resolver!1619
Lukáš Ondráček [Wed, 9 Oct 2024 12:27:42 +0000 (14:27 +0200)]
daemon/ratelimiting: disable for non-UDP requests
Aleš Mrázek [Tue, 8 Oct 2024 20:33:10 +0000 (22:33 +0200)]
python: utils: 'typing.Pattern' compatibility fix
Aleš Mrázek [Tue, 8 Oct 2024 19:27:19 +0000 (21:27 +0200)]
python: datamodel: types: pylint error fix
Aleš Mrázek [Tue, 8 Oct 2024 19:06:38 +0000 (21:06 +0200)]
.python-version: versions update
Aleš Mrázek [Tue, 8 Oct 2024 18:09:31 +0000 (20:09 +0200)]
.gitlab-ci.manager.yml: python3.13 unit tests
Lukáš Ondráček [Mon, 7 Oct 2024 16:28:49 +0000 (18:28 +0200)]
daemon/defer: add alternate UDP and non-UDP phases
Vladimír Čunát [Mon, 7 Oct 2024 10:16:54 +0000 (12:16 +0200)]
Merge !1616: datamodel: types: files: improvements and fixes
Fixes #919
Lukáš Ondráček [Wed, 2 Oct 2024 15:13:10 +0000 (17:13 +0200)]
daemon/defer: use total accounted time as KRU time
Lukáš Ondráček [Wed, 2 Oct 2024 13:27:10 +0000 (15:27 +0200)]
lib/kru: fix zero increment
Lukáš Ondráček [Tue, 1 Oct 2024 15:34:23 +0000 (17:34 +0200)]
fixup! lib/log: add [defer ] group
Vladimír Čunát [Tue, 1 Oct 2024 13:18:11 +0000 (15:18 +0200)]
fixup! lib/log: add [defer ] group
Lukáš Ondráček [Tue, 1 Oct 2024 13:13:21 +0000 (15:13 +0200)]
daemon/mmapped: remove padding from header where used
Vladimír Čunát [Tue, 1 Oct 2024 13:08:13 +0000 (15:08 +0200)]
lib/log: add [defer ] group
In particular this turns off those debug logs by default.
Vladimír Čunát [Tue, 1 Oct 2024 10:57:35 +0000 (12:57 +0200)]
fixup! Merge branch 'master' into rrl-wip
The python module was renamed in
79af7dea85687fb399ff4654c87
Vladimír Čunát [Tue, 1 Oct 2024 08:42:36 +0000 (10:42 +0200)]
lib/utils: deduplicate kr_straddr_socket* + describe
Vladimír Čunát [Mon, 30 Sep 2024 13:34:11 +0000 (15:34 +0200)]
Merge branch 'master' into rrl-wip
Aleš Mrázek [Tue, 24 Sep 2024 08:40:45 +0000 (10:40 +0200)]
python: datamodel: added permissions_default to global validation context
It is used to change the check of dirs/files permissions against the default constant user:group or the current user the process is running as.
Aleš Mrázek [Tue, 24 Sep 2024 08:08:37 +0000 (10:08 +0200)]
python: manager: check the current user against the default constant when the server starts
Aleš Mrázek [Mon, 23 Sep 2024 15:57:26 +0000 (17:57 +0200)]
datamodel: types: files: improvements
- compare intended uid with current working uid
- check permissions for current user and group
- use os.getuid() and pwd.getpwuid() instead of os.getlogin() #919
Aleš Mrázek [Mon, 30 Sep 2024 09:34:29 +0000 (11:34 +0200)]
Merge branch 'python-constants-module' into 'master'
python/knot_resolver: meson configured constants
See merge request knot/knot-resolver!1613
Aleš Mrázek [Tue, 24 Sep 2024 11:49:24 +0000 (13:49 +0200)]
.gitlab-ci.yml: IMAGE_TAG update
Jakub Ružička [Mon, 23 Sep 2024 14:09:33 +0000 (16:09 +0200)]
CI: use standard docker for pkg:arch
Arch LXC images currently don't work :(
Standard docker can't test systemd but it's better than nothing.
Jakub Ružička [Mon, 23 Sep 2024 14:59:52 +0000 (16:59 +0200)]
tests/packaging: skip systemd tests without systemd
Jakub Ružička [Thu, 19 Sep 2024 14:05:44 +0000 (16:05 +0200)]
distro/pkg: update packaging for single python module
Jakub Ružička [Tue, 24 Sep 2024 09:10:23 +0000 (11:10 +0200)]
pyproject.toml: exclude meson templates
Make sure constants.py.in and meson.build are excluded from
knot_resolver python module.
Aleš Mrázek [Thu, 19 Sep 2024 13:43:30 +0000 (15:43 +0200)]
python: meson constants.py template moved to knot_resolver module
Aleš Mrázek [Tue, 17 Sep 2024 22:33:17 +0000 (00:33 +0200)]
scripts/poe-tasks: created gen-constantspy script
New script to build constants.py module using Meson. Also check that the module is the current one.
Aleš Mrázek [Tue, 17 Sep 2024 22:05:11 +0000 (00:05 +0200)]
scripts/poe-tasks: _env.sh improvements and formatting
Aleš Mrázek [Mon, 16 Sep 2024 16:28:49 +0000 (18:28 +0200)]
scripts/poe-tasks: ./configure not required for some tasks
Aleš Mrázek [Mon, 16 Sep 2024 15:56:27 +0000 (17:56 +0200)]
meson.build: use non-standard prefix for run_dir
Aleš Mrázek [Mon, 16 Sep 2024 15:53:12 +0000 (17:53 +0200)]
scripts/poe-tasks: doc-schema added
The script that generates the configuration JSON schema with the correct values.
Aleš Mrázek [Mon, 16 Sep 2024 10:59:36 +0000 (12:59 +0200)]
python: use CACHE_DIR and RUN_DIR constants
Aleš Mrázek [Sun, 15 Sep 2024 19:45:36 +0000 (21:45 +0200)]
python: removed env vars from python code
Aleš Mrázek [Fri, 13 Sep 2024 09:59:13 +0000 (11:59 +0200)]
scripts/poe-tasks: improvements
Aleš Mrázek [Thu, 12 Sep 2024 20:45:16 +0000 (22:45 +0200)]
doc/_static/config.schema.json: update
Aleš Mrázek [Thu, 12 Sep 2024 13:15:41 +0000 (15:15 +0200)]
ci/images/manager/DockerFile removed
Docker images are handled in a separate repository (knot-resolver-ci), so this file is no longer needed.
Aleš Mrázek [Tue, 10 Sep 2024 14:00:26 +0000 (16:00 +0200)]
scripts/poe-tasks: use id cmd instead of $USER env var in _env.sh
Aleš Mrázek [Tue, 10 Sep 2024 10:02:32 +0000 (12:02 +0200)]
ci: manager: configure meson before every test
Aleš Mrázek [Tue, 10 Sep 2024 09:18:11 +0000 (11:18 +0200)]
python/knot_resolver: constants fixes
Aleš Mrázek [Tue, 10 Sep 2024 09:07:09 +0000 (11:07 +0200)]
python/knot_resolver: use constants.py configured by Meson
Aleš Mrázek [Mon, 9 Sep 2024 21:44:28 +0000 (23:44 +0200)]
scripts/poe-tasks: text and naming improvements
Vladimír Čunát [Mon, 30 Sep 2024 08:07:22 +0000 (10:07 +0200)]
Merge !1618: daemon udp connect: use connected udp communication
Vladimír Čunát [Mon, 30 Sep 2024 07:50:52 +0000 (09:50 +0200)]
meson, NEWS: bump minimal libuv version
Frantisek Tobias [Mon, 30 Sep 2024 06:01:49 +0000 (08:01 +0200)]
daemon udp connect: use connected udp communication
Vladimír Čunát [Wed, 25 Sep 2024 08:49:39 +0000 (10:49 +0200)]
Merge !1617: daemon/session2: avoid incorrectly generated errors
Vladimír Čunát [Wed, 25 Sep 2024 08:39:43 +0000 (10:39 +0200)]
daemon/session2: avoid incorrectly generated errors
The _try_ functions additionally return positive values on success,
and the code around didn't deal with that.
So far there's no evidence that this caused any issues beyond debug-logs:
[prlayr] ... iteration of group ... ended with status 'Unknown error ...
Vladimír Čunát [Wed, 25 Sep 2024 08:38:48 +0000 (10:38 +0200)]
Merge !1609: local-data: generate CNAMEs from DNAMEs
Vladimír Čunát [Wed, 25 Sep 2024 08:27:16 +0000 (10:27 +0200)]
local-data: generate CNAMEs from DNAMEs
As with some other aspects, these DNAMEs do not work exactly as
in a real zone, e.g. they don't cause occlusion.