]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Aleš Mrázek [Fri, 4 Aug 2023 13:42:15 +0000 (15:42 +0200)]
manager: better error handling for rundir
Vladimír Čunát [Sun, 13 Aug 2023 15:34:46 +0000 (17:34 +0200)]
docs: fix padding descriptions
Mentioning just answers is misleading. Padding is very important
for queries as well; for us that applies during forwarding over TLS.
Also describe /tls/auto_discovery as experimental in the
configuration schema. It's a rather dead experiment from long ago.
I hope it can't be confused with more recent things like
https://datatracker.ietf.org/doc/draft-ietf-dprive-unilateral-probing/
Vladimír Čunát [Thu, 17 Aug 2023 14:00:11 +0000 (16:00 +0200)]
Merge !1443: hints: merge RRs instead of replacing them
Closes #808
Vladimír Čunát [Fri, 4 Aug 2023 17:22:23 +0000 (19:22 +0200)]
hints: merge RRs instead of replacing them
We had this behavior in 5.x.
Lua level: affects hints.set() and hints['name'] and hints.add_hosts()
YAML level: /local-data/addresses and /local-data/addresses-files
I considered various approaches when writing this. This one won because
in /etc/hosts like files a name can be repeated with arbitrary lines
in between, and users can reasonably expect it to collect all addresses.
Aleš Mrázek [Mon, 14 Aug 2023 09:15:59 +0000 (11:15 +0200)]
Merge branch 'rm-poetry-lock' into '6.0'
manager/poetry.lock: remove
See merge request knot/knot-resolver!1445
Aleš Mrázek [Mon, 14 Aug 2023 08:05:39 +0000 (10:05 +0200)]
lint: flake8: satisfy newer version
Oto Šťáva [Fri, 11 Aug 2023 07:17:57 +0000 (09:17 +0200)]
manager/poetry.lock: remove
Lockfiles are generally encouraged to be committed into VCS to ensure
reproducible builds on all machines. Our situation is slightly
different - we are more interested in supporting a wide range of setups
on a wide range of systems.
Our `poetry.lock` also contained some outdated library versions that had
CVEs reported on them, and GitHub did not like that, so this
incidentally also solves that problem for us. Since the lock file was
only used during development, this will not affect end users in any way
(runtime dependencies are managed by each distro's package manager).
Vladimír Čunát [Sun, 13 Aug 2023 16:20:54 +0000 (18:20 +0200)]
Merge !1427: manager: datamodel: new type for address renumbering
Aleš Mrázek [Tue, 8 Aug 2023 08:21:56 +0000 (10:21 +0200)]
tests: datamodel: types: 'IPAddressEM' validation
Aleš Mrázek [Tue, 18 Jul 2023 09:31:33 +0000 (11:31 +0200)]
manager: datamodel: custom type for IP address with '!' suffix
Vladimír Čunát [Tue, 8 Aug 2023 14:09:26 +0000 (16:09 +0200)]
manager datamodel template: fix a tiny typo
Vladimír Čunát [Tue, 8 Aug 2023 08:19:23 +0000 (10:19 +0200)]
manager datamodel template: fix ttl in /local-data/{records,rpz}
Record TTL is always meant in seconds by default.
More precise resolution does not exist.
Vladimír Čunát [Tue, 8 Aug 2023 08:04:24 +0000 (10:04 +0200)]
Merge !1436: manager: datamodel: templates: predict: fix syntax
Vladimír Čunát [Wed, 2 Aug 2023 18:58:29 +0000 (20:58 +0200)]
manager: datamodel: templates: predict: fix syntax
Vladimír Čunát [Tue, 8 Aug 2023 07:01:39 +0000 (09:01 +0200)]
Merge !1425: Declarative config docs for version 6
Aleš Mrázek [Thu, 20 Jul 2023 13:05:36 +0000 (15:05 +0200)]
docs: unnecessary files removed
Aleš Mrázek [Thu, 20 Jul 2023 12:49:56 +0000 (14:49 +0200)]
docs: references fixes
Aleš Mrázek [Wed, 19 Jul 2023 14:18:23 +0000 (16:18 +0200)]
docs: generate documentation from poetry
Aleš Mrázek [Thu, 13 Jul 2023 13:32:37 +0000 (15:32 +0200)]
docs: config: new declarative policy
Aleš Mrázek [Wed, 12 Jul 2023 14:01:40 +0000 (16:01 +0200)]
docs: config: network subsection
Aleš Mrázek [Wed, 12 Jul 2023 13:36:34 +0000 (15:36 +0200)]
docs: config: yaml for experimental features
Aleš Mrázek [Tue, 11 Jul 2023 14:05:38 +0000 (16:05 +0200)]
docs: config: performance subsection
Aleš Mrázek [Mon, 10 Jul 2023 14:13:16 +0000 (16:13 +0200)]
docs: config: declarative logging/monitoring
Aleš Mrázek [Fri, 7 Jul 2023 14:07:53 +0000 (16:07 +0200)]
docs: config: yaml for views
Aleš Mrázek [Tue, 4 Jul 2023 09:00:01 +0000 (11:00 +0200)]
docs: config: lua scripting
Aleš Mrázek [Mon, 3 Jul 2023 15:23:26 +0000 (17:23 +0200)]
docs: config: yaml for cache prefill
Aleš Mrázek [Mon, 3 Jul 2023 15:03:44 +0000 (17:03 +0200)]
docs: config: yaml for cache
Aleš Mrázek [Mon, 3 Jul 2023 14:04:21 +0000 (16:04 +0200)]
docs: config: yaml for dnssec
Aleš Mrázek [Wed, 28 Jun 2023 13:32:27 +0000 (15:32 +0200)]
docs: config: yaml for dns64
Aleš Mrázek [Tue, 27 Jun 2023 09:44:01 +0000 (11:44 +0200)]
docs: kresctl: --no-strict option for validations
Aleš Mrázek [Tue, 27 Jun 2023 08:39:51 +0000 (10:39 +0200)]
manager: client: strict validation off by default
Aleš Mrázek [Tue, 27 Jun 2023 08:20:05 +0000 (10:20 +0200)]
docs: config: overview
Vladimír Čunát [Sun, 6 Aug 2023 07:26:58 +0000 (09:26 +0200)]
Merge branch 'master' into 6.0
Vladimír Čunát [Sun, 6 Aug 2023 07:24:46 +0000 (09:24 +0200)]
Merge !1441: .readthedocs.yaml: migrate configuration from web app
Aleš Mrázek [Fri, 4 Aug 2023 13:53:10 +0000 (15:53 +0200)]
Merge branch 'kresctl-stderr' into '6.0'
manager: cli: print error messages to sys.stderr
See merge request knot/knot-resolver!1437
Vladimír Čunát [Thu, 3 Aug 2023 09:30:43 +0000 (11:30 +0200)]
manager: cli: print error messages to sys.stderr
This is important for cases like
kresctl convert file1 > file2
I grepped for '\<print(' and converted all error states (I think).
Oto Šťáva [Fri, 4 Aug 2023 11:32:56 +0000 (13:32 +0200)]
.readthedocs.yaml: migrate configuration from web app
Read the Docs is deprecating their web configuration. This commit
should migrate said configuration to the newly recommended YAML format.
Vladimír Čunát [Thu, 3 Aug 2023 15:31:11 +0000 (17:31 +0200)]
lib/rules: when forwarding, avoid resolving NS's name
With "authoritative forwarding" it could happen that NS selection
decided to resolve the virtual ns.invalid name of the NS to get
either A or AAAA (if either was missing in the forwarding rule).
Aleš Mrázek [Thu, 3 Aug 2023 14:27:31 +0000 (16:27 +0200)]
Merge branch 'manager-datamodel-template' into '6.0'
templates: dnssec moved before forward section
See merge request knot/knot-resolver!1438
Aleš Mrázek [Thu, 3 Aug 2023 13:57:34 +0000 (15:57 +0200)]
datamodel: unused templates deleted
Aleš Mrázek [Thu, 3 Aug 2023 11:54:49 +0000 (13:54 +0200)]
templates: dnssec moved before forward section
Commented sections have also been removed.
Vladimír Čunát [Thu, 3 Aug 2023 08:34:19 +0000 (10:34 +0200)]
Merge !1424: doc/gettingstarted-install: adapt to 6.x package sources
Vladimír Čunát [Wed, 12 Jul 2023 13:30:44 +0000 (15:30 +0200)]
doc/gettingstarted-install: adapt to 6.x package sources
Vladimír Čunát [Thu, 3 Aug 2023 08:16:29 +0000 (10:16 +0200)]
Merge !1435: datamodel: local-data: allow list of addresses
Aleš Mrázek [Wed, 2 Aug 2023 10:36:37 +0000 (12:36 +0200)]
datamodel: local-data: allow list of addresses
Aleš Mrázek [Wed, 2 Aug 2023 08:55:30 +0000 (10:55 +0200)]
Merge branch 'manager-datamodel-improvements2' into '6.0'
manager: changes/improvements in configuration
See merge request knot/knot-resolver!1434
Aleš Mrázek [Tue, 1 Aug 2023 14:12:53 +0000 (16:12 +0200)]
datamodel: list only for plural names
Aleš Mrázek [Tue, 1 Aug 2023 08:47:21 +0000 (10:47 +0200)]
datamodel: forward: list for subtree allowed
Vladimír Čunát [Tue, 1 Aug 2023 07:21:37 +0000 (09:21 +0200)]
Merge !1433: datamodel: prediction moved to cache section
Aleš Mrázek [Fri, 28 Jul 2023 14:01:18 +0000 (16:01 +0200)]
datamodel: templates: separator for NSID removed
Aleš Mrázek [Fri, 28 Jul 2023 13:57:19 +0000 (15:57 +0200)]
manager: datamodel: prediction moved to cache
Aleš Mrázek [Thu, 27 Jul 2023 14:32:11 +0000 (16:32 +0200)]
Merge branch 'manager-validation-errors-improvements' into '6.0'
manager: configuration validation errors improvements
See merge request knot/knot-resolver!1432
Aleš Mrázek [Thu, 27 Jul 2023 11:51:27 +0000 (13:51 +0200)]
manager: better logging for config validation
Aleš Mrázek [Tue, 25 Jul 2023 08:20:16 +0000 (10:20 +0200)]
replace '_' with '-' in validation error path
This is not the best way to do it, but it is the easiest.
Aleš Mrázek [Mon, 24 Jul 2023 21:36:19 +0000 (23:36 +0200)]
datamodel: types: verbose errors for paths
Aleš Mrázek [Tue, 25 Jul 2023 11:03:37 +0000 (13:03 +0200)]
Merge branch 'manager-scripts-run' into '6.0'
manager/scripts/run: create runtime directories
See merge request knot/knot-resolver!1431
Aleš Mrázek [Mon, 24 Jul 2023 21:24:29 +0000 (23:24 +0200)]
manager/scripts/run: create runtime directories
Vladimír Čunát [Tue, 25 Jul 2023 08:02:17 +0000 (10:02 +0200)]
Merge !1430: manager: update mentions of Python versions
Oto Šťáva [Mon, 24 Jul 2023 08:15:20 +0000 (10:15 +0200)]
manager: ignore .egg-info directory
Oto Šťáva [Mon, 24 Jul 2023 08:14:57 +0000 (10:14 +0200)]
manager: add new Python versions
Oto Šťáva [Mon, 24 Jul 2023 07:40:57 +0000 (09:40 +0200)]
manager: replace mentions of Python 3.6 with 3.7
Support for Python <3.7 has been dropped - mentions of 3.6 are therefore
outdated.
Vladimír Čunát [Sun, 23 Jul 2023 13:50:59 +0000 (15:50 +0200)]
Merge !1428: manager: config file can be also in JSON
Aleš Mrázek [Tue, 18 Jul 2023 11:44:15 +0000 (13:44 +0200)]
manager: config file can be also in JSON
First try parsing as JSON, then as YAML.
Vladimír Čunát [Sun, 23 Jul 2023 09:10:14 +0000 (11:10 +0200)]
Merge !1426: manager: use .yaml suffix for config files
Vladimír Čunát [Sun, 23 Jul 2023 08:57:23 +0000 (10:57 +0200)]
doc: .yml -> .yaml
At least in parts where it wouldn't conflict with other doc WIP.
Aleš Mrázek [Tue, 18 Jul 2023 08:17:03 +0000 (10:17 +0200)]
manager: use .yaml suffix for config files
Vladimír Čunát [Wed, 19 Jul 2023 16:48:54 +0000 (18:48 +0200)]
Merge !1429: datamodel: local-data: render ttl and nodata
Aleš Mrázek [Wed, 19 Jul 2023 15:30:57 +0000 (17:30 +0200)]
datamodel: local-data: render ttl and nodata
Vladimír Čunát [Thu, 13 Jul 2023 08:38:42 +0000 (10:38 +0200)]
Merge !1291: manager: datamodel: validate or escape strings in datamodel
Aleš Mrázek [Fri, 23 Jun 2023 10:02:08 +0000 (12:02 +0200)]
manager: datamodel: types: multiline method for EscapedStr
It escapes double square brackets.
Aleš Mrázek [Tue, 20 Jun 2023 13:16:12 +0000 (15:16 +0200)]
manager: datamodel: types: EscapedStr32B type
Aleš Mrázek [Tue, 20 Jun 2023 12:52:54 +0000 (14:52 +0200)]
manager: datamodel: 'str' type removed from schemas
Aleš Mrázek [Tue, 20 Jun 2023 12:30:18 +0000 (14:30 +0200)]
manager: datamodel: types: EscapedStr type
Aleš Mrázek [Tue, 20 Jun 2023 10:11:56 +0000 (12:11 +0200)]
manager: datamodel: types: StringLengthBase type
Aleš Mrázek [Tue, 20 Jun 2023 09:20:15 +0000 (11:20 +0200)]
manager: datamodel: base types refactored
Aleš Mrázek [Tue, 20 Jun 2023 08:37:50 +0000 (10:37 +0200)]
manager: datamodel: types: PinSha256 custom type
Aleš Mrázek [Tue, 13 Jun 2023 15:26:27 +0000 (17:26 +0200)]
manager: tests: check that there is no 'str' in datamodel
Aleš Mrázek [Mon, 12 Jun 2023 10:06:01 +0000 (12:06 +0200)]
manager: datamodel: types: hyphen added to IDPattern
Vladimír Čunát [Thu, 13 Jul 2023 06:53:05 +0000 (08:53 +0200)]
Merge !1421: doc/config-policy-new: add this section
Vladimír Čunát [Fri, 7 Jul 2023 14:30:22 +0000 (16:30 +0200)]
doc/config-policy-new: add this section
This includes some reformulations and adjustments from ostava.
Vladimír Čunát [Wed, 12 Jul 2023 14:24:44 +0000 (16:24 +0200)]
lib/rules kr_view_insert_action(): fix subnet truncation
The rule DB keys were truncated by one byte.
Unfortunately that often kept them behaving OK so it went unnoticed;
but in particular any /0 views got ignored as a result.
Vladimír Čunát [Wed, 12 Jul 2023 08:35:25 +0000 (10:35 +0200)]
Merge !1423: distro/pkg/rpm: require setuptools on suse
Jakub Ružička [Tue, 11 Jul 2023 10:43:24 +0000 (12:43 +0200)]
distro/pkg/rpm: require setuptools on suse
Otherwise:
Traceback (most recent call last):
File "/builddir/build/BUILD/knot-resolver-6.0.1.dev90+5003e3/manager/setup.py", line 2, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Vladimír Čunát [Tue, 11 Jul 2023 08:54:13 +0000 (10:54 +0200)]
daemon/http nit: fix a warning
I was careless with the merge of master -> 6.0
Vladimír Čunát [Tue, 11 Jul 2023 08:52:10 +0000 (10:52 +0200)]
fixup! Merge branch 'master' into 6.0
Vladimír Čunát [Tue, 11 Jul 2023 08:17:57 +0000 (10:17 +0200)]
Merge branch 'master' into 6.0
Vladimír Čunát [Tue, 11 Jul 2023 08:13:26 +0000 (10:13 +0200)]
Merge !1422: avoid knot_pkt_default_padding_size()
Vladimír Čunát [Tue, 11 Jul 2023 08:08:14 +0000 (10:08 +0200)]
Merge !1418: avoid 5.x style config and systemd units, by default
Vladimír Čunát [Wed, 28 Jun 2023 08:17:41 +0000 (10:17 +0200)]
deprecate legacy systemd units
- separate meson option, disabled by default
- deb,rpm: don't install these legacy units
- deb,rpm: use the new knot-resolver.service on all the places
Vladimír Čunát [Wed, 28 Jun 2023 07:51:06 +0000 (09:51 +0200)]
kresd.conf: don't install by default, drop from packages
Installing a legacy lua config by default would be confusing.
Vladimír Čunát [Wed, 28 Jun 2023 15:48:51 +0000 (17:48 +0200)]
avoid knot_pkt_default_padding_size()
The reserved size in packet is a messy thing, broken by
https://gitlab.nic.cz/knot/knot-dns/-/commit/
ded5fbf01d00a875f141
Fortunately this function is trivial, so we can inline what we need.
It gets complicated by an earlier typo fix, though.
Vladimír Čunát [Wed, 28 Jun 2023 16:24:00 +0000 (18:24 +0200)]
Merge !1419: manager: datamodel: missing options for dns64
Aleš Mrázek [Wed, 28 Jun 2023 13:35:38 +0000 (15:35 +0200)]
manager: datamodel: missing options for dns64
Vladimír Čunát [Wed, 28 Jun 2023 07:38:47 +0000 (09:38 +0200)]
Merge !1409: kresc: remove this client
Vladimír Čunát [Tue, 13 Jun 2023 07:09:51 +0000 (09:09 +0200)]
kresc: remove this client
It's never gone beyond experiment/alpha and now we have kresctl
which should be much better. Keeping installed bin/kresc could
confuse users.
Vladimír Čunát [Wed, 28 Jun 2023 07:31:39 +0000 (09:31 +0200)]
Merge !1417: distro/pkg/deb: make manager package arch specific
Jakub Ružička [Mon, 26 Jun 2023 14:06:26 +0000 (16:06 +0200)]
distro/pkg/deb: make manager package arch specific
The supervisor plugin is compiled and arch specific.
Vladimír Čunát [Mon, 26 Jun 2023 10:17:18 +0000 (12:17 +0200)]
Merge !1324: Protocol layers
Oto Šťáva [Fri, 23 Jun 2023 10:20:35 +0000 (12:20 +0200)]
Merge remote-tracking branch 'origin/6.0' into daemon-refactor-2
Vladimír Čunát [Fri, 23 Jun 2023 10:11:55 +0000 (12:11 +0200)]
Merge !1402: packaging changes and improvements for v6