]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
3 years agomanager: parser validator: support for booleans and more hand specified type coercions
Vasek Sraier [Thu, 15 Apr 2021 11:51:48 +0000 (13:51 +0200)] 
manager: parser validator: support for booleans and more hand specified type coercions

3 years agomanager: parser validator: changed primitive type coercion
Vasek Sraier [Thu, 15 Apr 2021 11:36:07 +0000 (13:36 +0200)] 
manager: parser validator: changed primitive type coercion

int, float -> str    ...   allowed and will happen
str -> int, float    ...   disallowed
float -> int         ...   allowed and will happen
int -> float         ...   allowed and will happen

3 years agoconfig: basic structure
Aleš [Wed, 14 Apr 2021 14:17:08 +0000 (16:17 +0200)] 
config: basic structure
- new sections added
- number of kresd instances can be based on number of system's CPUs

3 years agoconfig: files moved to 'datamodel' subdirectory
Aleš [Tue, 13 Apr 2021 16:51:51 +0000 (18:51 +0200)] 
config: files moved to 'datamodel' subdirectory

3 years agoutils: type parser validator: fixed bugs with exceptions missing format strings
Vasek Sraier [Mon, 12 Apr 2021 09:36:04 +0000 (11:36 +0200)] 
utils: type parser validator: fixed bugs with exceptions missing format strings

3 years agoutils: type parser validator - support for proper Unions with Literals
Vasek Sraier [Mon, 12 Apr 2021 09:27:33 +0000 (11:27 +0200)] 
utils: type parser validator - support for proper Unions with Literals

3 years agoservice manager backend: systemd: added some form of detection that systemd is available
Vasek Sraier [Thu, 8 Apr 2021 15:22:28 +0000 (17:22 +0200)] 
service manager backend: systemd: added some form of detection that systemd is available

3 years agoscripts: vscode configuration
Vasek Sraier [Wed, 7 Apr 2021 20:53:26 +0000 (22:53 +0200)] 
scripts: vscode configuration

3 years agointegration: added test for crash behaviour
Vasek Sraier [Wed, 7 Apr 2021 20:28:19 +0000 (22:28 +0200)] 
integration: added test for crash behaviour

3 years agomanager: preparation for multiple service manager backends
Vasek Sraier [Wed, 7 Apr 2021 19:13:40 +0000 (21:13 +0200)] 
manager: preparation for multiple service manager backends

3 years agoconfig: logging section added
Aleš [Tue, 6 Apr 2021 15:06:55 +0000 (17:06 +0200)] 
config: logging section added

3 years agoconfig: dns64 section added
Aleš [Thu, 1 Apr 2021 14:25:46 +0000 (16:25 +0200)] 
config: dns64 section added

3 years agotypes: fixing type detection
Vasek Sraier [Tue, 30 Mar 2021 18:40:01 +0000 (20:40 +0200)] 
types: fixing type detection

This is just weird. The previous version was working without issues
on pretty much every system except for our integration testing tool.
This seems to fix it. But I still don't understand, how it really works.

3 years agotests: fixed formatting
Vasek Sraier [Tue, 30 Mar 2021 17:52:46 +0000 (19:52 +0200)] 
tests: fixed formatting

3 years agotests: unit test for parsing simple configuration
Vasek Sraier [Tue, 30 Mar 2021 17:51:25 +0000 (19:51 +0200)] 
tests: unit test for parsing simple configuration

3 years agoutils: overloads: type hint fix
Vasek Sraier [Tue, 30 Mar 2021 17:39:41 +0000 (19:39 +0200)] 
utils: overloads: type hint fix

3 years agoutils: generic parser and validator for dictlike objects and python types
Vasek Sraier [Tue, 30 Mar 2021 17:34:04 +0000 (19:34 +0200)] 
utils: generic parser and validator for dictlike objects and python types

3 years agoutils: overloaded functions with optional arguments
Vasek Sraier [Tue, 30 Mar 2021 15:44:05 +0000 (17:44 +0200)] 
utils: overloaded functions with optional arguments

3 years agoutils: simple function overloading helper
Vasek Sraier [Tue, 30 Mar 2021 14:51:57 +0000 (16:51 +0200)] 
utils: simple function overloading helper

3 years agoconf: dataclasses_nested
Aleš [Mon, 29 Mar 2021 17:42:27 +0000 (19:42 +0200)] 
conf: dataclasses_nested
- new datamodel
- JSON data on API
- added configuration file argument
- deps: added pyYAML
- integration: JSON payload in tests

3 years agotooling: pyright strict checking, black reconfiguration for longer lines, automatic...
Vasek Sraier [Fri, 26 Mar 2021 22:38:51 +0000 (23:38 +0100)] 
tooling: pyright strict checking, black reconfiguration for longer lines, automatic import sorting

3 years agoconf: simple files
Aleš [Fri, 26 Mar 2021 15:33:30 +0000 (16:33 +0100)] 
conf: simple files
- configuration in YAM and JSON
- jinja2 template for kresd Lua config

3 years agonaming: KresdManager renamed to KresManager
Aleš [Fri, 26 Mar 2021 14:10:39 +0000 (15:10 +0100)] 
naming: KresdManager renamed to KresManager

3 years agocontainer tooling: poe run now runs in a container, containers no longer include...
Vasek Sraier [Fri, 26 Mar 2021 12:17:39 +0000 (13:17 +0100)] 
container tooling: poe run now runs in a container, containers no longer include the source (we now use bind mount)

3 years agodebugging: created run-debug poe command which starts a container with debugpy server
Vasek Sraier [Wed, 24 Mar 2021 16:15:13 +0000 (17:15 +0100)] 
debugging: created run-debug poe command which starts a container with debugpy server

3 years agointegration testing: using prebuilt containers instead of Dockerfile per test
Vasek Sraier [Wed, 24 Mar 2021 12:13:44 +0000 (13:13 +0100)] 
integration testing: using prebuilt containers instead of Dockerfile per test

3 years agoconf: render Lua config using jinja2
Aleš [Tue, 23 Mar 2021 20:11:05 +0000 (21:11 +0100)] 
conf: render Lua config using jinja2

3 years agoscripts: added unit tests to precommit script
Vasek Sraier [Tue, 23 Mar 2021 18:51:59 +0000 (19:51 +0100)] 
scripts: added unit tests to precommit script

3 years agocompat: module expansion and refactoring - included dataclasses
Vasek Sraier [Tue, 23 Mar 2021 18:50:20 +0000 (19:50 +0100)] 
compat: module expansion and refactoring - included dataclasses

3 years agointegration test runner: detecting podman startup failure
Vasek Sraier [Tue, 23 Mar 2021 16:07:48 +0000 (17:07 +0100)] 
integration test runner: detecting podman startup failure

3 years agopoe: added poe commit command running all tests possible before commiting with git
Vasek Sraier [Tue, 23 Mar 2021 14:41:49 +0000 (15:41 +0100)] 
poe: added poe commit command running all tests possible before commiting with git

3 years agodependencies: jinja2 added
Aleš [Tue, 23 Mar 2021 10:36:37 +0000 (11:36 +0100)] 
dependencies: jinja2 added

3 years agodataclasses_yaml: fixed compound types handling (fixes integration tests broken in...
Vasek Sraier [Mon, 22 Mar 2021 19:54:15 +0000 (20:54 +0100)] 
dataclasses_yaml: fixed compound types handling (fixes integration tests broken in previous commit)

3 years agopoe: added code formatting command
Aleš [Mon, 22 Mar 2021 18:13:54 +0000 (19:13 +0100)] 
poe: added code formatting command

3 years agodataclasses_yaml: added an option to use inheritance instead of a decorator
Vasek Sraier [Mon, 22 Mar 2021 17:50:16 +0000 (18:50 +0100)] 
dataclasses_yaml: added an option to use inheritance instead of a decorator

3 years agodataclasses_yaml: removed left over debug print
Vasek Sraier [Mon, 22 Mar 2021 16:59:19 +0000 (17:59 +0100)] 
dataclasses_yaml: removed left over debug print

3 years agodatamodel: simple configuration
Aleš [Mon, 22 Mar 2021 15:12:47 +0000 (16:12 +0100)] 
datamodel: simple configuration

3 years agodataclasses_yaml: full dataclasses parser
Vasek Sraier [Sat, 20 Mar 2021 11:38:34 +0000 (12:38 +0100)] 
dataclasses_yaml: full dataclasses parser

3 years agomanager: dataclasses strictyaml schema support for Optional type
Vasek Sraier [Fri, 19 Mar 2021 21:13:33 +0000 (22:13 +0100)] 
manager: dataclasses strictyaml schema support for Optional type

3 years agotests: unit tests testing compatibility of our decorator with dataclasses
Vasek Sraier [Fri, 19 Mar 2021 20:41:41 +0000 (21:41 +0100)] 
tests: unit tests testing compatibility of our decorator with dataclasses

3 years agomanager: generating stringyaml schemas from dataclass-like definitions
Vasek Sraier [Fri, 19 Mar 2021 20:25:11 +0000 (21:25 +0100)] 
manager: generating stringyaml schemas from dataclass-like definitions

3 years agopoe: fixed unit test invocation command
Vasek Sraier [Fri, 19 Mar 2021 14:44:26 +0000 (15:44 +0100)] 
poe: fixed unit test invocation command

3 years agomanager: fixed formatting to make black happy
Vasek Sraier [Sat, 13 Mar 2021 11:39:58 +0000 (12:39 +0100)] 
manager: fixed formatting to make black happy

3 years agoREADME.md: updated instructions with tools for integration testing
Vasek Sraier [Sat, 13 Mar 2021 11:38:30 +0000 (12:38 +0100)] 
README.md: updated instructions with tools for integration testing

3 years agointegration tests: testing tool can now be run by `poe integration`
Vasek Sraier [Sat, 13 Mar 2021 11:33:46 +0000 (12:33 +0100)] 
integration tests: testing tool can now be run by `poe integration`

3 years agointegration testing: improved testing tool, testing changes in worker count
Vasek Sraier [Sat, 13 Mar 2021 11:28:52 +0000 (12:28 +0100)] 
integration testing: improved testing tool, testing changes in worker count

3 years agointegration testing tool: improved interactive session
Vasek Sraier [Fri, 12 Mar 2021 16:12:58 +0000 (17:12 +0100)] 
integration testing tool: improved interactive session

3 years agointegration test tool: improved help message
Vasek Sraier [Fri, 12 Mar 2021 14:31:29 +0000 (15:31 +0100)] 
integration test tool: improved help message

3 years agobug fixes in order to make the basic startup integration test pass
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

3 years agomanager: code style fixes
Vasek Sraier [Tue, 9 Mar 2021 12:26:58 +0000 (13:26 +0100)] 
manager: code style fixes

3 years agotest: basic startup test and related fixes (however still failing)
Vasek Sraier [Tue, 9 Mar 2021 12:23:01 +0000 (13:23 +0100)] 
test: basic startup test and related fixes (however still failing)

3 years agointegration: bind mounting repository and the test
Vasek Sraier [Tue, 9 Mar 2021 10:03:07 +0000 (11:03 +0100)] 
integration: bind mounting repository and the test

3 years agointegration tests: implemented basic testing framework with Podman
Vasek Sraier [Fri, 5 Mar 2021 17:23:32 +0000 (18:23 +0100)] 
integration tests: implemented basic testing framework with Podman

3 years agointegration testing: initial Podman API code
Vasek Sraier [Thu, 4 Mar 2021 16:11:21 +0000 (17:11 +0100)] 
integration testing: initial Podman API code

3 years agoci: added systemd to devenv container, enabled docker image build job
Vasek Sraier [Wed, 3 Mar 2021 20:16:37 +0000 (21:16 +0100)] 
ci: added systemd to devenv container, enabled docker image build job

3 years agoCI: container with pydbus dependencies + small README update
Vasek Sraier [Thu, 25 Feb 2021 16:34:36 +0000 (17:34 +0100)] 
CI: container with pydbus dependencies + small README update

3 years agosystemd integration using pydbus
Vasek Sraier [Wed, 24 Feb 2021 22:00:49 +0000 (23:00 +0100)] 
systemd integration using pydbus

3 years agodependencies: removed dbus-python, because it breaks CI and it's not final that we...
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

3 years agoCI: configure poetry to use pyenv
Vasek Sraier [Mon, 22 Feb 2021 08:54:22 +0000 (09:54 +0100)] 
CI: configure poetry to use pyenv

3 years agoCI container: fixed poetry
Vasek Sraier [Mon, 22 Feb 2021 07:40:00 +0000 (08:40 +0100)] 
CI container: fixed poetry

3 years agoCI: fixed base container config
Vasek Sraier [Mon, 22 Feb 2021 07:35:01 +0000 (08:35 +0100)] 
CI: fixed base container config

3 years agoCI containers: README and naming
Vasek Sraier [Sun, 21 Feb 2021 20:56:52 +0000 (21:56 +0100)] 
CI containers: README and naming

3 years agobasic foundation of inner APIs
Vasek Sraier [Sun, 21 Feb 2021 16:48:35 +0000 (17:48 +0100)] 
basic foundation of inner APIs

3 years agoremoved dbus-next dependency
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.

3 years agoupdated README.md
Vasek Sraier [Wed, 10 Feb 2021 22:56:13 +0000 (23:56 +0100)] 
updated README.md

3 years agoci: docker image setup
Vasek Sraier [Tue, 9 Feb 2021 21:08:12 +0000 (22:08 +0100)] 
ci: docker image setup

3 years agoci: increased timeout
Vasek Sraier [Tue, 9 Feb 2021 12:58:13 +0000 (13:58 +0100)] 
ci: increased timeout

3 years agoupdated README.md with minimal setup, configured CI for linting
Vasek Sraier [Tue, 9 Feb 2021 12:52:20 +0000 (13:52 +0100)] 
updated README.md with minimal setup, configured CI for linting

3 years agopyenv: multiple versions configured at the same time does not work, leaving 3.6.12...
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

3 years agoREADME.md: updated note about running code checks
Vasek Sraier [Tue, 9 Feb 2021 10:13:47 +0000 (11:13 +0100)] 
README.md: updated note about running code checks

3 years agodependencies: added strictyaml that we will need
Vasek Sraier [Tue, 9 Feb 2021 10:12:15 +0000 (11:12 +0100)] 
dependencies: added strictyaml that we will need

3 years agoREADME.md: correction of claims about type checkers
Vasek Sraier [Sun, 7 Feb 2021 00:06:18 +0000 (01:06 +0100)] 
README.md: correction of claims about type checkers

3 years agotox: added python 3.9.1 to the list of tested versions
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

3 years agotox config, README update, listening on Unix socket, added black for code formatting
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

3 years agoproject skeleton using Poetry and PoeThePoet
Vasek Sraier [Fri, 5 Feb 2021 22:59:06 +0000 (23:59 +0100)] 
project skeleton using Poetry and PoeThePoet

3 years agoInitial commit
Ladislav Lhotka [Thu, 17 Dec 2020 09:05:28 +0000 (10:05 +0100)] 
Initial commit

3 years agoMerge !1283: ci: fix ambiguous tag-sets
Vladimír Čunát [Thu, 7 Apr 2022 08:35:35 +0000 (10:35 +0200)] 
Merge !1283: ci: fix ambiguous tag-sets

3 years agoci: 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).

3 years agoMerge !1282: ci/pkgtest: fix issues with sphinx
Vladimír Čunát [Wed, 6 Apr 2022 08:49:22 +0000 (10:49 +0200)] 
Merge !1282: ci/pkgtest: fix issues with sphinx

3 years agoci/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`).

3 years agoMerge !1276: xdp: make it work also with libknot 3.1
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

3 years agoxdp nit: utilize freeing API added in libknot 3.1
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.

3 years agoxdp: make it work also with libknot 3.1
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.

3 years agoMerge !1281: pkg: update changelogs
Vladimír Čunát [Mon, 4 Apr 2022 08:27:16 +0000 (10:27 +0200)] 
Merge !1281: pkg: update changelogs

3 years agopkg: 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

3 years agorpm: sync from Fedora
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.

3 years agoMerge !1271: ci/images: add docs obs-knot-resolver-es11k1/deployments/2065 obs-knot-resolver-es11k1/deployments/2067 obs-knot-resolver-es11k1/deployments/2069 obs-knot-resolver-es11k1/deployments/2070 obs-knot-resolver-es11k1/deployments/2071 obs-knot-resolver-es11k1/deployments/2072 obs-knot-resolver-es11k1/deployments/2073 obs-knot-resolver-es11k1/deployments/2074
Vladimír Čunát [Mon, 21 Mar 2022 10:45:23 +0000 (11:45 +0100)] 
Merge !1271: ci/images: add docs

3 years agoci/images: add debian-11-coverity description
Oto Šťáva [Mon, 21 Mar 2022 05:55:06 +0000 (06:55 +0100)] 
ci/images: add debian-11-coverity description

3 years agoci/images: add image description
Tomas Krizek [Wed, 9 Mar 2022 12:07:35 +0000 (13:07 +0100)] 
ci/images: add image description

3 years agoci/images: ensure base image is updated
Tomas Krizek [Wed, 9 Mar 2022 11:59:32 +0000 (12:59 +0100)] 
ci/images: ensure base image is updated

3 years agoMerge !1275: modules/dns64: fix incorrect packet writes for cached packets
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

3 years agomodules/dns64: fix incorrect packet writes for cached packets
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()

3 years agoMerge branch 'release-5-5-0' into 'master' obs-knot-resolver-8xyvhu/deployments/2058 obs-knot-resolver-es11k1/deployments/2060 obs-knot-resolver-es11k1/deployments/2061 obs-knot-resolver-es11k1/deployments/2062 obs-knot-resolver-es11k1/deployments/2063 obs-knot-resolver-es11k1/deployments/2064 obs-knot-resolver-kv62s6/deployments/2057 v5.5.0
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

3 years agoAUTHORS: duplicate alias removed
Aleš Mrázek [Mon, 14 Mar 2022 21:18:58 +0000 (22:18 +0100)] 
AUTHORS: duplicate alias removed

3 years agorelease 5.5.0
Aleš [Mon, 14 Mar 2022 14:22:13 +0000 (15:22 +0100)] 
release 5.5.0

3 years agoMerge !1273: Documentation nits (policy, predict)
Vladimír Čunát [Tue, 15 Mar 2022 06:53:47 +0000 (07:53 +0100)] 
Merge !1273: Documentation nits (policy, predict)

3 years agopredict docs: be more explicit about recommended use
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/

3 years agopolicy docs: explain non-ASCII names
Vladimír Čunát [Mon, 14 Mar 2022 14:19:45 +0000 (15:19 +0100)] 
policy docs: explain non-ASCII names

3 years agoMerge branch 'selection' into 'master' obs-knot-resolver-es11k1/deployments/2056
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

3 years agoRevert "daemon/worker: add task timeouts for upstream TCP connections"
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.