]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
3 weeks agoRevert "Auth whitelist: kres-gen: add C functions" docs-tls-authorit-1vf4ug/deployments/7149 tls-authority-whitelist 1668/head
Frantisek Tobias [Fri, 21 Mar 2025 10:36:06 +0000 (11:36 +0100)] 
Revert "Auth whitelist: kres-gen: add C functions"

This reverts commit 5b19bd6762351f2062cb10ed6055e325e9f2c61f.

3 weeks agoDatamodel: Add tls field for CA trust whitelist file
Frantisek Tobias [Fri, 21 Mar 2025 09:42:39 +0000 (10:42 +0100)] 
Datamodel: Add tls field for CA trust whitelist file

3 weeks agoRevert "lib/resolve: load authority whitelist into persistent kr_context structure"
Frantisek Tobias [Fri, 21 Mar 2025 09:41:08 +0000 (10:41 +0100)] 
Revert "lib/resolve: load authority whitelist into persistent kr_context structure"

This reverts commit 74e605439817844b8b4395aa31981ea96cca2f33.

3 weeks agolib/resolve: kr_context: add trust whitelist certificate credentials]
Frantisek Tobias [Fri, 21 Mar 2025 09:39:32 +0000 (10:39 +0100)] 
lib/resolve: kr_context: add trust whitelist certificate credentials]

3 weeks agotls: Add cb function to check clients cert against trust whitelist
Frantisek Tobias [Fri, 21 Mar 2025 09:04:18 +0000 (10:04 +0100)] 
tls: Add cb function to check clients cert against trust whitelist

If the whitelist is configured unwrap direction of DoT sets the certificate server request to GNUTLS_CERT_REQUIRE

3 weeks agonet-tls: perform struct dependency check, rename to match context
Frantisek Tobias [Fri, 21 Mar 2025 09:02:08 +0000 (10:02 +0100)] 
net-tls: perform struct dependency check, rename to match context

3 weeks agoAuth whitelist: implement issuer checks
Frantisek Tobias [Mon, 10 Feb 2025 12:10:09 +0000 (13:10 +0100)] 
Auth whitelist: implement issuer checks

3 weeks agoAuth whitelist: kres-gen: add C functions
Frantisek Tobias [Mon, 10 Feb 2025 12:08:33 +0000 (13:08 +0100)] 
Auth whitelist: kres-gen: add C functions

3 weeks agoconfig/network: add whitelist into network schema
Frantisek Tobias [Mon, 10 Feb 2025 12:05:37 +0000 (13:05 +0100)] 
config/network: add whitelist into network schema

3 weeks agolib/resolve: load authority whitelist into persistent kr_context structure
Frantisek Tobias [Mon, 10 Feb 2025 12:03:31 +0000 (13:03 +0100)] 
lib/resolve: load authority whitelist into persistent kr_context structure

3 weeks agoMerge !1709: lib/rules: update/more precise default answers for special names docs-master-mgcjyq/deployments/7142 docs-master-mgcjyq/deployments/7143 docs-master-mgcjyq/deployments/7145 docs-master-mgcjyq/deployments/7150 docs-master-mgcjyq/deployments/7152 docs-master-mgcjyq/deployments/7160 docs-master-mgcjyq/deployments/7161 docs-master-mgcjyq/deployments/7164 docs-master-mgcjyq/deployments/7166 docs-master-mgcjyq/deployments/7171 docs-master-mgcjyq/deployments/7173 docs-master-mgcjyq/deployments/7176 docs-master-mgcjyq/deployments/7178 docs-master-mgcjyq/deployments/7180 docs-master-mgcjyq/deployments/7182 docs-master-mgcjyq/deployments/7184 docs-master-mgcjyq/deployments/7185 docs-master-mgcjyq/deployments/7190 docs-master-mgcjyq/deployments/7192 docs-master-mgcjyq/deployments/7196 docs-master-mgcjyq/deployments/7198 docs-nightly-t152d1/deployments/7144 docs-nightly-t152d1/deployments/7151 docs-nightly-t152d1/deployments/7165 docs-nightly-t152d1/deployments/7172 docs-nightly-t152d1/deployments/7177 docs-nightly-t152d1/deployments/7181 docs-nightly-t152d1/deployments/7191 docs-nightly-t152d1/deployments/7197 obs-knot-resolver-es11k1/deployments/7146 obs-knot-resolver-es11k1/deployments/7153 obs-knot-resolver-es11k1/deployments/7162 obs-knot-resolver-es11k1/deployments/7167 obs-knot-resolver-es11k1/deployments/7174 obs-knot-resolver-es11k1/deployments/7179 obs-knot-resolver-es11k1/deployments/7183 obs-knot-resolver-es11k1/deployments/7186 obs-knot-resolver-es11k1/deployments/7193 obs-knot-resolver-es11k1/deployments/7199
Vladimír Čunát [Sun, 6 Jul 2025 14:43:39 +0000 (16:43 +0200)] 
Merge !1709: lib/rules: update/more precise default answers for special names

3 weeks agolib/rules: update/more precise default answers for special names docs-rules-specia-3e2e8z/deployments/7141
Vladimír Čunát [Thu, 19 Jun 2025 13:38:44 +0000 (15:38 +0200)] 
lib/rules: update/more precise default answers for special names

The diff probably shows as messy, but the set of names
doesn't change much.  _EMPTY changes to _NXDOMAIN in many cases.
Every name has some text defining the behavior;
it's not very unified, unfortunately.
Now I tried to refer to particular RFC section(s) for each name.

4 weeks agoMerge !1705: modules/prefill: fix moving across filesystems docs-master-mgcjyq/deployments/7131 docs-master-mgcjyq/deployments/7133 docs-master-mgcjyq/deployments/7135 docs-master-mgcjyq/deployments/7137 docs-master-mgcjyq/deployments/7139 docs-nightly-t152d1/deployments/7134 docs-nightly-t152d1/deployments/7138 obs-knot-resolver-es11k1/deployments/7136 obs-knot-resolver-es11k1/deployments/7140
Vladimír Čunát [Fri, 4 Jul 2025 17:29:23 +0000 (19:29 +0200)] 
Merge !1705: modules/prefill: fix moving across filesystems

4 weeks agomodules/prefill: fix moving across filesystems docs-prefill-rena-cs1397/deployments/7130
Vladimír Čunát [Wed, 11 Jun 2025 17:22:11 +0000 (19:22 +0200)] 
modules/prefill: fix moving across filesystems

I somehow thought thought that `os.rename()` behaves
like the `mv` command, and unfortunately in the way I tested this,
everything was inside a single mount-point.
Official docs is one line that doesn't explain anything really :-/

4 weeks agoMerge !1710: manager: support for multiple configuration files docs-master-mgcjyq/deployments/7129
Vladimír Čunát [Fri, 4 Jul 2025 17:13:14 +0000 (19:13 +0200)] 
Merge !1710: manager: support for multiple configuration files

4 weeks agoRevert "scripts/poe-tasks/utils/_env.sh: added CONFIG_FILE_NAME variable"
Aleš Mrázek [Tue, 1 Jul 2025 10:41:50 +0000 (12:41 +0200)] 
Revert "scripts/poe-tasks/utils/_env.sh: added CONFIG_FILE_NAME variable"

This reverts commit d3d4c2fbe52048ecd3df59e7e8e3d2017ad7914c.

4 weeks agomanager/server.py: check the parent dir of each config file
Aleš Mrázek [Mon, 30 Jun 2025 19:05:26 +0000 (21:05 +0200)] 
manager/server.py: check the parent dir of each config file

Compare the locations of multiple configuration files and issue a warning

4 weeks agopython: manager/server.py: use 'data_combine' function to combine data from multiple...
Aleš Mrázek [Fri, 20 Jun 2025 06:41:08 +0000 (08:41 +0200)] 
python: manager/server.py: use 'data_combine' function to combine data from multiple config files

4 weeks agopython: utils/modeling/parsing.py: 'data_combine' function for combining dictionaries...
Aleš Mrázek [Thu, 19 Jun 2025 18:45:26 +0000 (20:45 +0200)] 
python: utils/modeling/parsing.py: 'data_combine' function for combining dictionaries data

4 weeks ago.gitlab-ci.yml: python:run: added second configuration
Aleš Mrázek [Wed, 18 Jun 2025 14:14:54 +0000 (16:14 +0200)] 
.gitlab-ci.yml: python:run: added second configuration

4 weeks agoetc/config: added few YAML configs for testing
Aleš Mrázek [Wed, 18 Jun 2025 14:13:34 +0000 (16:13 +0200)] 
etc/config: added few YAML configs for testing

4 weeks agopython: manager: allow multiple configuration file inputs
Aleš Mrázek [Wed, 18 Jun 2025 14:05:31 +0000 (16:05 +0200)] 
python: manager: allow multiple configuration file inputs

4 weeks agoetc/config/config.yaml: reduced to minimal config
Aleš Mrázek [Wed, 18 Jun 2025 11:13:27 +0000 (13:13 +0200)] 
etc/config/config.yaml: reduced to minimal config

Most of the configuration was a duplication of the default values.

4 weeks agoetc/config/config.dev.yaml: reduced to minimal config
Aleš Mrázek [Wed, 18 Jun 2025 10:57:45 +0000 (12:57 +0200)] 
etc/config/config.dev.yaml: reduced to minimal config

4 weeks ago.gitlab-ci.yml: python:run: use CONFIG_FILE_NAME
Aleš Mrázek [Wed, 18 Jun 2025 10:39:23 +0000 (12:39 +0200)] 
.gitlab-ci.yml: python:run: use CONFIG_FILE_NAME

4 weeks agoscripts/poe-tasks/utils/_env.sh: added CONFIG_FILE_NAME variable
Aleš Mrázek [Wed, 18 Jun 2025 10:37:33 +0000 (12:37 +0200)] 
scripts/poe-tasks/utils/_env.sh: added CONFIG_FILE_NAME variable

The CONFIG_FILE_NAME variable allows us to change just the name of a configuration file.

4 weeks agoMerge !1713: lib/cache: fix retaining is_cache flag in cdb_clear docs-master-mgcjyq/deployments/7117 docs-master-mgcjyq/deployments/7119 docs-master-mgcjyq/deployments/7121 docs-master-mgcjyq/deployments/7124 docs-master-mgcjyq/deployments/7126 docs-nightly-t152d1/deployments/7120 docs-nightly-t152d1/deployments/7125 obs-knot-resolver-es11k1/deployments/7122 obs-knot-resolver-es11k1/deployments/7127
Vladimír Čunát [Wed, 2 Jul 2025 16:38:20 +0000 (18:38 +0200)] 
Merge !1713: lib/cache: fix retaining is_cache flag in cdb_clear

4 weeks agoadd NEWS for the parent commit
Vladimír Čunát [Wed, 2 Jul 2025 16:36:20 +0000 (18:36 +0200)] 
add NEWS for the parent commit

4 weeks agolib/cache: fix retaining is_cache flag in cdb_clear docs-cache-reopen-zgvyna/deployments/7116
Lukáš Ondráček [Wed, 2 Jul 2025 16:00:33 +0000 (18:00 +0200)] 
lib/cache: fix retaining is_cache flag in cdb_clear

4 weeks agoMerge !1712: manager: metrics: fix typo in one prometheus stat name docs-master-mgcjyq/deployments/7098 docs-master-mgcjyq/deployments/7102 docs-master-mgcjyq/deployments/7104 docs-master-mgcjyq/deployments/7111 docs-master-mgcjyq/deployments/7113 docs-nightly-t152d1/deployments/7103 docs-nightly-t152d1/deployments/7112 obs-knot-resolver-es11k1/deployments/7105 obs-knot-resolver-es11k1/deployments/7114
Vladimír Čunát [Mon, 30 Jun 2025 08:28:07 +0000 (10:28 +0200)] 
Merge !1712: manager: metrics: fix typo in one prometheus stat name

4 weeks agomanager: metrics: fix typo in one prometheus stat name docs-prometheus-r-lembc6/deployments/7097
Rich [Wed, 25 Jun 2025 07:53:53 +0000 (08:53 +0100)] 
manager: metrics: fix typo in one prometheus stat name

5 weeks agoMerge !1711: datamodel/templates: fix swapped edns-buffer-size docs-master-mgcjyq/deployments/7075 docs-master-mgcjyq/deployments/7077 docs-master-mgcjyq/deployments/7079 docs-master-mgcjyq/deployments/7081 docs-master-mgcjyq/deployments/7083 docs-master-mgcjyq/deployments/7085 docs-master-mgcjyq/deployments/7087 docs-master-mgcjyq/deployments/7089 docs-master-mgcjyq/deployments/7091 docs-master-mgcjyq/deployments/7093 docs-master-mgcjyq/deployments/7095 docs-nightly-t152d1/deployments/7078 docs-nightly-t152d1/deployments/7082 docs-nightly-t152d1/deployments/7086 docs-nightly-t152d1/deployments/7090 docs-nightly-t152d1/deployments/7094 obs-knot-resolver-es11k1/deployments/7080 obs-knot-resolver-es11k1/deployments/7084 obs-knot-resolver-es11k1/deployments/7088 obs-knot-resolver-es11k1/deployments/7092 obs-knot-resolver-es11k1/deployments/7096
Vladimír Čunát [Wed, 25 Jun 2025 07:24:22 +0000 (09:24 +0200)] 
Merge !1711: datamodel/templates: fix swapped edns-buffer-size

5 weeks agodatamodel/templates: fix swapped edns-buffer-size docs-edns-buffer-uuxvqp/deployments/7074
Vladimír Čunát [Wed, 25 Jun 2025 07:10:19 +0000 (09:10 +0200)] 
datamodel/templates: fix swapped edns-buffer-size

5 weeks agoMerge !1704: datamodel/templates: fix /dnssec/trust-anchors-files docs-master-mgcjyq/deployments/7073
Vladimír Čunát [Wed, 25 Jun 2025 06:56:13 +0000 (08:56 +0200)] 
Merge !1704: datamodel/templates: fix /dnssec/trust-anchors-files

5 weeks agodatamodel/templates: fix /dnssec/trust-anchors-files docs-trust-anchor-w0i9dl/deployments/7072
Vladimír Čunát [Wed, 11 Jun 2025 13:34:40 +0000 (15:34 +0200)] 
datamodel/templates: fix /dnssec/trust-anchors-files

I expect this has never worked in 6.x yet :-/

7 weeks agoMerge !1706: .gitlab-ci.yml: add pkg:alma-10 docs-master-mgcjyq/deployments/7001 docs-master-mgcjyq/deployments/7002 docs-master-mgcjyq/deployments/7004 docs-master-mgcjyq/deployments/7008 docs-master-mgcjyq/deployments/7010 docs-master-mgcjyq/deployments/7013 docs-master-mgcjyq/deployments/7015 docs-master-mgcjyq/deployments/7017 docs-master-mgcjyq/deployments/7019 docs-master-mgcjyq/deployments/7022 docs-master-mgcjyq/deployments/7024 docs-master-mgcjyq/deployments/7026 docs-master-mgcjyq/deployments/7028 docs-master-mgcjyq/deployments/7034 docs-master-mgcjyq/deployments/7036 docs-master-mgcjyq/deployments/7040 docs-master-mgcjyq/deployments/7042 docs-master-mgcjyq/deployments/7049 docs-master-mgcjyq/deployments/7051 docs-master-mgcjyq/deployments/7053 docs-master-mgcjyq/deployments/7055 docs-master-mgcjyq/deployments/7057 docs-master-mgcjyq/deployments/7059 docs-master-mgcjyq/deployments/7061 docs-master-mgcjyq/deployments/7063 docs-master-mgcjyq/deployments/7068 docs-master-mgcjyq/deployments/7070 docs-nightly-t152d1/deployments/7003 docs-nightly-t152d1/deployments/7009 docs-nightly-t152d1/deployments/7014 docs-nightly-t152d1/deployments/7018 docs-nightly-t152d1/deployments/7023 docs-nightly-t152d1/deployments/7027 docs-nightly-t152d1/deployments/7035 docs-nightly-t152d1/deployments/7041 docs-nightly-t152d1/deployments/7050 docs-nightly-t152d1/deployments/7054 docs-nightly-t152d1/deployments/7058 docs-nightly-t152d1/deployments/7062 docs-nightly-t152d1/deployments/7069 obs-knot-resolver-es11k1/deployments/7005 obs-knot-resolver-es11k1/deployments/7011 obs-knot-resolver-es11k1/deployments/7016 obs-knot-resolver-es11k1/deployments/7020 obs-knot-resolver-es11k1/deployments/7025 obs-knot-resolver-es11k1/deployments/7029 obs-knot-resolver-es11k1/deployments/7037 obs-knot-resolver-es11k1/deployments/7052 obs-knot-resolver-es11k1/deployments/7056 obs-knot-resolver-es11k1/deployments/7060 obs-knot-resolver-es11k1/deployments/7064 obs-knot-resolver-es11k1/deployments/7071
Vladimír Čunát [Thu, 12 Jun 2025 12:04:34 +0000 (14:04 +0200)] 
Merge !1706: .gitlab-ci.yml: add pkg:alma-10

7 weeks agodistro/tests: update test dependencies docs-ci-alma-10-1nrr88/deployments/7000
Jakub Ružička [Thu, 12 Jun 2025 11:24:25 +0000 (13:24 +0200)] 
distro/tests: update test dependencies

Depend on man on almalinux.

Also shorten distro.match invocations for readability.

7 weeks ago.gitlab-ci.yml: add pkg:alma-10
Vladimír Čunát [Thu, 5 Jun 2025 10:27:47 +0000 (12:27 +0200)] 
.gitlab-ci.yml: add pkg:alma-10

7 weeks agoMerge !1701: meson: avoid protoc-c, as it's deprecated docs-master-mgcjyq/deployments/6996
Vladimír Čunát [Thu, 12 Jun 2025 08:51:17 +0000 (10:51 +0200)] 
Merge !1701: meson: avoid protoc-c, as it's deprecated

7 weeks agomeson: avoid protoc-c, as it's (reported as) deprecated docs-protoc-c-zfcn52/deployments/6995
Vladimír Čunát [Wed, 4 Jun 2025 07:32:14 +0000 (09:32 +0200)] 
meson: avoid protoc-c, as it's (reported as) deprecated

> `protoc-c` is deprecated. Please use `protoc` instead!

7 weeks agoMerge !1703: manager: prometheus metrics update docs-master-mgcjyq/deployments/6986 docs-master-mgcjyq/deployments/6990 docs-master-mgcjyq/deployments/6992 docs-nightly-t152d1/deployments/6991 obs-knot-resolver-es11k1/deployments/6993
Vladimír Čunát [Wed, 11 Jun 2025 11:01:45 +0000 (13:01 +0200)] 
Merge !1703: manager: prometheus metrics update

Fixes #917

7 weeks agotest/packaging/interactive/metrics: compare number of JSON and prometheus metrics docs-prometheus-m-rqpbzm/deployments/6985
Aleš Mrázek [Wed, 11 Jun 2025 10:01:36 +0000 (12:01 +0200)] 
test/packaging/interactive/metrics: compare number of JSON and prometheus metrics

7 weeks agomanager: metrics: added prometheus missing IPv4/6 metrics
Aleš Mrázek [Tue, 10 Jun 2025 16:17:27 +0000 (18:17 +0200)] 
manager: metrics: added prometheus missing IPv4/6 metrics

8 weeks agoMerge branch 'release-6.0.14' into 'master' docs-master-mgcjyq/deployments/6934 docs-master-mgcjyq/deployments/6938 docs-master-mgcjyq/deployments/6940 docs-master-mgcjyq/deployments/6944 docs-master-mgcjyq/deployments/6945 docs-master-mgcjyq/deployments/6950 docs-master-mgcjyq/deployments/6951 docs-master-mgcjyq/deployments/6956 docs-master-mgcjyq/deployments/6958 docs-master-mgcjyq/deployments/6960 docs-master-mgcjyq/deployments/6962 docs-master-mgcjyq/deployments/6964 docs-master-mgcjyq/deployments/6966 docs-master-mgcjyq/deployments/6968 docs-master-mgcjyq/deployments/6970 docs-master-mgcjyq/deployments/6975 docs-master-mgcjyq/deployments/6977 docs-nightly-t152d1/deployments/6939 docs-nightly-t152d1/deployments/6957 docs-nightly-t152d1/deployments/6961 docs-nightly-t152d1/deployments/6965 docs-nightly-t152d1/deployments/6969 docs-nightly-t152d1/deployments/6976 docs-v6-0-14-yv5730/deployments/6935 obs-knot-resolver-es11k1/deployments/6941 obs-knot-resolver-es11k1/deployments/6946 obs-knot-resolver-es11k1/deployments/6952 obs-knot-resolver-es11k1/deployments/6959 obs-knot-resolver-es11k1/deployments/6963 obs-knot-resolver-es11k1/deployments/6967 obs-knot-resolver-es11k1/deployments/6971 obs-knot-resolver-es11k1/deployments/6978 v6.0.14
Aleš Mrázek [Tue, 3 Jun 2025 10:51:59 +0000 (12:51 +0200)] 
Merge branch 'release-6.0.14' into 'master'

Release 6.0.14

See merge request knot/knot-resolver!1700

8 weeks agoRelease 6.0.14
Aleš Mrázek [Tue, 3 Jun 2025 10:51:59 +0000 (12:51 +0200)] 
Release 6.0.14

8 weeks agoMerge !1699: datamodel/templates: fix error, as RuleSchema doesn't have .log docs-master-mgcjyq/deployments/6931
Vladimír Čunát [Tue, 3 Jun 2025 09:25:33 +0000 (11:25 +0200)] 
Merge !1699: datamodel/templates: fix error, as RuleSchema doesn't have .log

8 weeks agolib/rules: drop FIXMEs docs-local-data-r-ozywnc/deployments/6930
Vladimír Čunát [Mon, 2 Jun 2025 12:42:01 +0000 (14:42 +0200)] 
lib/rules: drop FIXMEs

These don't need resolving, as the return values for kr_* functions
didn't change really in the end.

8 weeks agodatamodel/templates: fix error, as RuleSchema doesn't have .log
Vladimír Čunát [Mon, 2 Jun 2025 12:42:01 +0000 (14:42 +0200)] 
datamodel/templates: fix error, as RuleSchema doesn't have .log

Also indent the complicated if-nesting.

2 months agoMerge branch 'ci-python-run' into 'master' docs-master-mgcjyq/deployments/6918 docs-master-mgcjyq/deployments/6925 docs-master-mgcjyq/deployments/6927 docs-nightly-t152d1/deployments/6926 obs-knot-resolver-es11k1/deployments/6928
Aleš Mrázek [Mon, 2 Jun 2025 07:31:26 +0000 (09:31 +0200)] 
Merge branch 'ci-python-run' into 'master'

ci: python:run: job to start the resolver with the dev configuration

See merge request knot/knot-resolver!1698

2 months ago.gitlab-ci.yml: added python:run job docs-ci-python-ru-ytofnt/deployments/6917
Aleš Mrázek [Fri, 30 May 2025 08:22:30 +0000 (10:22 +0200)] 
.gitlab-ci.yml: added python:run job

2 months agoMerge !1697: datamodel/templates: fix kr_rule_local_* macros docs-master-mgcjyq/deployments/6916
Vladimír Čunát [Mon, 2 Jun 2025 07:23:45 +0000 (09:23 +0200)] 
Merge !1697: datamodel/templates: fix kr_rule_local_* macros

2 months agoadd NEWS entry docs-local-data-t-4en6fs/deployments/6894
Vladimír Čunát [Fri, 30 May 2025 05:13:04 +0000 (07:13 +0200)] 
add NEWS entry

2 months agodatamodel/templates: fix kr_rule_local_* macros
Brad Cowie [Fri, 30 May 2025 01:57:25 +0000 (13:57 +1200)] 
datamodel/templates: fix kr_rule_local_* macros

commit a782e9c3 broke the jinja2 generation of the
kr_rule_local_* macro functions. C.KR_RULE_OPTS_DEFAULT
was provided as an argument to the assert() function call
instead of the call to the corresponding C.kr_rule_local_* function

2 months agoMerge branch 'release-6.0.13' into 'master' docs-master-mgcjyq/deployments/6887 docs-master-mgcjyq/deployments/6890 docs-master-mgcjyq/deployments/6892 docs-master-mgcjyq/deployments/6904 docs-master-mgcjyq/deployments/6905 docs-master-mgcjyq/deployments/6907 docs-master-mgcjyq/deployments/6909 docs-master-mgcjyq/deployments/6911 docs-master-mgcjyq/deployments/6913 docs-nightly-t152d1/deployments/6891 docs-nightly-t152d1/deployments/6908 docs-nightly-t152d1/deployments/6912 docs-v6-0-13-3murta/deployments/6888 obs-knot-resolver-es11k1/deployments/6893 obs-knot-resolver-es11k1/deployments/6906 obs-knot-resolver-es11k1/deployments/6910 obs-knot-resolver-es11k1/deployments/6914 v6.0.13
Aleš Mrázek [Thu, 29 May 2025 10:42:25 +0000 (12:42 +0200)] 
Merge branch 'release-6.0.13' into 'master'

Release 6.0.13

See merge request knot/knot-resolver!1695

2 months agorelease 6.0.13 docs-release-6-0-skjznb/deployments/6885
Vladimír Čunát [Thu, 29 May 2025 09:16:54 +0000 (11:16 +0200)] 
release 6.0.13

2 months agoMerge !1696: DoS: fix more rare crashes with `requirement` failing docs-master-mgcjyq/deployments/6884
Vladimír Čunát [Thu, 29 May 2025 09:15:47 +0000 (11:15 +0200)] 
Merge !1696: DoS: fix more rare crashes with `requirement` failing

Fixes #930

2 months agodaemon/{session2,worker}: relax a few kr_require() cases docs-session2-tra-zo30ei/deployments/6882
Vladimír Čunát [Thu, 29 May 2025 09:07:40 +0000 (11:07 +0200)] 
daemon/{session2,worker}: relax a few kr_require() cases

These cases aren't obviously impossible,
and I fail to see why force a crash there.

2 months agodaemon/session2_transport_event(): relax a kr_require()
Vladimír Čunát [Thu, 29 May 2025 09:07:40 +0000 (11:07 +0200)] 
daemon/session2_transport_event(): relax a kr_require()

I fail to see why force a crash there, so let's at least
be defensive for now, as it does happen in practice.

2 months agodaemon/session2 wire_buf_init(): don't return anything
Vladimír Čunát [Thu, 29 May 2025 09:07:40 +0000 (11:07 +0200)] 
daemon/session2 wire_buf_init(): don't return anything

The function does not return anything but success,
and I don't see any plans for changing that,
so why should the declaration suggest otherwise?

2 months agoMerge !1694: /local-data/rpz/*/log: add option to log RPZ matches docs-master-mgcjyq/deployments/6879
Vladimír Čunát [Thu, 29 May 2025 09:00:09 +0000 (11:00 +0200)] 
Merge !1694: /local-data/rpz/*/log: add option to log RPZ matches

2 months agoadd NEWS entry docs-local-data-r-xpwmno/deployments/6878
Vladimír Čunát [Wed, 28 May 2025 12:35:46 +0000 (14:35 +0200)] 
add NEWS entry

2 months agodatamodel: hide /local-data/rpz/*/dry-run for now
Vladimír Čunát [Wed, 28 May 2025 12:35:46 +0000 (14:35 +0200)] 
datamodel: hide /local-data/rpz/*/dry-run for now

While this can be practical, let's not promise this approach to
configuration until it's more clear how the more general score
will appear in the config.

2 months agodatamodel: add /local-data/rpz/*/{log,dry-run}
Vladimír Čunát [Wed, 28 May 2025 12:35:46 +0000 (14:35 +0200)] 
datamodel: add /local-data/rpz/*/{log,dry-run}

2 months agolib/rules: add initial kr_rule_opts_t
Vladimír Čunát [Wed, 28 May 2025 12:35:46 +0000 (14:35 +0200)] 
lib/rules: add initial kr_rule_opts_t

For now this relates to logging/dry-run of local-data rules.

2 months agoMerge !1688: prefill + elsewhere: error message improvements docs-master-mgcjyq/deployments/6858 docs-master-mgcjyq/deployments/6859 docs-master-mgcjyq/deployments/6861 docs-master-mgcjyq/deployments/6863 docs-master-mgcjyq/deployments/6865 docs-master-mgcjyq/deployments/6867 docs-master-mgcjyq/deployments/6869 docs-master-mgcjyq/deployments/6875 docs-master-mgcjyq/deployments/6876 docs-nightly-t152d1/deployments/6860 docs-nightly-t152d1/deployments/6864 docs-nightly-t152d1/deployments/6868 obs-knot-resolver-es11k1/deployments/6862 obs-knot-resolver-es11k1/deployments/6866 obs-knot-resolver-es11k1/deployments/6870 obs-knot-resolver-es11k1/deployments/6877
Vladimír Čunát [Sun, 25 May 2025 08:19:28 +0000 (10:19 +0200)] 
Merge !1688: prefill + elsewhere: error message improvements

2 months agodatamodel nit: fix a typo in error message
Vladimír Čunát [Sun, 25 May 2025 08:17:44 +0000 (10:17 +0200)] 
datamodel nit: fix a typo in error message

2 months agotrust-anchors nit: print a clearer error message
Vladimír Čunát [Sun, 25 May 2025 08:17:44 +0000 (10:17 +0200)] 
trust-anchors nit: print a clearer error message

2 months agodaemon/lua: introduce kres.strerror(errcode)
Vladimír Čunát [Sun, 25 May 2025 08:17:44 +0000 (10:17 +0200)] 
daemon/lua: introduce kres.strerror(errcode)

As seen in the grandparent comit, the previous style
was error-prone and a bit verbose.

2 months agolib/ kr_strerror(): unify / cover more error codes
Vladimír Čunát [Sun, 25 May 2025 08:17:44 +0000 (10:17 +0200)] 
lib/ kr_strerror(): unify / cover more error codes

We often propagate errors from Knot libs...

2 months agoprefill: download through a temporary file
Vladimír Čunát [Sun, 25 May 2025 08:17:44 +0000 (10:17 +0200)] 
prefill: download through a temporary file

File rename is an atomic operation, so that's a plus.
We had a practical issue with the canary process,
as (for me) it exits somewhere during the download; example log:

kresd0[912938]: [prefil] downloading root zone to file root.zone ...
kresd0[912942]: [prefil] root zone file valid for 11 hours 59 minutes, reusing data from disk
kresd0[912942]: [prefil] empty zone file
kresd0[912942]: [prefil] error parsing zone file `root.zone`
kresd0[912942]: [prefil] root zone import failed, retry in 01 seconds
kresd0[912942]: [prefil] downloading root zone to file root.zone ...
kresd0[912942]: [prefil] import started for zone file `root.zone`
kresd0[912942]: [prefil] performance: parsing took 0.832 s, hashing took nan s
kresd0[912942]: [prefil] zone successfully parsed, import started
kresd0[912942]: [prefil] root zone refresh in 11 hours 59 minutes
kresd0[912942]: [prefil] performance: validating and caching took 0.736 s

Also avoid the unnecessary pcall+error.  Why throw and immediately catch?

2 months agoprefill nit: better error messages
Vladimír Čunát [Sun, 25 May 2025 08:17:44 +0000 (10:17 +0200)] 
prefill nit: better error messages

Avoid the ugly cdata<const char *>: 0x7fe6202c7f80
Moreover the return code is -1 in my test case,
but that does not imply EPERM: Operation not permitted.
It was all unnecessary mess, including the pcall+error() pair.
Also avoid some double-wrapping by '[prefil]'.

2 months agoMerge !1693: daemon/main.c: fix musl incompatible pointer types docs-master-mgcjyq/deployments/6852 docs-master-mgcjyq/deployments/6853 docs-master-mgcjyq/deployments/6855 docs-nightly-t152d1/deployments/6854 obs-knot-resolver-es11k1/deployments/6856
Vladimír Čunát [Sat, 24 May 2025 08:46:21 +0000 (10:46 +0200)] 
Merge !1693: daemon/main.c: fix musl incompatible pointer types

2 months agodaemon/main.c: fix musl incompatible pointer types
Nicolas PARLANT [Sat, 24 May 2025 05:26:35 +0000 (07:26 +0200)] 
daemon/main.c: fix musl incompatible pointer types

> ../knot-resolver-6.0.12/daemon/main.c:418:46: warning: incompatible
> pointer types passing 'struct sockaddr_un *' to parameter of type 'const
> struct sockaddr *' [-Wincompatible-pointer-types]

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
2 months agoMerge !1691: ci: Fedora: +42 -40 docs-master-mgcjyq/deployments/6841 docs-master-mgcjyq/deployments/6844 docs-master-mgcjyq/deployments/6846 docs-master-mgcjyq/deployments/6848 docs-master-mgcjyq/deployments/6850 docs-nightly-t152d1/deployments/6845 docs-nightly-t152d1/deployments/6849 obs-knot-resolver-es11k1/deployments/6847 obs-knot-resolver-es11k1/deployments/6851
Vladimír Čunát [Thu, 22 May 2025 16:57:39 +0000 (18:57 +0200)] 
Merge !1691: ci: Fedora: +42 -40

2 months agoci: Fedora: +42 -40 docs-ci-fedora-0vspdi/deployments/6840
Vladimír Čunát [Thu, 22 May 2025 16:48:33 +0000 (18:48 +0200)] 
ci: Fedora: +42 -40

40 had EOL the previous week, so let's clean up:
https://fedorapeople.org/groups/schedule/f-40/f-40-key-tasks.html

2 months agoMerge !1689: treewide: C++ compatibility in headers docs-master-mgcjyq/deployments/6826 docs-master-mgcjyq/deployments/6828 docs-master-mgcjyq/deployments/6830 docs-master-mgcjyq/deployments/6833 docs-master-mgcjyq/deployments/6835 docs-nightly-t152d1/deployments/6829 docs-nightly-t152d1/deployments/6834 obs-knot-resolver-es11k1/deployments/6831 obs-knot-resolver-es11k1/deployments/6836
Vladimír Čunát [Tue, 20 May 2025 12:52:44 +0000 (14:52 +0200)] 
Merge !1689: treewide: C++ compatibility in headers

2 months agotests: add check for C++ compatibility in headers docs-cpp-compat-c7btca/deployments/6825
Vladimír Čunát [Tue, 20 May 2025 06:28:32 +0000 (08:28 +0200)] 
tests: add check for C++ compatibility in headers

2 months agotreewide: explicit conversions to/from void* in (some) headers
Vladimír Čunát [Tue, 20 May 2025 06:28:32 +0000 (08:28 +0200)] 
treewide: explicit conversions to/from void* in (some) headers

They're not needed in C, but they are in C++.  While -fpermissive can
downgrade these to warnings, it's still more troublesome than a fix.

2 months agotreewide: more C++ compatibility in headers
Vladimír Čunát [Tue, 20 May 2025 06:28:32 +0000 (08:28 +0200)] 
treewide: more C++ compatibility in headers

2 months agolib/selection*: avoid using `private` identifier; because C++
Vladimír Čunát [Tue, 20 May 2025 06:28:32 +0000 (08:28 +0200)] 
lib/selection*: avoid using `private` identifier; because C++

2 months agoMerge !1649: ci: docs and manager jobs reorganization docs-master-mgcjyq/deployments/6776 docs-master-mgcjyq/deployments/6777 docs-master-mgcjyq/deployments/6779 docs-master-mgcjyq/deployments/6782 docs-master-mgcjyq/deployments/6784 docs-master-mgcjyq/deployments/6789 docs-master-mgcjyq/deployments/6790 docs-master-mgcjyq/deployments/6793 docs-master-mgcjyq/deployments/6795 docs-master-mgcjyq/deployments/6799 docs-master-mgcjyq/deployments/6801 docs-master-mgcjyq/deployments/6803 docs-master-mgcjyq/deployments/6805 docs-master-mgcjyq/deployments/6807 docs-master-mgcjyq/deployments/6809 docs-master-mgcjyq/deployments/6820 docs-master-mgcjyq/deployments/6822 docs-nightly-t152d1/deployments/6778 docs-nightly-t152d1/deployments/6783 docs-nightly-t152d1/deployments/6794 docs-nightly-t152d1/deployments/6800 docs-nightly-t152d1/deployments/6804 docs-nightly-t152d1/deployments/6808 docs-nightly-t152d1/deployments/6821 obs-knot-resolver-es11k1/deployments/6780 obs-knot-resolver-es11k1/deployments/6785 obs-knot-resolver-es11k1/deployments/6791 obs-knot-resolver-es11k1/deployments/6796 obs-knot-resolver-es11k1/deployments/6802 obs-knot-resolver-es11k1/deployments/6806 obs-knot-resolver-es11k1/deployments/6810 obs-knot-resolver-es11k1/deployments/6823
Vladimír Čunát [Mon, 12 May 2025 14:20:09 +0000 (16:20 +0200)] 
Merge !1649: ci: docs and manager jobs reorganization

2 months ago.gitlab-ci.yml: docs:pages: added 'pages: true' docs-ci-jobs-reor-cvkywl/deployments/6775
Aleš Mrázek [Mon, 12 May 2025 13:15:00 +0000 (15:15 +0200)] 
.gitlab-ci.yml: docs:pages: added 'pages: true'

2 months agodoc: better build parallelism
Vladimír Čunát [Thu, 3 Apr 2025 12:13:28 +0000 (14:13 +0200)] 
doc: better build parallelism

`auto` isn't perfect because of nested parallelism,
but I don't see another simple way here,
and I hope the potential slight overload will be OK for docs.

2 months ago.gitlab-ci.yml: IMAGE_TAG update
Aleš Mrázek [Mon, 24 Mar 2025 14:16:15 +0000 (15:16 +0100)] 
.gitlab-ci.yml: IMAGE_TAG update

2 months ago.gitlab-ci.yml: removed 'release' stage
Aleš Mrázek [Wed, 22 Jan 2025 13:03:34 +0000 (14:03 +0100)] 
.gitlab-ci.yml: removed 'release' stage

2 months ago.gitlab-ci.yml: python: parallel unit tests
Aleš Mrázek [Tue, 21 Jan 2025 15:27:00 +0000 (16:27 +0100)] 
.gitlab-ci.yml: python: parallel unit tests

2 months ago.gitlab-ci.yml: docs: improvements
Aleš Mrázek [Mon, 20 Jan 2025 15:37:19 +0000 (16:37 +0100)] 
.gitlab-ci.yml: docs: improvements

- docs:environment: replacement for docs:develop and docs:release
- docs:website: use CI_COMMIT_REF_NAME

2 months ago.gitlab-ci.yml: release stage added
Aleš Mrázek [Fri, 17 Jan 2025 14:49:29 +0000 (15:49 +0100)] 
.gitlab-ci.yml: release stage added

2 months agoMerge !1686: daemon: fix a memory leak present since v6.0.9 docs-develop-mast-tzgd0f/deployments/6773
Vladimír Čunát [Mon, 12 May 2025 12:42:26 +0000 (14:42 +0200)] 
Merge !1686: daemon: fix a memory leak present since v6.0.9

Fixes #927

2 months agodaemon/defer: minor optimization if not debug-logging docs-develop-memo-31psfq/deployments/6772
Vladimír Čunát [Sat, 10 May 2025 09:11:14 +0000 (11:11 +0200)] 
daemon/defer: minor optimization if not debug-logging

Avoids computing those kr_straddr() and sometimes others.

2 months agodaemon/defer nit: refactor break_query() a little
Vladimír Čunát [Sat, 10 May 2025 09:11:14 +0000 (11:11 +0200)] 
daemon/defer nit: refactor break_query() a little

2 months agodaemon/session2_{inc,dec}_refs() nit: allow compiler to inline
Vladimír Čunát [Sat, 10 May 2025 09:11:14 +0000 (11:11 +0200)] 
daemon/session2_{inc,dec}_refs() nit: allow compiler to inline

The `inline + extern inline` combination is kind-of arcane,
but I find it nice to leave it to compiler whether to inline or not.
(in particular, in debug builds it's probably better not to inline this)

2 months agodaemon/session2: use ref_count only for deferred iter_ctx (fixes #927)
Lukáš Ondráček [Tue, 6 May 2025 12:10:04 +0000 (14:10 +0200)] 
daemon/session2: use ref_count only for deferred iter_ctx (fixes #927)

Partially reverts bb1babf0, where the memory-leak bug was introduced.

2 months agoMerge branch 'datamodel-defer-fix' into 'master' docs-develop-mast-tzgd0f/deployments/6755 docs-develop-mast-tzgd0f/deployments/6758 docs-develop-mast-tzgd0f/deployments/6760 docs-develop-mast-tzgd0f/deployments/6764 docs-develop-mast-tzgd0f/deployments/6766 docs-develop-mast-tzgd0f/deployments/6768 docs-develop-mast-tzgd0f/deployments/6770 docs-develop-nigh-589znp/deployments/6759 docs-develop-nigh-589znp/deployments/6765 docs-develop-nigh-589znp/deployments/6769 obs-knot-resolver-es11k1/deployments/6771
Aleš Mrázek [Fri, 9 May 2025 08:19:44 +0000 (10:19 +0200)] 
Merge branch 'datamodel-defer-fix' into 'master'

datamodel/templates: fix undefined disable_defer

See merge request knot/knot-resolver!1685

2 months agodatamodel/templates: fix undefined disable_defer docs-develop-data-sio77z/deployments/6754
Lukáš Ondráček [Tue, 6 May 2025 13:12:31 +0000 (15:12 +0200)] 
datamodel/templates: fix undefined disable_defer

2 months agoMerge branch 'dnssec-false' into 'master' docs-develop-mast-tzgd0f/deployments/6753
Aleš Mrázek [Fri, 9 May 2025 08:07:42 +0000 (10:07 +0200)] 
Merge branch 'dnssec-false' into 'master'

datamodel/templates: fix `dnssec: false`

See merge request knot/knot-resolver!1687

2 months agodatamodel/templates: fix `dnssec: false` docs-develop-dnss-fm2e6n/deployments/6752
Vladimír Čunát [Fri, 9 May 2025 06:50:21 +0000 (08:50 +0200)] 
datamodel/templates: fix `dnssec: false`

3 months agoMerge !1684: tests/integration/deckard: update to latest master docs-develop-mast-tzgd0f/deployments/6702 docs-develop-mast-tzgd0f/deployments/6706 docs-develop-mast-tzgd0f/deployments/6708 docs-develop-mast-tzgd0f/deployments/6710 docs-develop-mast-tzgd0f/deployments/6711 docs-develop-mast-tzgd0f/deployments/6713 docs-develop-mast-tzgd0f/deployments/6715 docs-develop-mast-tzgd0f/deployments/6717 docs-develop-mast-tzgd0f/deployments/6719 docs-develop-mast-tzgd0f/deployments/6721 docs-develop-mast-tzgd0f/deployments/6723 docs-develop-mast-tzgd0f/deployments/6725 docs-develop-mast-tzgd0f/deployments/6727 docs-develop-mast-tzgd0f/deployments/6729 docs-develop-mast-tzgd0f/deployments/6731 docs-develop-mast-tzgd0f/deployments/6739 docs-develop-mast-tzgd0f/deployments/6741 docs-develop-mast-tzgd0f/deployments/6744 docs-develop-mast-tzgd0f/deployments/6746 docs-develop-mast-tzgd0f/deployments/6748 docs-develop-mast-tzgd0f/deployments/6750 docs-develop-nigh-589znp/deployments/6707 docs-develop-nigh-589znp/deployments/6714 docs-develop-nigh-589znp/deployments/6718 docs-develop-nigh-589znp/deployments/6722 docs-develop-nigh-589znp/deployments/6726 docs-develop-nigh-589znp/deployments/6730 docs-develop-nigh-589znp/deployments/6740 docs-develop-nigh-589znp/deployments/6745 docs-develop-nigh-589znp/deployments/6749
Vladimír Čunát [Tue, 29 Apr 2025 10:50:36 +0000 (12:50 +0200)] 
Merge !1684: tests/integration/deckard: update to latest master

3 months agotests/integration/deckard: update to latest master docs-develop-deck-nxo9zv/deployments/6701
Vladimír Čunát [Tue, 29 Apr 2025 10:38:29 +0000 (12:38 +0200)] 
tests/integration/deckard: update to latest master

Hack-compatibility with python >= 3.11

3 months agoMerge branch 'release-6.0.12' into 'master' docs-develop-mast-tzgd0f/deployments/6668 docs-develop-mast-tzgd0f/deployments/6679 docs-develop-mast-tzgd0f/deployments/6680 docs-develop-mast-tzgd0f/deployments/6682 docs-develop-mast-tzgd0f/deployments/6684 docs-develop-mast-tzgd0f/deployments/6686 docs-develop-mast-tzgd0f/deployments/6688 docs-develop-mast-tzgd0f/deployments/6690 docs-develop-mast-tzgd0f/deployments/6692 docs-develop-mast-tzgd0f/deployments/6697 docs-develop-mast-tzgd0f/deployments/6699 docs-develop-nigh-589znp/deployments/6683 docs-develop-nigh-589znp/deployments/6687 docs-develop-nigh-589znp/deployments/6691 docs-develop-nigh-589znp/deployments/6698 docs-release-v6-0-vs669f/deployments/6670 v6.0.12
Aleš Mrázek [Thu, 24 Apr 2025 09:32:24 +0000 (11:32 +0200)] 
Merge branch 'release-6.0.12' into 'master'

Release 6.0.12

See merge request knot/knot-resolver!1680