]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
22 months ago.gitlab-ci: fix Pages publishing docs-develop-docs-1sm95q/deployments/2690
Oto Šťáva [Tue, 12 Sep 2023 12:27:09 +0000 (14:27 +0200)] 
.gitlab-ci: fix Pages publishing

This commit renames `docs:public` to `pages` as required by GitLab CI to
recognize Pages jobs correctly. It also adds the `public` directory into
`artifacts:paths`.

22 months agoMerge !1446: /local-data/subtrees/ improvements docs-develop-6-0-mvwoqi/deployments/2685
Vladimír Čunát [Tue, 12 Sep 2023 10:55:42 +0000 (12:55 +0200)] 
Merge !1446: /local-data/subtrees/ improvements

22 months agodoc/config-local-data: improve description of tags a bit docs-develop-subt-quv94y/deployments/2684
Vladimír Čunát [Mon, 4 Sep 2023 07:40:52 +0000 (09:40 +0200)] 
doc/config-local-data: improve description of tags a bit

22 months agolib/rules: small bugfix for views
Vladimír Čunát [Fri, 1 Sep 2023 09:40:44 +0000 (11:40 +0200)] 
lib/rules: small bugfix for views

key.len was shorter by (the current) rsp_len, which was confusing/wrong.

Discovered by triggering:
 assertion "i < key.len && i < key_leq.len" failed in kr_view_select_action

22 months agodatamodel: local_data_records(): swap argument order
Vladimír Čunát [Wed, 30 Aug 2023 09:43:00 +0000 (11:43 +0200)] 
datamodel: local_data_records(): swap argument order

Everywhere else we order `nodata` parameter before `ttl`.
Let's make it consistent to reduce potential for confusion.

22 months agodoc/config-local-data: advanced rules update
Aleš Mrázek [Mon, 28 Aug 2023 11:31:32 +0000 (13:31 +0200)] 
doc/config-local-data: advanced rules update

22 months agodatamodel: local-data/rules: 'records' added
Aleš Mrázek [Mon, 28 Aug 2023 11:16:03 +0000 (13:16 +0200)] 
datamodel: local-data/rules: 'records' added

22 months agodatamodel: local-data/rules: allow more combinations
Vladimír Čunát [Sat, 26 Aug 2023 16:31:47 +0000 (18:31 +0200)] 
datamodel: local-data/rules: allow more combinations

It's perhaps the main use case for 'redirect' to also define address(es)
for the apex.  An empty zone with address(es) in apex also makes sense.

22 months agodatamodel: local-data/rules: additional config
Aleš Mrázek [Fri, 25 Aug 2023 13:59:38 +0000 (15:59 +0200)] 
datamodel: local-data/rules: additional config

ttl, nodata and tags are configurable for hostname and address(es) pairs

22 months agodatamodel: /local-data/addresses*: use new C API
Vladimír Čunát [Thu, 24 Aug 2023 08:08:42 +0000 (10:08 +0200)] 
datamodel: /local-data/addresses*: use new C API

Direct usage without the hints module seems better.

22 months agodatamodel: /local-data: refactor policy_get_tagset macro
Vladimír Čunát [Thu, 24 Aug 2023 07:55:56 +0000 (09:55 +0200)] 
datamodel: /local-data: refactor policy_get_tagset macro

22 months agodatamodel: /local-data: refactor ttl
Vladimír Čunát [Thu, 24 Aug 2023 07:38:01 +0000 (09:38 +0200)] 
datamodel: /local-data: refactor ttl

22 months agomodules/hints,lib/rules: rework TTL defaults
Vladimír Čunát [Wed, 23 Aug 2023 09:58:39 +0000 (11:58 +0200)] 
modules/hints,lib/rules: rework TTL defaults

It was a bit wide, with 5s and 3h, and distinction between
these two "groups" of rules was a bit random wrt. TTL choice.
Now: 5m for user's rules and 1h for RFC-default rules.

I found it relatively hard to choose defaults, but at least for
user-supplied rules it's trivial to configure a different default.

22 months agodatamodel: /local-data/subtrees/*: drop parts that are not implemented
Vladimír Čunát [Sat, 12 Aug 2023 11:13:59 +0000 (13:13 +0200)] 
datamodel: /local-data/subtrees/*: drop parts that are not implemented

Otherwise we'd let confusing things pass all validations.

22 months agodatamodel: /local-data/subtrees: implement redirect and ttl
Vladimír Čunát [Tue, 8 Aug 2023 14:05:51 +0000 (16:05 +0200)] 
datamodel: /local-data/subtrees: implement redirect and ttl

Also refactor the C APIs, causing most of the diffs.

22 months agoscripts/gen-cdefs.sh: allow generating variables
Vladimír Čunát [Tue, 8 Aug 2023 10:13:22 +0000 (12:13 +0200)] 
scripts/gen-cdefs.sh: allow generating variables

Sometimes it is useful to access a global variable from lua.

22 months agohints: expose as C kr_rule_local_*()
Vladimír Čunát [Fri, 18 Aug 2023 17:13:12 +0000 (19:13 +0200)] 
hints: expose as C kr_rule_local_*()

At least the normal non-root hints.
We needed extended API for this functionality, and C API is simpler
for this, thanks to LuaJIT FFI.

However, this required moving code from the separate module.
The moved code is not changed in any way in this commit.
I considered it bad to keep such core code outside the main daemon+lib,
as it's not big.  Now LuaJIT FFI forced me to clean this up.

22 months agohints: tweak internal APIs a bit
Vladimír Čunát [Thu, 17 Aug 2023 15:11:40 +0000 (17:11 +0200)] 
hints: tweak internal APIs a bit

23 months agoMerge !1451: modeling: empty lists are not allowed docs-develop-6-0-mvwoqi/deployments/2669 docs-develop-docs-6zc2wj/deployments/2680
Vladimír Čunát [Mon, 4 Sep 2023 08:58:55 +0000 (10:58 +0200)] 
Merge !1451: modeling: empty lists are not allowed

23 months agodatamodel: types: ListOrItem: empty list not allowed
Aleš Mrázek [Mon, 28 Aug 2023 13:17:40 +0000 (15:17 +0200)] 
datamodel: types: ListOrItem: empty list not allowed

23 months agomodeling/base_schema.py: empty lists not allowed
Aleš Mrázek [Mon, 28 Aug 2023 13:11:07 +0000 (15:11 +0200)] 
modeling/base_schema.py: empty lists not allowed

23 months agoMerge !1453: Bump version to 6.0.2 docs-develop-6-0-mvwoqi/deployments/2659 docs-release-v6-0-daskak/deployments/2661 v6.0.2
Vladimír Čunát [Wed, 30 Aug 2023 15:02:38 +0000 (17:02 +0200)] 
Merge !1453: Bump version to 6.0.2

23 months agoscripts/make-archive.sh: more precise tag detection docs-develop-upda-signxn/deployments/2658
Vladimír Čunát [Wed, 30 Aug 2023 14:36:29 +0000 (16:36 +0200)] 
scripts/make-archive.sh: more precise tag detection

This works better in the current case when master branch with the most
recent 5.7.0 tag got merged into the 6.0 branch.  In that case we do not
want the most recent *generally* reachable tag, and git-describe has
probably good logic for this (using first-parent jumps I guess).

23 months agoBump version to 6.0.2 docs-develop-upda-signxn/deployments/2657
Jakub Ružička [Wed, 30 Aug 2023 14:26:56 +0000 (16:26 +0200)] 
Bump version to 6.0.2

23 months agoMerge !1452: .gitlab-ci.yml: use environments for docs versioning docs-develop-6-0-mvwoqi/deployments/2655
Vladimír Čunát [Wed, 30 Aug 2023 09:51:16 +0000 (11:51 +0200)] 
Merge !1452: .gitlab-ci.yml: use environments for docs versioning

23 months ago.gitlab-ci.yml: use environments for documentation versioning docs-develop-doc-e7z1sj/deployments/2653
Oto Šťáva [Tue, 29 Aug 2023 08:38:13 +0000 (10:38 +0200)] 
.gitlab-ci.yml: use environments for documentation versioning

This leverages Environments on GitLab to expose different versions of
Knot Resolver docs. The `docs:build` job builds the documentation and
exposes it via job artifacts. Then `docs:develop` (for branches) and
`docs:release` (for tags) take these artifacts and expose them via an
Environment link (an example of this in action may be seen at
[https://gitlab.nic.cz/ostava/knot-resolver/-/environments]).

There is also an optional, manually runnable `docs:public` job, which,
when run, propagates the documentation to the main GitLab Pages of the
project (e.g. [https://knot.pages.nic.cz/knot-resolver]) - this will
probably be mostly used for the latest release, although this setup
pretty much allows us to swap it for whatever version we like at any
time.

23 months agoMerge !1447: manager: run kresctl from the executor's working directory
Vladimír Čunát [Thu, 24 Aug 2023 08:18:56 +0000 (10:18 +0200)] 
Merge !1447: manager: run kresctl from the executor's working directory

23 months agomanager/poe: allow kresctl to be run under Python <3.8
Oto Šťáva [Thu, 24 Aug 2023 06:21:40 +0000 (08:21 +0200)] 
manager/poe: allow kresctl to be run under Python <3.8

23 months agomanager/poe: allow python3.7 when executed from manager dir
Aleš Mrázek [Wed, 23 Aug 2023 14:24:20 +0000 (16:24 +0200)] 
manager/poe: allow python3.7 when executed from manager dir

- pyproject.tom: poethepoet for python3.7

23 months agoci/images/manager: ensure usage of Python 3.7
Oto Šťáva [Tue, 22 Aug 2023 12:47:23 +0000 (14:47 +0200)] 
ci/images/manager: ensure usage of Python 3.7

23 months agomanager: run kresctl from the executor's working directory
Oto Šťáva [Mon, 21 Aug 2023 07:44:10 +0000 (09:44 +0200)] 
manager: run kresctl from the executor's working directory

This updates `poethepoet` to version `^0.22.0`
(https://github.com/nat-n/poethepoet/releases/tag/v.0.22.0), which
allows tasks to have a working directory different from the project
path.

This breaks the `poe` script on Python `<3.8`, but discussions took
place on Slack where we came to the conclusion that this is fine. The
script is meant for developers only and does not affect end users on
systems that do not provide newer Python versions.

23 months agolib/rules: tiny bugfix for (most) subtree rules
Vladimír Čunát [Tue, 8 Aug 2023 14:26:12 +0000 (16:26 +0200)] 
lib/rules: tiny bugfix for (most) subtree rules

23 months agoMerge tag 'v5.7.0' into 6.0
Vladimír Čunát [Tue, 22 Aug 2023 11:41:18 +0000 (13:41 +0200)] 
Merge tag 'v5.7.0' into 6.0

23 months agodaemon: more avoidance of excessive TCP reconnections
Oto Šťáva [Tue, 1 Aug 2023 14:36:53 +0000 (16:36 +0200)] 
daemon: more avoidance of excessive TCP reconnections

Previously this penalization was only triggered if the remote server
closed TCP.  Now it's extended to us closing it when the server
(only) sends back some nonsense.  At least for the cases which I could
see immediately.

That's just three trivial one-line additions; the rest is refactoring.

Adapted to 6.0 from commit 6468ab22 by Oto Šťáva <oto.stava@nic.cz>

Co-Authored-By: Vladimír Čunat <vladimir.cunat@nic.cz>
23 months agoMerge branch 'release-5.7.0' into 'master' obs-knot-resolver-8xyvhu/deployments/2634 obs-knot-resolver-es11k1/deployments/2635 obs-knot-resolver-es11k1/deployments/2636 obs-knot-resolver-es11k1/deployments/2638 obs-knot-resolver-es11k1/deployments/2639 obs-knot-resolver-es11k1/deployments/2640 obs-knot-resolver-es11k1/deployments/2641 obs-knot-resolver-es11k1/deployments/2654 obs-knot-resolver-es11k1/deployments/2664 obs-knot-resolver-es11k1/deployments/2665 obs-knot-resolver-es11k1/deployments/2666 obs-knot-resolver-es11k1/deployments/2667 obs-knot-resolver-es11k1/deployments/2670 obs-knot-resolver-es11k1/deployments/2671 obs-knot-resolver-es11k1/deployments/2672 obs-knot-resolver-es11k1/deployments/2675 obs-knot-resolver-es11k1/deployments/2677 obs-knot-resolver-es11k1/deployments/2678 obs-knot-resolver-es11k1/deployments/2679 obs-knot-resolver-es11k1/deployments/2683 obs-knot-resolver-es11k1/deployments/2697 obs-knot-resolver-es11k1/deployments/2698 obs-knot-resolver-es11k1/deployments/2710 obs-knot-resolver-es11k1/deployments/2718 obs-knot-resolver-es11k1/deployments/2720 obs-knot-resolver-es11k1/deployments/2721 obs-knot-resolver-es11k1/deployments/2728 obs-knot-resolver-es11k1/deployments/2733 obs-knot-resolver-es11k1/deployments/2741 obs-knot-resolver-es11k1/deployments/2745 obs-knot-resolver-es11k1/deployments/2751 obs-knot-resolver-es11k1/deployments/2754 obs-knot-resolver-es11k1/deployments/2755 obs-knot-resolver-es11k1/deployments/2765 obs-knot-resolver-es11k1/deployments/2772 obs-knot-resolver-es11k1/deployments/2774 obs-knot-resolver-es11k1/deployments/2775 obs-knot-resolver-es11k1/deployments/2776 obs-knot-resolver-es11k1/deployments/2777 obs-knot-resolver-es11k1/deployments/2778 obs-knot-resolver-es11k1/deployments/2779 obs-knot-resolver-es11k1/deployments/2784 obs-knot-resolver-es11k1/deployments/2787 obs-knot-resolver-es11k1/deployments/2805 obs-knot-resolver-es11k1/deployments/2806 obs-knot-resolver-es11k1/deployments/2808 obs-knot-resolver-es11k1/deployments/2809 obs-knot-resolver-es11k1/deployments/2811 obs-knot-resolver-es11k1/deployments/2812 obs-knot-resolver-es11k1/deployments/2814 obs-knot-resolver-es11k1/deployments/2816 obs-knot-resolver-es11k1/deployments/2818 obs-knot-resolver-es11k1/deployments/2819 obs-knot-resolver-es11k1/deployments/2820 obs-knot-resolver-es11k1/deployments/2821 obs-knot-resolver-es11k1/deployments/2822 obs-knot-resolver-es11k1/deployments/2823 obs-knot-resolver-es11k1/deployments/2824 obs-knot-resolver-es11k1/deployments/2825 obs-knot-resolver-es11k1/deployments/2826 obs-knot-resolver-es11k1/deployments/2827 obs-knot-resolver-kv62s6/deployments/2633 v5.7.0
Aleš Mrázek [Tue, 22 Aug 2023 08:51:29 +0000 (10:51 +0200)] 
Merge branch 'release-5.7.0' into 'master'

release 5.7.0

See merge request knot/knot-resolver!1448

23 months agoNEWS: date update
Aleš Mrázek [Tue, 22 Aug 2023 08:27:18 +0000 (10:27 +0200)] 
NEWS: date update

23 months agoMerge !1444: manager: datamodel: fix /cache/ttl-max default
Vladimír Čunát [Tue, 22 Aug 2023 07:02:53 +0000 (09:02 +0200)] 
Merge !1444: manager: datamodel: fix /cache/ttl-max default

23 months agomanager: datamodel: fix /cache/ttl-max default
Vladimír Čunát [Tue, 8 Aug 2023 07:27:23 +0000 (09:27 +0200)] 
manager: datamodel: fix /cache/ttl-max default

This was changed long ago in bb6e2de2195914c79
(and 6.0 docs was correct already)

23 months agoMerge branch 'manager-fix-kresdid-eq' into '6.0'
Oto Šťáva [Tue, 22 Aug 2023 06:47:09 +0000 (08:47 +0200)] 
Merge branch 'manager-fix-kresdid-eq' into '6.0'

manager: use self._type in KresID.__eq__()

See merge request knot/knot-resolver!1449

23 months agoAUTHORS update obs-knot-resolver-bs4hbr/deployments/2631
Aleš Mrázek [Mon, 21 Aug 2023 13:10:43 +0000 (15:10 +0200)] 
AUTHORS update

23 months agomanager: use self._type in KresID.__eq__()
Oto Šťáva [Mon, 21 Aug 2023 13:01:11 +0000 (15:01 +0200)] 
manager: use self._type in KresID.__eq__()

Fixes a case where a GC and KRESD KresID with the same `self._id` would
be considered equal. Said behaviour breaks listing of all running
subprocesses, where `kresd0` would be missing, because it has the same
`self._id` as `cache-gc`.

23 months agorelease 5.7.0
Aleš Mrázek [Mon, 21 Aug 2023 12:54:14 +0000 (14:54 +0200)] 
release 5.7.0

23 months agodaemon: more avoidance of excessive TCP reconnections
Vladimír Čunát [Sat, 29 Jul 2023 15:53:34 +0000 (17:53 +0200)] 
daemon: more avoidance of excessive TCP reconnections

Previously this penalization was only triggered if the remote server
closed TCP.  Now it's extended to us closing it when the server
(only) sends back some nonsense.  At least for the cases which I could
see immediately.

That's just three trivial one-line additions; the rest is refactoring.

23 months agoMerge !1442: manager: fixing some config validation errors
Vladimír Čunát [Thu, 17 Aug 2023 14:06:45 +0000 (16:06 +0200)] 
Merge !1442: manager: fixing some config validation errors

23 months agoutils: modeling: proper error for default creation
Aleš Mrázek [Fri, 4 Aug 2023 13:52:28 +0000 (15:52 +0200)] 
utils: modeling: proper error for default creation

23 months agomanager: better error handling for rundir
Aleš Mrázek [Fri, 4 Aug 2023 13:42:15 +0000 (15:42 +0200)] 
manager: better error handling for rundir

23 months agodocs: fix padding descriptions
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/

23 months agoMerge !1443: hints: merge RRs instead of replacing them
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

23 months agohints: merge RRs instead of replacing them
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.

23 months agoMerge branch 'rm-poetry-lock' into '6.0'
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

23 months agolint: flake8: satisfy newer version
Aleš Mrázek [Mon, 14 Aug 2023 08:05:39 +0000 (10:05 +0200)] 
lint: flake8: satisfy newer version

23 months agomanager/poetry.lock: remove
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).

23 months agoMerge !1427: manager: datamodel: new type for address renumbering
Vladimír Čunát [Sun, 13 Aug 2023 16:20:54 +0000 (18:20 +0200)] 
Merge !1427: manager: datamodel: new type for address renumbering

23 months agotests: datamodel: types: 'IPAddressEM' validation
Aleš Mrázek [Tue, 8 Aug 2023 08:21:56 +0000 (10:21 +0200)] 
tests: datamodel: types: 'IPAddressEM' validation

23 months agomanager: datamodel: custom type for IP address with '!' suffix
Aleš Mrázek [Tue, 18 Jul 2023 09:31:33 +0000 (11:31 +0200)] 
manager: datamodel: custom type for IP address with '!' suffix

23 months agomanager datamodel template: fix a tiny typo
Vladimír Čunát [Tue, 8 Aug 2023 14:09:26 +0000 (16:09 +0200)] 
manager datamodel template: fix a tiny typo

23 months agomanager datamodel template: fix ttl in /local-data/{records,rpz}
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.

23 months agoMerge !1436: manager: datamodel: templates: predict: fix syntax
Vladimír Čunát [Tue, 8 Aug 2023 08:04:24 +0000 (10:04 +0200)] 
Merge !1436: manager: datamodel: templates: predict: fix syntax

23 months agomanager: 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

23 months agoMerge !1425: Declarative config docs for version 6
Vladimír Čunát [Tue, 8 Aug 2023 07:01:39 +0000 (09:01 +0200)] 
Merge !1425: Declarative config docs for version 6

23 months agodocs: unnecessary files removed
Aleš Mrázek [Thu, 20 Jul 2023 13:05:36 +0000 (15:05 +0200)] 
docs: unnecessary files removed

23 months agodocs: references fixes
Aleš Mrázek [Thu, 20 Jul 2023 12:49:56 +0000 (14:49 +0200)] 
docs: references fixes

23 months agodocs: generate documentation from poetry
Aleš Mrázek [Wed, 19 Jul 2023 14:18:23 +0000 (16:18 +0200)] 
docs: generate documentation from poetry

23 months agodocs: config: new declarative policy
Aleš Mrázek [Thu, 13 Jul 2023 13:32:37 +0000 (15:32 +0200)] 
docs: config: new declarative policy

23 months agodocs: config: network subsection
Aleš Mrázek [Wed, 12 Jul 2023 14:01:40 +0000 (16:01 +0200)] 
docs: config:  network subsection

23 months agodocs: config: yaml for experimental features
Aleš Mrázek [Wed, 12 Jul 2023 13:36:34 +0000 (15:36 +0200)] 
docs: config: yaml for experimental features

23 months agodocs: config: performance subsection
Aleš Mrázek [Tue, 11 Jul 2023 14:05:38 +0000 (16:05 +0200)] 
docs: config: performance subsection

23 months agodocs: config: declarative logging/monitoring
Aleš Mrázek [Mon, 10 Jul 2023 14:13:16 +0000 (16:13 +0200)] 
docs: config: declarative logging/monitoring

23 months agodocs: config: yaml for views
Aleš Mrázek [Fri, 7 Jul 2023 14:07:53 +0000 (16:07 +0200)] 
docs: config: yaml for views

23 months agodocs: config: lua scripting
Aleš Mrázek [Tue, 4 Jul 2023 09:00:01 +0000 (11:00 +0200)] 
docs: config: lua scripting

23 months agodocs: config: yaml for cache prefill
Aleš Mrázek [Mon, 3 Jul 2023 15:23:26 +0000 (17:23 +0200)] 
docs: config: yaml for cache prefill

23 months agodocs: config: yaml for cache
Aleš Mrázek [Mon, 3 Jul 2023 15:03:44 +0000 (17:03 +0200)] 
docs: config: yaml for cache

23 months agodocs: config: yaml for dnssec
Aleš Mrázek [Mon, 3 Jul 2023 14:04:21 +0000 (16:04 +0200)] 
docs: config: yaml for dnssec

23 months agodocs: config: yaml for dns64
Aleš Mrázek [Wed, 28 Jun 2023 13:32:27 +0000 (15:32 +0200)] 
docs: config: yaml for dns64

23 months agodocs: kresctl: --no-strict option for validations
Aleš Mrázek [Tue, 27 Jun 2023 09:44:01 +0000 (11:44 +0200)] 
docs: kresctl: --no-strict option for validations

23 months agomanager: client: strict validation off by default
Aleš Mrázek [Tue, 27 Jun 2023 08:39:51 +0000 (10:39 +0200)] 
manager: client: strict validation off by default

23 months agodocs: config: overview
Aleš Mrázek [Tue, 27 Jun 2023 08:20:05 +0000 (10:20 +0200)] 
docs: config: overview

23 months agoMerge branch 'master' into 6.0
Vladimír Čunát [Sun, 6 Aug 2023 07:26:58 +0000 (09:26 +0200)] 
Merge branch 'master' into 6.0

23 months agoMerge !1441: .readthedocs.yaml: migrate configuration from web app obs-knot-resolver-es11k1/deployments/2616 obs-knot-resolver-es11k1/deployments/2617 obs-knot-resolver-es11k1/deployments/2618 obs-knot-resolver-es11k1/deployments/2619 obs-knot-resolver-es11k1/deployments/2620 obs-knot-resolver-es11k1/deployments/2621 obs-knot-resolver-es11k1/deployments/2622 obs-knot-resolver-es11k1/deployments/2623 obs-knot-resolver-es11k1/deployments/2624 obs-knot-resolver-es11k1/deployments/2625 obs-knot-resolver-es11k1/deployments/2626 obs-knot-resolver-es11k1/deployments/2627 obs-knot-resolver-es11k1/deployments/2628 obs-knot-resolver-es11k1/deployments/2629 obs-knot-resolver-es11k1/deployments/2630 obs-knot-resolver-es11k1/deployments/2632
Vladimír Čunát [Sun, 6 Aug 2023 07:24:46 +0000 (09:24 +0200)] 
Merge !1441: .readthedocs.yaml: migrate configuration from web app

2 years agoMerge branch 'kresctl-stderr' into '6.0'
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

2 years agomanager: cli: print error messages to sys.stderr
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).

2 years ago.readthedocs.yaml: migrate configuration from web app
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.

2 years agolib/rules: when forwarding, avoid resolving NS's name
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).

2 years agoMerge branch 'manager-datamodel-template' into '6.0'
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

2 years agodatamodel: unused templates deleted
Aleš Mrázek [Thu, 3 Aug 2023 13:57:34 +0000 (15:57 +0200)] 
datamodel: unused templates deleted

2 years agotemplates: dnssec moved before forward section
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.

2 years agoMerge !1424: doc/gettingstarted-install: adapt to 6.x package sources
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

2 years agodoc/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

2 years agoMerge !1435: datamodel: local-data: allow list of addresses
Vladimír Čunát [Thu, 3 Aug 2023 08:16:29 +0000 (10:16 +0200)] 
Merge !1435: datamodel: local-data: allow list of addresses

2 years agodatamodel: 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

2 years agoMerge branch 'manager-datamodel-improvements2' into '6.0'
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

2 years agodatamodel: list only for plural names
Aleš Mrázek [Tue, 1 Aug 2023 14:12:53 +0000 (16:12 +0200)] 
datamodel: list only for plural names

2 years agodatamodel: forward: list for subtree allowed
Aleš Mrázek [Tue, 1 Aug 2023 08:47:21 +0000 (10:47 +0200)] 
datamodel: forward: list for subtree allowed

2 years agoMerge !1433: datamodel: prediction moved to cache section
Vladimír Čunát [Tue, 1 Aug 2023 07:21:37 +0000 (09:21 +0200)] 
Merge !1433: datamodel: prediction moved to cache section

2 years agodatamodel: templates: separator for NSID removed
Aleš Mrázek [Fri, 28 Jul 2023 14:01:18 +0000 (16:01 +0200)] 
datamodel: templates: separator for NSID removed

2 years agomanager: datamodel: prediction moved to cache
Aleš Mrázek [Fri, 28 Jul 2023 13:57:19 +0000 (15:57 +0200)] 
manager: datamodel: prediction moved to cache

2 years agoMerge branch 'manager-validation-errors-improvements' into '6.0'
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

2 years agomanager: better logging for config validation
Aleš Mrázek [Thu, 27 Jul 2023 11:51:27 +0000 (13:51 +0200)] 
manager: better logging for config validation

2 years agoreplace '_' with '-' in validation error path
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.

2 years agodatamodel: types: verbose errors for paths
Aleš Mrázek [Mon, 24 Jul 2023 21:36:19 +0000 (23:36 +0200)] 
datamodel: types: verbose errors for paths