]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
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

3 months agorelease 6.0.12 docs-develop-rele-uf0x3d/deployments/6663
Aleš Mrázek [Thu, 24 Apr 2025 08:39:17 +0000 (10:39 +0200)] 
release 6.0.12

3 months agoMerge !1682: DoS: fix rare crashes docs-develop-mast-tzgd0f/deployments/6661
Vladimír Čunát [Thu, 24 Apr 2025 08:51:52 +0000 (10:51 +0200)] 
Merge !1682: DoS: fix rare crashes

3 months agoNEWS: classify these issues as "security"
Vladimír Čunát [Thu, 24 Apr 2025 08:10:44 +0000 (10:10 +0200)] 
NEWS: classify these issues as "security"

If an attacker can control client's queries
(and register names with malicious auths),
with enough work they probably can trigger the conditions often.

3 months agodaemon/session2_tasklist_del(): be more defensive
Vladimír Čunát [Thu, 24 Apr 2025 08:10:44 +0000 (10:10 +0200)] 
daemon/session2_tasklist_del(): be more defensive

I don't expect we still have a bug here, but even so -
if this assertion fails, I don't think we need to force a crash.
A recoverable assertion seems a better choice here.

3 months agodaemon/worker pl_dns_stream_disconnected(): fix tasklist confusion
Vladimír Čunát [Thu, 24 Apr 2025 08:10:44 +0000 (10:10 +0200)] 
daemon/worker pl_dns_stream_disconnected(): fix tasklist confusion

The tasks on the waitinglist are not present in the taskslist,
so let's not incorrectly attempt removal in this case.

We didn't check the return value here, and the disconnection event
won't even happen in the typical cases, so this has been unnoticed -
until the deletion actually did find a matching msgid (lucky!)
by a *different* task (of course) which triggered an assertion (crash).

3 months agodaemon/worker send_waiting(): be more defensive
Vladimír Čunát [Thu, 24 Apr 2025 08:10:44 +0000 (10:10 +0200)] 
daemon/worker send_waiting(): be more defensive

We encountered non-recoverable assertions due to popping
from an empty queue here, but I see no reason to block recovery here.
I'm still keeping it as a soft assertion until it's better understood.

I *suspect* what happened is that:
 - multiple queries queued up before outgoing TCP handshake completed
 - the session got into closing state for some reason
   *before* processing this whole queue
 - during that the queue got emptied

3 months agoMerge !1673: doc: updates and improvements docs-develop-mast-tzgd0f/deployments/6657
Vladimír Čunát [Thu, 24 Apr 2025 08:36:46 +0000 (10:36 +0200)] 
Merge !1673: doc: updates and improvements

3 months agodoc/dev/build: migrate the systemd section to 6.x style
Vladimír Čunát [Thu, 24 Apr 2025 07:25:59 +0000 (09:25 +0200)] 
doc/dev/build: migrate the systemd section to 6.x style

3 months agodoc: typos
Lukáš Ondráček [Wed, 23 Apr 2025 15:54:08 +0000 (17:54 +0200)] 
doc: typos

3 months agodoc/dev: update building from sources
Oto Šťáva [Thu, 16 May 2024 10:02:46 +0000 (12:02 +0200)] 
doc/dev: update building from sources

Removed some outdated stuff.

3 months agodoc/user/manager-api: introduction, rewordings, warnings
Oto Šťáva [Wed, 15 May 2024 14:51:29 +0000 (16:51 +0200)] 
doc/user/manager-api: introduction, rewordings, warnings

3 months agomodules/hints docs: transplant text from the user docs
Vladimír Čunát [Wed, 8 May 2024 06:27:06 +0000 (08:27 +0200)] 
modules/hints docs: transplant text from the user docs

It will be deleted from user docs, and perhaps it could be useful.

3 months agodoc: misc minor fixes
Vladimír Čunát [Mon, 6 May 2024 12:25:51 +0000 (14:25 +0200)] 
doc: misc minor fixes

3 months agodoc/user: move cache-clearing API docs to the API page
Vladimír Čunát [Mon, 6 May 2024 08:17:14 +0000 (10:17 +0200)] 
doc/user: move cache-clearing API docs to the API page

It seemed to clutter the cache page in docs,
even though very few users will be directly interested in the API.

3 months agodoc/user/manager-api.rst: restructure this page
Vladimír Čunát [Sat, 4 May 2024 17:45:57 +0000 (19:45 +0200)] 
doc/user/manager-api.rst: restructure this page

It felt disorganized, some topics were even discussed twice,
so in this commit I tried to improve the structure of this page.

3 months agodoc: misc tiny fixes
Vladimír Čunát [Fri, 3 May 2024 09:07:22 +0000 (11:07 +0200)] 
doc: misc tiny fixes

3 months agodoc/user/gettingstarted-startup.rst: less strong formulation
Vladimír Čunát [Fri, 3 May 2024 07:40:49 +0000 (09:40 +0200)] 
doc/user/gettingstarted-startup.rst: less strong formulation

Some distros do enable knot-resolver.service on installation,
e.g. I quickly tried in a CentOS 9 LXC where it didn't start
immediately but it did after restarting the container.
I believe that customs of each distro should be followed here.

3 months agodoc/kresd.8: warn that the `knot-resolver` command is preferred
Vladimír Čunát [Fri, 3 May 2024 07:04:39 +0000 (09:04 +0200)] 
doc/kresd.8: warn that the `knot-resolver` command is preferred

We keep installing this manpage in default 6.x packaging,
so at least put a notice in there.

3 months agodoc/user: drop `man knot-resolver.systemd`
Vladimír Čunát [Fri, 3 May 2024 06:58:18 +0000 (08:58 +0200)] 
doc/user: drop `man knot-resolver.systemd`

We don't have it.  Before 6.x we used to install kresd.systemd.7
but it wasn't really more detailed than the current 6.x systemd docs.

3 months agoMerge !1677: fix DoH with multiple "parallel" queries in one connection docs-develop-mast-tzgd0f/deployments/6653
Vladimír Čunát [Thu, 24 Apr 2025 08:05:08 +0000 (10:05 +0200)] 
Merge !1677: fix DoH with multiple "parallel" queries in one connection

Closes #931

3 months agodaemon: fix DoH with multiple "parallel" queries in one connection docs-develop-doh-w2qmpf/deployments/6652
Vladimír Čunát [Thu, 24 Apr 2025 07:44:22 +0000 (09:44 +0200)] 
daemon: fix DoH with multiple "parallel" queries in one connection

3 months agoMerge !1676: modules/stats: further improve latency measurements docs-develop-mast-tzgd0f/deployments/6631 docs-develop-mast-tzgd0f/deployments/6645 docs-develop-mast-tzgd0f/deployments/6647 docs-develop-nigh-589znp/deployments/6646
Vladimír Čunát [Wed, 23 Apr 2025 08:08:34 +0000 (10:08 +0200)] 
Merge !1676: modules/stats: further improve latency measurements

3 months agomodules/stats: further improve latency measurements docs-develop-stat-aasaoy/deployments/6593
Vladimír Čunát [Mon, 14 Apr 2025 09:13:32 +0000 (11:13 +0200)] 
modules/stats: further improve latency measurements

libuv's updating the stamp just once per event loop
might be too coarse, as processing multiple packets
(e.g. DNSSEC validation) may take milliseconds together.

Of course we still don't measure e.g. the time when incoming
client requests stay in OS buffers.

3 months agolib: clarify the doc-comment for struct kr_query::timestamp
Vladimír Čunát [Mon, 14 Apr 2025 09:13:32 +0000 (11:13 +0200)] 
lib: clarify the doc-comment for struct kr_query::timestamp

3 months agomodules/stats: fix calculation of request's latency
Vladimír Čunát [Mon, 14 Apr 2025 09:13:32 +0000 (11:13 +0200)] 
modules/stats: fix calculation of request's latency

4 months agoMerge branch 'ci-docker-buildx-stop' into 'master' docs-develop-mast-tzgd0f/deployments/6544 docs-develop-mast-tzgd0f/deployments/6546 docs-develop-mast-tzgd0f/deployments/6547 docs-develop-mast-tzgd0f/deployments/6552 docs-develop-mast-tzgd0f/deployments/6553 docs-develop-mast-tzgd0f/deployments/6555 docs-develop-mast-tzgd0f/deployments/6557 docs-develop-mast-tzgd0f/deployments/6559 docs-develop-mast-tzgd0f/deployments/6560 docs-develop-mast-tzgd0f/deployments/6563 docs-develop-mast-tzgd0f/deployments/6565 docs-develop-mast-tzgd0f/deployments/6568 docs-develop-mast-tzgd0f/deployments/6569 docs-develop-mast-tzgd0f/deployments/6572 docs-develop-mast-tzgd0f/deployments/6573 docs-develop-mast-tzgd0f/deployments/6575 docs-develop-mast-tzgd0f/deployments/6577 docs-develop-mast-tzgd0f/deployments/6579 docs-develop-mast-tzgd0f/deployments/6580 docs-develop-mast-tzgd0f/deployments/6582 docs-develop-mast-tzgd0f/deployments/6584 docs-develop-mast-tzgd0f/deployments/6586 docs-develop-mast-tzgd0f/deployments/6588 docs-develop-mast-tzgd0f/deployments/6595 docs-develop-mast-tzgd0f/deployments/6596 docs-develop-mast-tzgd0f/deployments/6600 docs-develop-mast-tzgd0f/deployments/6602 docs-develop-mast-tzgd0f/deployments/6604 docs-develop-mast-tzgd0f/deployments/6605 docs-develop-mast-tzgd0f/deployments/6607 docs-develop-mast-tzgd0f/deployments/6609 docs-develop-mast-tzgd0f/deployments/6611 docs-develop-mast-tzgd0f/deployments/6613 docs-develop-mast-tzgd0f/deployments/6615 docs-develop-mast-tzgd0f/deployments/6617 docs-develop-mast-tzgd0f/deployments/6619 docs-develop-mast-tzgd0f/deployments/6620 docs-develop-mast-tzgd0f/deployments/6622 docs-develop-mast-tzgd0f/deployments/6624 docs-develop-mast-tzgd0f/deployments/6627 docs-develop-mast-tzgd0f/deployments/6629 docs-develop-nigh-589znp/deployments/6556 docs-develop-nigh-589znp/deployments/6564 docs-develop-nigh-589znp/deployments/6576 docs-develop-nigh-589znp/deployments/6583 docs-develop-nigh-589znp/deployments/6587 docs-develop-nigh-589znp/deployments/6601 docs-develop-nigh-589znp/deployments/6608 docs-develop-nigh-589znp/deployments/6612 docs-develop-nigh-589znp/deployments/6616 docs-develop-nigh-589znp/deployments/6623 docs-develop-nigh-589znp/deployments/6628
Aleš Mrázek [Thu, 3 Apr 2025 13:29:31 +0000 (15:29 +0200)] 
Merge branch 'ci-docker-buildx-stop' into 'master'

ci: docker: stop buildx after cross-platform build

See merge request knot/knot-resolver!1674

4 months agoci: docker: stop buildx after cross-platform build
Aleš Mrázek [Thu, 3 Apr 2025 13:29:31 +0000 (15:29 +0200)] 
ci: docker: stop buildx after cross-platform build

4 months agoMerge !1665: manager: files watchdog for RPZ and some improvements docs-develop-mast-tzgd0f/deployments/6521 docs-develop-mast-tzgd0f/deployments/6522 docs-develop-mast-tzgd0f/deployments/6523 docs-develop-mast-tzgd0f/deployments/6529 docs-develop-mast-tzgd0f/deployments/6531 docs-develop-nigh-589znp/deployments/6530
Vladimír Čunát [Tue, 1 Apr 2025 17:22:58 +0000 (19:22 +0200)] 
Merge !1665: manager: files watchdog for RPZ and some improvements

4 months agomanager: server: have/has typo docs-develop-mana-rbp6vi/deployments/6519
Aleš Mrázek [Tue, 1 Apr 2025 09:51:28 +0000 (11:51 +0200)] 
manager: server: have/has typo

4 months agotests/packaging/interactive: watchdog.sh renamed to tls_cert_watchdog.sh
Aleš Mrázek [Tue, 1 Apr 2025 09:27:51 +0000 (11:27 +0200)] 
tests/packaging/interactive: watchdog.sh renamed to tls_cert_watchdog.sh

4 months agomanager: files: watchdog: added RPZ files
Aleš Mrázek [Tue, 4 Mar 2025 14:13:20 +0000 (15:13 +0100)] 
manager: files: watchdog: added RPZ files

Separate timer for each command.

4 months agodatamodel: local-data: added watchdog for RPZSchema
Aleš Mrázek [Thu, 6 Feb 2025 10:44:41 +0000 (11:44 +0100)] 
datamodel: local-data: added watchdog for RPZSchema

4 months agomanager: files: watchdog for all files
Aleš Mrázek [Fri, 21 Feb 2025 14:28:28 +0000 (15:28 +0100)] 
manager: files: watchdog for all files

4 months agoMerge !1671: doc: include jquery for sphinx version >= 2.* docs-develop-mast-tzgd0f/deployments/6518
Vladimír Čunát [Tue, 1 Apr 2025 13:17:02 +0000 (15:17 +0200)] 
Merge !1671: doc: include jquery for sphinx version >= 2.*

4 months agoDoc: include jquery for sphinx version equal or greater to 2.* docs-develop-doc-btpwyh/deployments/6517
Frantisek Tobias [Tue, 1 Apr 2025 12:03:13 +0000 (14:03 +0200)] 
Doc: include jquery for sphinx version equal or greater to 2.*

4 months agoMerge !1667: doc/user: add a list of RFCs docs-develop-mast-tzgd0f/deployments/6515
Vladimír Čunát [Tue, 1 Apr 2025 12:32:56 +0000 (14:32 +0200)] 
Merge !1667: doc/user: add a list of RFCs

4 months agodoc/user: add a list of RFCs
Vladimír Čunát [Wed, 19 Mar 2025 07:26:15 +0000 (08:26 +0100)] 
doc/user: add a list of RFCs

Some big organizations are interested in this kind of documentation.

4 months agoMerge !1670: datamodel/templates: fix tags in /local-data/rules/*/records docs-develop-mast-tzgd0f/deployments/6513
Vladimír Čunát [Tue, 1 Apr 2025 12:23:57 +0000 (14:23 +0200)] 
Merge !1670: datamodel/templates: fix tags in /local-data/rules/*/records

4 months agodatamodel: templates: fix undefined variables and attributes docs-develop-loca-69s24w/deployments/6478
Aleš Mrázek [Thu, 27 Mar 2025 12:07:56 +0000 (13:07 +0100)] 
datamodel: templates: fix undefined variables and attributes

4 months agodatamodel: templates: set StrictUndefined for undefined variables
Aleš Mrázek [Thu, 27 Mar 2025 11:09:51 +0000 (12:09 +0100)] 
datamodel: templates: set StrictUndefined for undefined variables

4 months agodatamodel/templates: fix tags in /local-data/rules/*/records docs-develop-loca-69s24w/deployments/6477
Vladimír Čunát [Thu, 27 Mar 2025 10:42:11 +0000 (11:42 +0100)] 
datamodel/templates: fix tags in /local-data/rules/*/records

It was generating 0 silently, which is as if not specifying any tag-list.

4 months agoMerge branch 'ci-docker-fedora-update' into 'master' docs-develop-dnam-mdepux/deployments/6464 docs-develop-mast-tzgd0f/deployments/6454 docs-develop-mast-tzgd0f/deployments/6459 docs-develop-mast-tzgd0f/deployments/6461 docs-develop-mast-tzgd0f/deployments/6470 docs-develop-mast-tzgd0f/deployments/6472 docs-develop-mast-tzgd0f/deployments/6474 docs-develop-mast-tzgd0f/deployments/6475 docs-develop-mast-tzgd0f/deployments/6488 docs-develop-mast-tzgd0f/deployments/6490 docs-develop-mast-tzgd0f/deployments/6493 docs-develop-mast-tzgd0f/deployments/6495 docs-develop-mast-tzgd0f/deployments/6498 docs-develop-mast-tzgd0f/deployments/6499 docs-develop-mast-tzgd0f/deployments/6501 docs-develop-mast-tzgd0f/deployments/6503 docs-develop-nigh-589znp/deployments/6460 docs-develop-nigh-589znp/deployments/6471 docs-develop-nigh-589znp/deployments/6489 docs-develop-nigh-589znp/deployments/6494 docs-develop-nigh-589znp/deployments/6502
Aleš Mrázek [Mon, 24 Mar 2025 12:36:08 +0000 (13:36 +0100)] 
Merge branch 'ci-docker-fedora-update' into 'master'

ci: update to new IMAGE_TAG with newer Fedora release

See merge request knot/knot-resolver!1669

4 months agoci: update to new IMAGE_TAG with newer Fedora release
Aleš Mrázek [Mon, 24 Mar 2025 12:36:08 +0000 (13:36 +0100)] 
ci: update to new IMAGE_TAG with newer Fedora release

4 months agoMerge !1666: ci: pkg: add ubuntu 25.04 docs-develop-mast-tzgd0f/deployments/6420 docs-develop-mast-tzgd0f/deployments/6421 docs-develop-mast-tzgd0f/deployments/6423 docs-develop-mast-tzgd0f/deployments/6426 docs-develop-mast-tzgd0f/deployments/6427 docs-develop-mast-tzgd0f/deployments/6431 docs-develop-mast-tzgd0f/deployments/6433 docs-develop-mast-tzgd0f/deployments/6435 docs-develop-mast-tzgd0f/deployments/6436 docs-develop-mast-tzgd0f/deployments/6441 docs-develop-mast-tzgd0f/deployments/6442 docs-develop-mast-tzgd0f/deployments/6444 docs-develop-mast-tzgd0f/deployments/6446 docs-develop-mast-tzgd0f/deployments/6448 docs-develop-mast-tzgd0f/deployments/6449 docs-develop-nigh-589znp/deployments/6422 docs-develop-nigh-589znp/deployments/6432 docs-develop-nigh-589znp/deployments/6445 obs-knot-resolver-es11k1/deployments/6424
Vladimír Čunát [Mon, 17 Mar 2025 18:02:37 +0000 (19:02 +0100)] 
Merge !1666: ci: pkg: add ubuntu 25.04

4 months agoci: pkg: add ubuntu 25.04 docs-develop-ci-u-bkzx3k/deployments/6418
Jakub Ružička [Mon, 17 Mar 2025 12:19:59 +0000 (13:19 +0100)] 
ci: pkg: add ubuntu 25.04

5 months agoMerge !1664: datamodel: management: reverting to absolute path for unix-socket docs-develop-dnam-g2k2gz/deployments/6393 docs-develop-mast-tzgd0f/deployments/6316 docs-develop-mast-tzgd0f/deployments/6320 docs-develop-mast-tzgd0f/deployments/6321 docs-develop-mast-tzgd0f/deployments/6323 docs-develop-mast-tzgd0f/deployments/6324 docs-develop-mast-tzgd0f/deployments/6332 docs-develop-mast-tzgd0f/deployments/6334 docs-develop-mast-tzgd0f/deployments/6337 docs-develop-mast-tzgd0f/deployments/6338 docs-develop-mast-tzgd0f/deployments/6343 docs-develop-mast-tzgd0f/deployments/6345 docs-develop-mast-tzgd0f/deployments/6351 docs-develop-mast-tzgd0f/deployments/6352 docs-develop-mast-tzgd0f/deployments/6354 docs-develop-mast-tzgd0f/deployments/6356 docs-develop-mast-tzgd0f/deployments/6358 docs-develop-mast-tzgd0f/deployments/6360 docs-develop-mast-tzgd0f/deployments/6362 docs-develop-mast-tzgd0f/deployments/6364 docs-develop-mast-tzgd0f/deployments/6375 docs-develop-mast-tzgd0f/deployments/6377 docs-develop-mast-tzgd0f/deployments/6381 docs-develop-mast-tzgd0f/deployments/6383 docs-develop-mast-tzgd0f/deployments/6386 docs-develop-mast-tzgd0f/deployments/6387 docs-develop-mast-tzgd0f/deployments/6397 docs-develop-mast-tzgd0f/deployments/6398 docs-develop-mast-tzgd0f/deployments/6404 docs-develop-mast-tzgd0f/deployments/6406 docs-develop-mast-tzgd0f/deployments/6408 docs-develop-mast-tzgd0f/deployments/6410 docs-develop-mast-tzgd0f/deployments/6412 docs-develop-mast-tzgd0f/deployments/6414 docs-develop-nigh-589znp/deployments/6325 docs-develop-nigh-589znp/deployments/6333 docs-develop-nigh-589znp/deployments/6344 docs-develop-nigh-589znp/deployments/6355 docs-develop-nigh-589znp/deployments/6359 docs-develop-nigh-589znp/deployments/6363 docs-develop-nigh-589znp/deployments/6376 docs-develop-nigh-589znp/deployments/6382 docs-develop-nigh-589znp/deployments/6405 docs-develop-nigh-589znp/deployments/6409 docs-develop-nigh-589znp/deployments/6413 obs-knot-resolver-es11k1/deployments/6322 obs-knot-resolver-es11k1/deployments/6326 obs-knot-resolver-es11k1/deployments/6335 obs-knot-resolver-es11k1/deployments/6339 obs-knot-resolver-es11k1/deployments/6346 obs-knot-resolver-es11k1/deployments/6353 obs-knot-resolver-es11k1/deployments/6357 obs-knot-resolver-es11k1/deployments/6361 obs-knot-resolver-es11k1/deployments/6365 obs-knot-resolver-es11k1/deployments/6378 obs-knot-resolver-es11k1/deployments/6384 obs-knot-resolver-es11k1/deployments/6388 obs-knot-resolver-es11k1/deployments/6399 obs-knot-resolver-es11k1/deployments/6407 obs-knot-resolver-es11k1/deployments/6411 obs-knot-resolver-es11k1/deployments/6415
Vladimír Čunát [Fri, 28 Feb 2025 09:40:27 +0000 (10:40 +0100)] 
Merge !1664: datamodel: management: reverting to absolute path for unix-socket

Fixes #926

5 months agoNEWS: update about revert docs-develop-data-2jyaum/deployments/6315
Aleš Mrázek [Fri, 28 Feb 2025 09:18:04 +0000 (10:18 +0100)] 
NEWS: update about revert

5 months agoclient: command: get_socket_from_config improved
Aleš Mrázek [Fri, 28 Feb 2025 09:17:17 +0000 (10:17 +0100)] 
client: command: get_socket_from_config improved

5 months agodatamodel: management: warning that the unix-socket is not located in rundir
Aleš Mrázek [Fri, 28 Feb 2025 09:14:22 +0000 (10:14 +0100)] 
datamodel: management: warning that the unix-socket is not located in rundir