]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
11 months agocache: move setting EDE "Stale Answer" to the the serve_stale module.
menakite [Wed, 14 Aug 2024 17:36:54 +0000 (19:36 +0200)] 
cache: move setting EDE "Stale Answer" to the the serve_stale module.

It is not guaranteed yet that the request will finish in state DONE.
This prevents other EDE codes from being applied to the request and in
case the request ends in FAIL state it produces a SERVFAIL answer with
EDE "Stale Answer", which is a bit weird.
Move setting EDEs in answer_finalize in the serve_stale module, where
the proper EDE in case of NXDOMAIN is set too.

11 months agoMerge !1591: modules/stats add answer.stale docs-develop-mast-tzgd0f/deployments/4919 docs-develop-mast-tzgd0f/deployments/4920 docs-develop-mast-tzgd0f/deployments/4923 docs-develop-nigh-589znp/deployments/4921 obs-knot-resolver-es11k1/deployments/4922
Vladimír Čunát [Mon, 19 Aug 2024 15:16:38 +0000 (17:16 +0200)] 
Merge !1591: modules/stats add answer.stale

11 months agomodules/stats: add answer.stale
Frantisek Tobias [Mon, 19 Aug 2024 15:16:38 +0000 (17:16 +0200)] 
modules/stats: add answer.stale

11 months agoMerge !1588: validator: avoid clearing EDE if request didn't actually fail docs-develop-mast-tzgd0f/deployments/4915
Vladimír Čunát [Mon, 19 Aug 2024 13:54:37 +0000 (15:54 +0200)] 
Merge !1588: validator: avoid clearing EDE if request didn't actually fail

11 months agovalidator nit: move validate_wrapper() to a better place
Vladimír Čunát [Mon, 19 Aug 2024 13:42:11 +0000 (15:42 +0200)] 
validator nit: move validate_wrapper() to a better place

11 months agovalidator: avoid clearing EDE if query didn't actually fail
menakite [Fri, 9 Aug 2024 23:19:40 +0000 (01:19 +0200)] 
validator: avoid clearing EDE if query didn't actually fail

11 months agoMerge !1576: views: improve interaction with old-style policies docs-develop-mast-tzgd0f/deployments/4867 docs-develop-mast-tzgd0f/deployments/4868 docs-develop-mast-tzgd0f/deployments/4871 docs-develop-mast-tzgd0f/deployments/4877 docs-develop-mast-tzgd0f/deployments/4880 docs-develop-mast-tzgd0f/deployments/4888 docs-develop-mast-tzgd0f/deployments/4891 docs-develop-mast-tzgd0f/deployments/4901 docs-develop-mast-tzgd0f/deployments/4904 docs-develop-mast-tzgd0f/deployments/4905 docs-develop-mast-tzgd0f/deployments/4908 docs-develop-mast-tzgd0f/deployments/4909 docs-develop-mast-tzgd0f/deployments/4912 docs-develop-nigh-589znp/deployments/4869 docs-develop-nigh-589znp/deployments/4878 docs-develop-nigh-589znp/deployments/4889 docs-develop-nigh-589znp/deployments/4902 docs-develop-nigh-589znp/deployments/4906 docs-develop-nigh-589znp/deployments/4910 obs-knot-resolver-es11k1/deployments/4870 obs-knot-resolver-es11k1/deployments/4879 obs-knot-resolver-es11k1/deployments/4890 obs-knot-resolver-es11k1/deployments/4903 obs-knot-resolver-es11k1/deployments/4907 obs-knot-resolver-es11k1/deployments/4911
Vladimír Čunát [Tue, 13 Aug 2024 12:17:26 +0000 (14:17 +0200)] 
Merge !1576: views: improve interaction with old-style policies

11 months agoviews: improve interaction with old-style policies docs-develop-view-dyr92b/deployments/4866
Vladimír Čunát [Thu, 25 Jul 2024 12:27:04 +0000 (14:27 +0200)] 
views: improve interaction with old-style policies

i.e. respect the old chain-rule notion in this case.
... because why not, and someone wanted to use it this way already.

Logically it makes sense in some cases, but I still implore to prefer
6.x -style rules where possible, as e.g. the interations are better.

11 months agoMerge !1585: daemon,lib: sync EDE codes supported by libknot 3.3 docs-develop-mast-tzgd0f/deployments/4864
Vladimír Čunát [Tue, 13 Aug 2024 11:51:38 +0000 (13:51 +0200)] 
Merge !1585: daemon,lib: sync EDE codes supported by libknot 3.3

11 months ago{daemon,lib}: sync EDE codes supported by libknot. docs-develop-tmp-33cn38/deployments/4863
menakite [Wed, 7 Aug 2024 14:14:09 +0000 (16:14 +0200)] 
{daemon,lib}: sync EDE codes supported by libknot.

Adds the following extended error codes:
  * 25 (Signature Expired before Valid): KNOT_EDNS_EDE_EXPIRED_INV
  * 26 (Too Early): KNOT_EDNS_EDE_TOO_EARLY
  * 27 (Unsupported NSEC3 Iterations Value): KNOT_EDNS_EDE_NSEC3_ITERS
  * 28 (Unable to conform to policy): KNOT_EDNS_EDE_NONCONF_POLICY
  * 29 (Synthesized): KNOT_EDNS_EDE_SYNTHESIZED

11 months agoMerge !1589: iterator: fix handling of ANY queries and != IN classes. docs-develop-mast-tzgd0f/deployments/4848 docs-develop-mast-tzgd0f/deployments/4849 docs-develop-mast-tzgd0f/deployments/4851 obs-knot-resolver-es11k1/deployments/4850
Vladimír Čunát [Mon, 12 Aug 2024 10:52:40 +0000 (12:52 +0200)] 
Merge !1589: iterator: fix handling of ANY queries and != IN classes.

11 months agoNEWS+comment for the parent commit docs-develop-fix-gakq6a/deployments/4847
Vladimír Čunát [Mon, 12 Aug 2024 08:57:11 +0000 (10:57 +0200)] 
NEWS+comment for the parent commit

11 months agoiterator: fix handling of ANY queries and != IN classes. docs-develop-fix-gakq6a/deployments/4846
menakite [Sun, 11 Aug 2024 02:07:32 +0000 (04:07 +0200)] 
iterator: fix handling of ANY queries and != IN classes.

It was supposed to answer NOTIMP, but was returning FAIL instead of
DONE and so the answer was SERVFAIL.

Also added EDE code "Not Supported" for clarity.

11 months agoMerge branch 'poe-configure-old-meson' into 'master' docs-develop-mast-tzgd0f/deployments/4826 docs-develop-mast-tzgd0f/deployments/4828 docs-develop-mast-tzgd0f/deployments/4831 docs-develop-mast-tzgd0f/deployments/4834 docs-develop-mast-tzgd0f/deployments/4837 docs-develop-mast-tzgd0f/deployments/4838 docs-develop-mast-tzgd0f/deployments/4841 docs-develop-mast-tzgd0f/deployments/4842 docs-develop-mast-tzgd0f/deployments/4845 docs-develop-nigh-589znp/deployments/4829 docs-develop-nigh-589znp/deployments/4835 docs-develop-nigh-589znp/deployments/4839 docs-develop-nigh-589znp/deployments/4843 obs-knot-resolver-es11k1/deployments/4830 obs-knot-resolver-es11k1/deployments/4836 obs-knot-resolver-es11k1/deployments/4840 obs-knot-resolver-es11k1/deployments/4844
Oto Šťáva [Thu, 8 Aug 2024 10:21:45 +0000 (12:21 +0200)] 
Merge branch 'poe-configure-old-meson' into 'master'

manager/scripts/meson-configure: fix setup for old Meson

See merge request knot/knot-resolver!1584

11 months agodoc/dev/manager-dev-env: clarifications and advanced setup docs-develop-poe-blowry/deployments/4825
Oto Šťáva [Thu, 8 Aug 2024 09:25:47 +0000 (11:25 +0200)] 
doc/dev/manager-dev-env: clarifications and advanced setup

11 months agomanager/scripts/meson-configure: fix setup for old Meson docs-develop-poe-blowry/deployments/4824
Oto Šťáva [Wed, 7 Aug 2024 13:56:24 +0000 (15:56 +0200)] 
manager/scripts/meson-configure: fix setup for old Meson

This fixes first-time setup for Meson pre-1.1.0.

11 months agoMerge !1586: lib: fix typo in generated doc for log group "zoncut" docs-develop-mast-tzgd0f/deployments/4819 docs-develop-mast-tzgd0f/deployments/4820 docs-develop-mast-tzgd0f/deployments/4823 docs-develop-nigh-589znp/deployments/4821 obs-knot-resolver-es11k1/deployments/4822
Vladimír Čunát [Wed, 7 Aug 2024 15:23:32 +0000 (17:23 +0200)] 
Merge !1586: lib: fix typo in generated doc for log group "zoncut"

11 months agolib: fix typo in generated doc for log group "zoncut".
menakite [Wed, 7 Aug 2024 14:46:42 +0000 (16:46 +0200)] 
lib: fix typo in generated doc for log group "zoncut".

Setting log_groups({ 'zonecut' }) just leads to a warning and no
"zone cut" logging shown.

11 months agoMerge branch 'proxyv2-tcp-fix' into 'master' docs-develop-mast-tzgd0f/deployments/4817
Oto Šťáva [Wed, 7 Aug 2024 08:59:14 +0000 (10:59 +0200)] 
Merge branch 'proxyv2-tcp-fix' into 'master'

daemon/proxyv2: fix client TCP/TLS + merge state structs

See merge request knot/knot-resolver!1578

11 months agoUpdate NEWS docs-develop-prox-vruo3n/deployments/4816
Oto Šťáva [Wed, 31 Jul 2024 13:53:44 +0000 (15:53 +0200)] 
Update NEWS

11 months agodaemon/proxyv2: fix client TCP/TLS + merge state structs
Oto Šťáva [Wed, 31 Jul 2024 12:16:33 +0000 (14:16 +0200)] 
daemon/proxyv2: fix client TCP/TLS + merge state structs

Firstly, this adds a missing assignment of `comm->proxy`, which would
cause the resolver not to know that a client asked via TCP/TLS, if the
proxy also asked via TCP/TLS.

Secondly, it merges `struct pl_proxyv2_sess_data` and
`struct pl_proxyv2_iter_data` into a single `struct pl_proxyv2_state`,
since they were practically the same. And it adds a bit of documentation
to the struct.

12 months agoMerge branch 'meson-jemalloc-auto' into 'master' docs-develop-mast-tzgd0f/deployments/4795 docs-develop-mast-tzgd0f/deployments/4801 docs-develop-mast-tzgd0f/deployments/4804 docs-develop-mast-tzgd0f/deployments/4812 docs-develop-mast-tzgd0f/deployments/4815 docs-develop-nigh-589znp/deployments/4802 docs-develop-nigh-589znp/deployments/4813 obs-knot-resolver-es11k1/deployments/4803 obs-knot-resolver-es11k1/deployments/4814
Oto Šťáva [Mon, 5 Aug 2024 11:47:17 +0000 (13:47 +0200)] 
Merge branch 'meson-jemalloc-auto' into 'master'

meson: make -Dmalloc=auto more clever

See merge request knot/knot-resolver!1583

12 months agomeson: make -Dmalloc=auto more clever docs-develop-meso-grzeae/deployments/4794
Vladimír Čunát [Mon, 5 Aug 2024 11:23:13 +0000 (13:23 +0200)] 
meson: make -Dmalloc=auto more clever

12 months agoMerge !1581: bench/bench_lru: make it build again, and check it in CI docs-develop-mast-tzgd0f/deployments/4774 docs-develop-mast-tzgd0f/deployments/4776 docs-develop-mast-tzgd0f/deployments/4779 docs-develop-mast-tzgd0f/deployments/4780 docs-develop-mast-tzgd0f/deployments/4783 docs-develop-mast-tzgd0f/deployments/4784 docs-develop-mast-tzgd0f/deployments/4787 docs-develop-nigh-589znp/deployments/4777 docs-develop-nigh-589znp/deployments/4781 docs-develop-nigh-589znp/deployments/4785 obs-knot-resolver-es11k1/deployments/4778 obs-knot-resolver-es11k1/deployments/4782 obs-knot-resolver-es11k1/deployments/4786
Vladimír Čunát [Fri, 2 Aug 2024 19:14:24 +0000 (21:14 +0200)] 
Merge !1581: bench/bench_lru: make it build again, and check it in CI

12 months agobench/bench_lru: make it build again, and check it in CI docs-develop-benc-tyiqon/deployments/4769
Oto Šťáva [Fri, 2 Aug 2024 13:43:04 +0000 (15:43 +0200)] 
bench/bench_lru: make it build again, and check it in CI

It's not too important, but I just stumbled upon this and it looked like
nobody has touched it in a long time. Since it's not completely broken
(the fix is trivial), I decided to fix it and add it to CI to ensure
that we can still build it. Maybe `lru` will be used some more at some
point again in the future...

12 months agoMerge branch 'doc-dev-update' into 'master' docs-develop-mast-tzgd0f/deployments/4768
Oto Šťáva [Fri, 2 Aug 2024 12:31:48 +0000 (14:31 +0200)] 
Merge branch 'doc-dev-update' into 'master'

doc/dev: various updates

See merge request knot/knot-resolver!1580

12 months agodoc/dev/build.rst: decycle the dependency with README.md + nits docs-develop-doc-jcr6nk/deployments/4767
Oto Šťáva [Fri, 2 Aug 2024 12:09:41 +0000 (14:09 +0200)] 
doc/dev/build.rst: decycle the dependency with README.md + nits

12 months agodoc/dev: misc nits docs-develop-doc-jcr6nk/deployments/4766
Vladimír Čunát [Fri, 2 Aug 2024 11:12:12 +0000 (13:12 +0200)] 
doc/dev: misc nits

12 months agodoc/dev: update the dependency/distro section
Vladimír Čunát [Fri, 2 Aug 2024 11:12:11 +0000 (13:12 +0200)] 
doc/dev: update the dependency/distro section

Also drop mention of OBS, as it's not really relevant anymore.

12 months agodoc/dev: kill remnants of our pre-meson build system
Vladimír Čunát [Fri, 2 Aug 2024 11:12:10 +0000 (13:12 +0200)] 
doc/dev: kill remnants of our pre-meson build system

12 months agoMerge branch 'doc-dev-update' into 'master' docs-develop-mast-tzgd0f/deployments/4753 docs-develop-mast-tzgd0f/deployments/4758 docs-develop-mast-tzgd0f/deployments/4761 docs-develop-nigh-589znp/deployments/4759 obs-knot-resolver-es11k1/deployments/4760
Oto Šťáva [Thu, 1 Aug 2024 12:17:29 +0000 (14:17 +0200)] 
Merge branch 'doc-dev-update' into 'master'

doc/dev: changed libknot version in Building with Meson documentation to 3.3.0+

See merge request knot/knot-resolver!1579

12 months agodoc/dev: removed outdated requirements from Knot Resolver library docs-develop-doc-jcr6nk/deployments/4752
Frantisek Tobias [Thu, 1 Aug 2024 11:25:45 +0000 (13:25 +0200)] 
doc/dev: removed outdated requirements from Knot Resolver library

12 months agodoc/dev: changed libknot version in Building with Meson documentation to 3.3.0+ docs-develop-doc-jcr6nk/deployments/4751
Frantisek Tobias [Thu, 1 Aug 2024 11:03:58 +0000 (13:03 +0200)] 
doc/dev: changed libknot version in Building with Meson documentation to 3.3.0+

12 months agoMerge branch 'manager-tls-session-ticket-secret' into 'master' docs-develop-mast-tzgd0f/deployments/4724 docs-develop-mast-tzgd0f/deployments/4725 docs-develop-mast-tzgd0f/deployments/4728 docs-develop-mast-tzgd0f/deployments/4738 docs-develop-mast-tzgd0f/deployments/4741 docs-develop-mast-tzgd0f/deployments/4746 docs-develop-mast-tzgd0f/deployments/4749 docs-develop-nigh-589znp/deployments/4726 docs-develop-nigh-589znp/deployments/4739 docs-develop-nigh-589znp/deployments/4747 obs-knot-resolver-es11k1/deployments/4727 obs-knot-resolver-es11k1/deployments/4740 obs-knot-resolver-es11k1/deployments/4748
Aleš Mrázek [Mon, 29 Jul 2024 13:04:55 +0000 (15:04 +0200)] 
Merge branch 'manager-tls-session-ticket-secret' into 'master'

manager: secret for TLS session resumption via ticket

See merge request knot/knot-resolver!1567

12 months agomanager: secret for TLS session resumption via ticket docs-develop-mana-68w5hu/deployments/4723
Aleš Mrázek [Thu, 18 Jul 2024 04:24:35 +0000 (06:24 +0200)] 
manager: secret for TLS session resumption via ticket

Create and set a secret for TLS session resumption via ticket that is the same for all running 'kresd' workers. This secret is only created if the user has not configured the secret themselves.

12 months agoMerge branch 'pkg-artifacts' into 'master' docs-develop-mast-tzgd0f/deployments/4700 docs-develop-mast-tzgd0f/deployments/4701 docs-develop-mast-tzgd0f/deployments/4703 docs-develop-mast-tzgd0f/deployments/4708 docs-develop-mast-tzgd0f/deployments/4711 docs-develop-mast-tzgd0f/deployments/4712 docs-develop-mast-tzgd0f/deployments/4715 docs-develop-mast-tzgd0f/deployments/4716 docs-develop-mast-tzgd0f/deployments/4719 docs-develop-nigh-589znp/deployments/4702 docs-develop-nigh-589znp/deployments/4709 docs-develop-nigh-589znp/deployments/4713 docs-develop-nigh-589znp/deployments/4717 obs-knot-resolver-es11k1/deployments/4704 obs-knot-resolver-es11k1/deployments/4710 obs-knot-resolver-es11k1/deployments/4714 obs-knot-resolver-es11k1/deployments/4718
Oto Šťáva [Thu, 25 Jul 2024 14:42:18 +0000 (16:42 +0200)] 
Merge branch 'pkg-artifacts' into 'master'

.gitlab-ci: expose packages from pkgtest as artifacts

See merge request knot/knot-resolver!1573

12 months ago.gitlab-ci: pkg: add Fedora 40, remove Fedora 38 docs-develop-pkg-uyhadu/deployments/4699
Oto Šťáva [Thu, 25 Jul 2024 08:09:24 +0000 (10:09 +0200)] 
.gitlab-ci: pkg: add Fedora 40, remove Fedora 38

12 months ago.gitlab-ci: expose packages from pkgtest as artifacts
Oto Šťáva [Wed, 24 Jul 2024 08:42:17 +0000 (10:42 +0200)] 
.gitlab-ci: expose packages from pkgtest as artifacts

12 months agoMerge branch 'launchpad-fix' into 'master' docs-develop-mast-tzgd0f/deployments/4695
Jakub Ružička [Thu, 25 Jul 2024 13:40:05 +0000 (15:40 +0200)] 
Merge branch 'launchpad-fix' into 'master'

distro/pkg/deb: use $(shell pwd) to fix LaunchPad fails

See merge request knot/knot-resolver!1575

12 months agodistro/pkg/deb: use $(shell pwd) to fix LaunchPad fails docs-develop-laun-srjw0l/deployments/4691
Jakub Ružička [Thu, 25 Jul 2024 11:35:14 +0000 (13:35 +0200)] 
distro/pkg/deb: use $(shell pwd) to fix LaunchPad fails

12 months agoMerge branch 'release-6.0.8' into 'master' docs-develop-mast-tzgd0f/deployments/4657 docs-develop-mast-tzgd0f/deployments/4668 docs-develop-mast-tzgd0f/deployments/4671 docs-develop-mast-tzgd0f/deployments/4679 docs-develop-mast-tzgd0f/deployments/4682 docs-develop-nigh-589znp/deployments/4669 docs-develop-nigh-589znp/deployments/4680 docs-release-v6-0-22336e/deployments/4662 obs-knot-resolver-es11k1/deployments/4670 obs-knot-resolver-es11k1/deployments/4681 v6.0.8
Aleš Mrázek [Tue, 23 Jul 2024 17:39:45 +0000 (19:39 +0200)] 
Merge branch 'release-6.0.8' into 'master'

Release 6.0.8

See merge request knot/knot-resolver!1572

12 months agomanager/tests/packaging: better kdig check docs-develop-rele-x0vj7g/deployments/4631
Oto Šťáva [Tue, 23 Jul 2024 13:18:33 +0000 (15:18 +0200)] 
manager/tests/packaging: better kdig check

12 months agoMerge: mitigate TCP flooding DoS opportunity docs-develop-rele-x0vj7g/deployments/4618 docs-develop-rele-x0vj7g/deployments/4623 obs-knot-resolver-bs4hbr/deployments/4622
Oto Šťáva [Tue, 23 Jul 2024 11:24:47 +0000 (13:24 +0200)] 
Merge: mitigate TCP flooding DoS opportunity

12 months agodistro/pkg/arch: update deps and maintainers docs-develop-rele-x0vj7g/deployments/4616
Oto Šťáva [Tue, 23 Jul 2024 09:43:43 +0000 (11:43 +0200)] 
distro/pkg/arch: update deps and maintainers

12 months agorelease 6.0.8
Aleš Mrázek [Mon, 22 Jul 2024 14:23:45 +0000 (16:23 +0200)] 
release 6.0.8

12 months agorelease 6.0.8
Vladimír Čunát [Mon, 22 Jul 2024 15:39:41 +0000 (17:39 +0200)] 
release 6.0.8

NEWS changes:
 - collect missing items
 - reduce newlines; we'd need to change the layout around
 - improve a link
 - add packaging information
 - move some things around a bit

12 months agodoc+NEWS for the buffering changes
Vladimír Čunát [Mon, 22 Jul 2024 11:42:35 +0000 (13:42 +0200)] 
doc+NEWS for the buffering changes

12 months agodaemon/tls: proper clean up of queued protolayer contexts
Oto Šťáva [Mon, 22 Jul 2024 09:28:02 +0000 (11:28 +0200)] 
daemon/tls: proper clean up of queued protolayer contexts

12 months agodaemon/session2: use kr_strerror for logging error states
Oto Šťáva [Mon, 22 Jul 2024 09:26:59 +0000 (11:26 +0200)] 
daemon/session2: use kr_strerror for logging error states

12 months agodaemon/session2: add special event for OS buffer depletion
Oto Šťáva [Tue, 11 Jun 2024 14:45:24 +0000 (16:45 +0200)] 
daemon/session2: add special event for OS buffer depletion

For the future, when we need to account for this for e.g. QUIC, which
will need to handle this in the UDP case.

12 months agodaemon: proper connection closures on queue overflow
Oto Šťáva [Tue, 11 Jun 2024 11:20:16 +0000 (13:20 +0200)] 
daemon: proper connection closures on queue overflow

12 months agodaemon/lua: bind `the_network` into lua
Vladimír Čunát [Mon, 10 Jun 2024 13:52:42 +0000 (15:52 +0200)] 
daemon/lua: bind `the_network` into lua

Because why not.  It's easy and it might become useful one day.

> (require 'ffi').C.the_network.tcp.user_timeout
1000

12 months agodaemon: set options on sockets towards clients (optionally)
Vladimír Čunát [Mon, 10 Jun 2024 13:03:23 +0000 (15:03 +0200)] 
daemon: set options on sockets towards clients (optionally)

12 months agodaemon: drop user-space buffering for sockets
Vladimír Čunát [Thu, 6 Jun 2024 12:27:43 +0000 (14:27 +0200)] 
daemon: drop user-space buffering for sockets

12 months agoMerge !1562: lib/rules: fix a bug in subnet computations docs-develop-mast-tzgd0f/deployments/4602 docs-develop-mast-tzgd0f/deployments/4606 docs-develop-mast-tzgd0f/deployments/4609 docs-develop-nigh-589znp/deployments/4607 obs-knot-resolver-es11k1/deployments/4608
Vladimír Čunát [Mon, 22 Jul 2024 11:12:57 +0000 (13:12 +0200)] 
Merge !1562: lib/rules: fix a bug in subnet computations

12 months agolib/rules subnet_encode(): improve doc-comments docs-develop-view-bqt0wo/deployments/4601
Vladimír Čunát [Thu, 27 Jun 2024 07:53:11 +0000 (09:53 +0200)] 
lib/rules subnet_encode(): improve doc-comments

12 months agolib/rules nit: missing `static` for a function
Vladimír Čunát [Wed, 26 Jun 2024 14:07:13 +0000 (16:07 +0200)] 
lib/rules nit: missing `static` for a function

12 months agolib/rules: fix a bug in subnet computations
Vladimír Čunát [Wed, 26 Jun 2024 13:05:54 +0000 (15:05 +0200)] 
lib/rules: fix a bug in subnet computations

The problem mainly affected subnets not aligned on whole bytes,
but maybe also others.  Reported:
https://lists.nic.cz/hyperkitty/list/knot-resolver-users@lists.nic.cz/message/6P2JPK72WMVLP45TDV42DTACEA2N5NW2/

I'm really sorry about this; no idea why I thought that the simple
multiplication would suffice.

12 months agoMerge branch 'kresctl-convert-policy-loader' into 'master' docs-develop-mast-tzgd0f/deployments/4586 docs-develop-mast-tzgd0f/deployments/4587 docs-develop-mast-tzgd0f/deployments/4590 docs-develop-mast-tzgd0f/deployments/4591 docs-develop-mast-tzgd0f/deployments/4594 docs-develop-mast-tzgd0f/deployments/4595 docs-develop-mast-tzgd0f/deployments/4598 docs-develop-nigh-589znp/deployments/4588 docs-develop-nigh-589znp/deployments/4592 docs-develop-nigh-589znp/deployments/4596 obs-knot-resolver-es11k1/deployments/4589 obs-knot-resolver-es11k1/deployments/4593 obs-knot-resolver-es11k1/deployments/4597
Oto Šťáva [Fri, 19 Jul 2024 13:54:49 +0000 (15:54 +0200)] 
Merge branch 'kresctl-convert-policy-loader' into 'master'

kresctl: add generation of policy-loader Lua script

See merge request knot/knot-resolver!1569

12 months agokresctl: add generation of policy-loader Lua script docs-develop-kres-zlfkk2/deployments/4585
Oto Šťáva [Fri, 19 Jul 2024 13:01:22 +0000 (15:01 +0200)] 
kresctl: add generation of policy-loader Lua script

12 months agoMerge branch 'manager-ci-pkg-fix' into 'master' docs-develop-mast-tzgd0f/deployments/4583
Aleš Mrázek [Fri, 19 Jul 2024 12:24:13 +0000 (14:24 +0200)] 
Merge branch 'manager-ci-pkg-fix' into 'master'

manager: utils: timeout fix for unix-socket http request

See merge request knot/knot-resolver!1568

12 months agomanager/utils/request.py: use self.timeout in UnixHTTPConnection docs-develop-mana-voyz6z/deployments/4582
Aleš Mrázek [Fri, 19 Jul 2024 09:38:48 +0000 (11:38 +0200)] 
manager/utils/request.py: use self.timeout in UnixHTTPConnection

12 months agoMerge !1566: treewide nit: avoid NULL arithmetics docs-develop-mast-tzgd0f/deployments/4553 docs-develop-mast-tzgd0f/deployments/4556 docs-develop-mast-tzgd0f/deployments/4559 docs-develop-mast-tzgd0f/deployments/4562 docs-develop-mast-tzgd0f/deployments/4565 docs-develop-mast-tzgd0f/deployments/4578 docs-develop-mast-tzgd0f/deployments/4581 docs-develop-nigh-589znp/deployments/4557 docs-develop-nigh-589znp/deployments/4563 docs-develop-nigh-589znp/deployments/4579 obs-knot-resolver-es11k1/deployments/4558 obs-knot-resolver-es11k1/deployments/4564 obs-knot-resolver-es11k1/deployments/4580
Vladimír Čunát [Tue, 16 Jul 2024 06:34:27 +0000 (08:34 +0200)] 
Merge !1566: treewide nit: avoid NULL arithmetics

12 months agotreewide nit: avoid NULL arithmetics docs-develop-avoi-rr4td0/deployments/4530
Vladimír Čunát [Wed, 10 Jul 2024 16:15:35 +0000 (18:15 +0200)] 
treewide nit: avoid NULL arithmetics

(u)intptr_t casts seem the best in terms of compliance:
https://stackoverflow.com/q/45220134/587396

Otherwise with clang 18 we can get warnings like
 ../$path:$line:$col: runtime error: applying non-zero offset $num to null pointer
 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../$path:$line:$col

12 months agoMerge branch 'drop-libknot-3.2' into 'master' docs-develop-mast-tzgd0f/deployments/4529 docs-develop-mast-tzgd0f/deployments/4531 docs-develop-mast-tzgd0f/deployments/4534 docs-develop-mast-tzgd0f/deployments/4537 docs-develop-mast-tzgd0f/deployments/4539 docs-develop-mast-tzgd0f/deployments/4541 docs-develop-mast-tzgd0f/deployments/4544 docs-develop-mast-tzgd0f/deployments/4545 docs-develop-mast-tzgd0f/deployments/4548 docs-develop-mast-tzgd0f/deployments/4549 docs-develop-mast-tzgd0f/deployments/4552 docs-develop-nigh-589znp/deployments/4532 docs-develop-nigh-589znp/deployments/4538 docs-develop-nigh-589znp/deployments/4542 docs-develop-nigh-589znp/deployments/4546 docs-develop-nigh-589znp/deployments/4550 obs-knot-resolver-es11k1/deployments/4533 obs-knot-resolver-es11k1/deployments/4540 obs-knot-resolver-es11k1/deployments/4543 obs-knot-resolver-es11k1/deployments/4547 obs-knot-resolver-es11k1/deployments/4551
Oto Šťáva [Thu, 11 Jul 2024 12:50:28 +0000 (14:50 +0200)] 
Merge branch 'drop-libknot-3.2' into 'master'

drop libknot <=3.2.x support

See merge request knot/knot-resolver!1565

12 months agodrop libknot <=3.2.x support docs-develop-drop-vyhn6z/deployments/4528
Oto Šťáva [Wed, 10 Jul 2024 14:38:26 +0000 (16:38 +0200)] 
drop libknot <=3.2.x support

12 months ago.gitlab-ci: use newer Knot for make-archive
Oto Šťáva [Tue, 9 Jul 2024 10:23:38 +0000 (12:23 +0200)] 
.gitlab-ci: use newer Knot for make-archive

12 months agoDockerfile: upgrade to Debian 12 and newest Knot DNS
Oto Šťáva [Tue, 9 Jul 2024 09:40:29 +0000 (11:40 +0200)] 
Dockerfile: upgrade to Debian 12 and newest Knot DNS

12 months agodrop libknot 3.0.x support
Vladimír Čunát [Tue, 18 Jun 2024 08:24:17 +0000 (10:24 +0200)] 
drop libknot 3.0.x support

- Upstream last maintained 3.0.x in summer 2022.
- Our packaging shouldn't be affected, neither the new one, nor OBS.
- If someone updates resolver, it shouldn't be too hard
  to update libknot as well.
- Maintenance on resolver side still needed effort for kres-gen-30.lua

12 months agoMerge branch 'manager-instability-handling' into 'master' docs-develop-mast-tzgd0f/deployments/4527
Aleš Mrázek [Thu, 11 Jul 2024 10:50:45 +0000 (12:50 +0200)] 
Merge branch 'manager-instability-handling' into 'master'

manager: recovery from 'policy-loader' failure during reload

See merge request knot/knot-resolver!1563

12 months agomanager: config_store: renew with old config docs-develop-mana-x3u7hn/deployments/4525
Aleš Mrázek [Wed, 3 Jul 2024 05:06:55 +0000 (07:06 +0200)] 
manager: config_store: renew with old config

12 months agomanager: 'policy-loader' removed from watched subprocesses
Aleš Mrázek [Wed, 3 Jul 2024 04:50:24 +0000 (06:50 +0200)] 
manager: 'policy-loader' removed from  watched subprocesses

12 months agomanager: run policy-loader with old config when instability detected
Aleš Mrázek [Wed, 26 Jun 2024 04:38:41 +0000 (06:38 +0200)] 
manager: run policy-loader with old config when instability detected

13 months agoMerge !1564: master-5 branch into master docs-develop-mast-tzgd0f/deployments/4484 docs-develop-mast-tzgd0f/deployments/4485 docs-develop-mast-tzgd0f/deployments/4487 docs-develop-mast-tzgd0f/deployments/4490 docs-develop-mast-tzgd0f/deployments/4493 docs-develop-mast-tzgd0f/deployments/4509 docs-develop-mast-tzgd0f/deployments/4512 docs-develop-mast-tzgd0f/deployments/4519 docs-develop-mast-tzgd0f/deployments/4522 docs-develop-nigh-589znp/deployments/4486 docs-develop-nigh-589znp/deployments/4491 docs-develop-nigh-589znp/deployments/4510 docs-develop-nigh-589znp/deployments/4520 obs-knot-resolver-es11k1/deployments/4488 obs-knot-resolver-es11k1/deployments/4492 obs-knot-resolver-es11k1/deployments/4511 obs-knot-resolver-es11k1/deployments/4521
Vladimír Čunát [Sun, 7 Jul 2024 07:23:08 +0000 (09:23 +0200)] 
Merge !1564: master-5 branch into master

13 months agoMerge remote-tracking branch 'origin/master-5' into master docs-develop-merg-ecf55w/deployments/4466
Oto Šťáva [Wed, 3 Jul 2024 11:04:19 +0000 (13:04 +0200)] 
Merge remote-tracking branch 'origin/master-5' into master

13 months agoMerge branch 'separate-policy-kresd' into 'master' docs-develop-mast-tzgd0f/deployments/4454 docs-develop-mast-tzgd0f/deployments/4457 docs-develop-mast-tzgd0f/deployments/4460 docs-develop-mast-tzgd0f/deployments/4467 docs-develop-mast-tzgd0f/deployments/4470 docs-develop-mast-tzgd0f/deployments/4472 docs-develop-mast-tzgd0f/deployments/4475 docs-develop-mast-tzgd0f/deployments/4476 docs-develop-mast-tzgd0f/deployments/4479 docs-develop-mast-tzgd0f/deployments/4480 docs-develop-mast-tzgd0f/deployments/4483 docs-develop-nigh-589znp/deployments/4458 docs-develop-nigh-589znp/deployments/4468 docs-develop-nigh-589znp/deployments/4473 docs-develop-nigh-589znp/deployments/4477 docs-develop-nigh-589znp/deployments/4481 obs-knot-resolver-es11k1/deployments/4459 obs-knot-resolver-es11k1/deployments/4469 obs-knot-resolver-es11k1/deployments/4474 obs-knot-resolver-es11k1/deployments/4478 obs-knot-resolver-es11k1/deployments/4482
Aleš Mrázek [Tue, 2 Jul 2024 13:12:51 +0000 (15:12 +0200)] 
Merge branch 'separate-policy-kresd' into 'master'

manager: policy-loader: new process for loading policy rules separately

See merge request knot/knot-resolver!1540

13 months agomanager: fixed error message for 'max-workers' change denial docs-develop-sepa-lghkrh/deployments/4453
Aleš Mrázek [Thu, 27 Jun 2024 13:23:02 +0000 (15:23 +0200)] 
manager: fixed error message for 'max-workers' change denial

13 months agomanager: reset the workers policy rules only when necessary
Aleš Mrázek [Thu, 27 Jun 2024 13:18:45 +0000 (15:18 +0200)] 
manager: reset the workers policy rules only when necessary

Basically, the reset is necessary when only the policy rules have changed and there is no need to update the workers config.

13 months agomanager: loading policy rules is now done in the verifier callback
Aleš Mrázek [Thu, 27 Jun 2024 13:08:18 +0000 (15:08 +0200)] 
manager: loading policy rules is now done in the verifier callback

The main reason for this is to load the policies before the canary worker starts, making it a prerequisite for starting the workers.

13 months agomanager: load policy rules on any configuration change
Aleš Mrázek [Fri, 21 Jun 2024 11:42:27 +0000 (13:42 +0200)] 
manager: load policy rules on any configuration change

13 months agomanager: config_store: only_on_real_changes renamed to only_on_real_changes_update
Aleš Mrázek [Wed, 5 Jun 2024 15:40:16 +0000 (17:40 +0200)] 
manager: config_store: only_on_real_changes renamed to only_on_real_changes_update

13 months agomanager: start canary process only on real changes
Aleš Mrázek [Wed, 5 Jun 2024 15:22:44 +0000 (17:22 +0200)] 
manager: start canary process only on real changes

13 months agomanager: config_store: only on real changes decorator for verifiers
Aleš Mrázek [Wed, 5 Jun 2024 14:59:11 +0000 (16:59 +0200)] 
manager: config_store: only on real changes decorator for verifiers

13 months agomanager: controller: sd_notify: handle 'STOPPING=1' notification
Aleš Mrázek [Mon, 3 Jun 2024 16:52:25 +0000 (18:52 +0200)] 
manager: controller: sd_notify: handle 'STOPPING=1' notification

13 months agomanager: wait for 'policy-loader' to finish on the resolver startup
Aleš Mrázek [Fri, 17 May 2024 13:09:44 +0000 (15:09 +0200)] 
manager: wait for 'policy-loader' to finish on the resolver startup

When starting the resolver, we wait for policy-loader until policy rules are successfully loaded into the cache where the rules are shared between kred workers. After that, other processes are started. Otherwise, the workers might start without the configured rules in the cache while they are already resolving DNS traffic.

13 months agomanager: controller: getting SubprocessStatus from particular Subprocess
Aleš Mrázek [Fri, 17 May 2024 12:03:45 +0000 (14:03 +0200)] 
manager: controller: getting SubprocessStatus from particular Subprocess

13 months agodatamodel: types: IPNetwork: __eq__ added
Aleš Mrázek [Wed, 15 May 2024 15:07:08 +0000 (17:07 +0200)] 
datamodel: types: IPNetwork: __eq__ added

13 months agolib/rules: tweak how the read-only transactions work
Vladimír Čunát [Tue, 14 May 2024 09:03:59 +0000 (11:03 +0200)] 
lib/rules: tweak how the read-only transactions work

Let's avoid reloading the RO transaction unless necessary.
For example, when normal config reload happens (one kresd at a time),
we most likely do *not* want to reload the rule DB prematurely.

13 months agodoc/dev: architecture update and improvements
Aleš Mrázek [Mon, 13 May 2024 11:17:15 +0000 (13:17 +0200)] 
doc/dev: architecture update and improvements

13 months agodoc: architecture schemas improvements
Aleš Mrázek [Mon, 13 May 2024 09:50:02 +0000 (11:50 +0200)] 
doc: architecture schemas improvements

13 months agoNEWS: update about policy-loader
Aleš Mrázek [Fri, 10 May 2024 13:21:54 +0000 (15:21 +0200)] 
NEWS: update about policy-loader

13 months agomanager: controller: SubprocessStatus.EXITED added
Aleš Mrázek [Thu, 9 May 2024 13:28:17 +0000 (15:28 +0200)] 
manager: controller: SubprocessStatus.EXITED added

13 months agomanager: apply policy config separately
Aleš Mrázek [Fri, 26 Apr 2024 12:33:05 +0000 (14:33 +0200)] 
manager: apply policy config separately

13 months agomanager: controller: policy-loader program added
Aleš Mrázek [Tue, 12 Mar 2024 14:50:10 +0000 (15:50 +0100)] 
manager: controller: policy-loader program added

13 months agomanager: controller: new SubprocessType for loading policy added
Aleš Mrázek [Mon, 11 Mar 2024 13:24:22 +0000 (14:24 +0100)] 
manager: controller: new SubprocessType for loading policy added

13 months agodatamodel: templates: don't clear policy DB in kresd workers
Vladimír Čunát [Mon, 11 Mar 2024 07:58:13 +0000 (08:58 +0100)] 
datamodel: templates: don't clear policy DB in kresd workers

13 months agolib/rules kr_rules_init(): allow not overwriting the DB
Vladimír Čunát [Mon, 11 Mar 2024 07:09:38 +0000 (08:09 +0100)] 
lib/rules kr_rules_init(): allow not overwriting the DB

13 months agodatamodel: check for unused tags during config validation
Aleš Mrázek [Mon, 26 Feb 2024 23:17:57 +0000 (00:17 +0100)] 
datamodel: check for unused tags during config validation

13 months agodatamodel: templates: policy config moved out of the kresd worker config
Aleš Mrázek [Thu, 22 Feb 2024 13:40:27 +0000 (14:40 +0100)] 
datamodel: templates: policy config moved out of the kresd worker config

13 months agoMerge branch 'tls-client-error-log' into 'master-5' docs-develop-mast-tyrtta/deployments/4421
Oto Šťáva [Wed, 26 Jun 2024 12:00:22 +0000 (14:00 +0200)] 
Merge branch 'tls-client-error-log' into 'master-5'

daemon/tls: print IP when failing certificate check

See merge request knot/knot-resolver!1560