]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
14 months agodaemon, lib, modules: trivial fixes for Coverity issues docs-develop-cove-uiak3c/deployments/4083
Oto Šťáva [Wed, 15 May 2024 12:46:00 +0000 (14:46 +0200)] 
daemon, lib, modules: trivial fixes for Coverity issues

14 months agoMerge 'origin/master' into 6.0 - last merge before rename docs-develop-6-0-mvwoqi/deployments/4073 docs-develop-cove-uiak3c/deployments/4076 docs-develop-mast-tzgd0f/deployments/4075 docs-develop-mast-tzgd0f/deployments/4079 docs-develop-mast-tzgd0f/deployments/4082 docs-develop-nigh-589znp/deployments/4080 docs-develop-tmp-wti7ta/deployments/4072 obs-knot-resolver-es11k1/deployments/4081
Oto Šťáva [Tue, 14 May 2024 10:05:01 +0000 (12:05 +0200)] 
Merge 'origin/master' into 6.0 - last merge before rename

This is the last commit in `6.0` before it is shifted into `master`,
with 5.x support being moved to `master-5`.

14 months ago.gitlab-ci: remove SonarCloud Scanner docs-develop-mast-tyrtta/deployments/4074 docs-develop-mast-tzgd0f/deployments/4071
Oto Šťáva [Tue, 14 May 2024 09:35:18 +0000 (11:35 +0200)] 
.gitlab-ci: remove SonarCloud Scanner

The detections are mostly academic and useless for our purposes. We have
other static analyzers that better suit our needs.

14 months agoMerge branch 'ci-overhaul-2' into 'master' docs-develop-mast-tzgd0f/deployments/4069
Oto Šťáva [Tue, 14 May 2024 08:59:59 +0000 (10:59 +0200)] 
Merge branch 'ci-overhaul-2' into 'master'

CI/CD overhaul

See merge request knot/knot-resolver!1533

14 months agoMerge branch 'knot_wire-6.0' into '6.0' docs-develop-6-0-mvwoqi/deployments/4063
Oto Šťáva [Mon, 13 May 2024 13:22:44 +0000 (15:22 +0200)] 
Merge branch 'knot_wire-6.0' into '6.0'

Resolve !1509 with 6.0 (libknot 3.4 compatibility)

See merge request knot/knot-resolver!1539

14 months agotests/pytests/utils: handle SSLEOFError docs-develop-ci-o-45qdxc/deployments/4062
Oto Šťáva [Tue, 7 May 2024 14:41:42 +0000 (16:41 +0200)] 
tests/pytests/utils: handle SSLEOFError

It used to just throw BrokenPipeError, but newer versions of Python have
a separate exception for when the connection is closed in violation of
TLS rules, which Knot Resolver does deliberately so as to not waste time
on properly closing TLS connections with misbehaving peers.

14 months agotest/pytests/test_tls: remove resumption test
Oto Šťáva [Tue, 7 May 2024 11:29:32 +0000 (13:29 +0200)] 
test/pytests/test_tls: remove resumption test

Knot Resolver disables resumption on TLS <=1.2 as it is vulnerable to
replay attacks, so the test makes no sense, as that one was specifically
disabled for TLS >=1.3 (Python had no support for it at the time).

We should make a new test for this with TLS 1.3 support.

14 months agotests/pytests: remove deprecated calls
Oto Šťáva [Mon, 6 May 2024 11:35:02 +0000 (13:35 +0200)] 
tests/pytests: remove deprecated calls

14 months agoSilence Clang-Tidy
Oto Šťáva [Mon, 29 Apr 2024 13:09:01 +0000 (15:09 +0200)] 
Silence Clang-Tidy

This commit makes lots of changes to the C code to appease the
Clang-Tidy linter. Some of the less obvious ones are due to C's weird
semantics regarding handling of numeric literals.

We also disable a bunch of the detections because they are
super-pedantic, arguably useless, or we have our own unwritten coding
style rules that solve the issues.

14 months ago.gitlab-ci, tests, modules: adapt to knot-resolver-ci repo
Oto Šťáva [Tue, 23 Apr 2024 14:34:08 +0000 (16:34 +0200)] 
.gitlab-ci, tests, modules: adapt to knot-resolver-ci repo

This is the bulk of the CI/CD overhaul.

Most of the changes are to the `.gitlab-ci.yml` file, where the build
images used are replaced with the ones provided by the
`knot-resolver-ci` repository. Some cleanups have also been done.

The commit also adds unit testing with Knot Resolver built against
multiple versions of Knot DNS, including the `master` branch. The
`master` branch image is built nightly in the `knot-resolver-ci` repo.

We have also removed `scan-build`, as its tests change frequently, with
lots of false-positives, which are very different on each version, and
there is no good way to ignore some detections. Clang-Tidy covers some
of the same issues, and we also have Coverity Scan. Should be more than
enough.

A few config tests were also excluded in the AddressSanitizer tests,
because they produce false-positives.

14 months agotests/dnstap: Go improvements
Oto Šťáva [Thu, 11 Apr 2024 10:30:38 +0000 (12:30 +0200)] 
tests/dnstap: Go improvements

- Do `go mod tidy` before running the test, even in CI
- Add `go.sum` to `.gitignore`
- Compatibility with Go 1.15 (Debian 11)

14 months agoMerge branch 'master' into knot_wire-6.0 docs-develop-knot-8ksg4h/deployments/4036
Vladimír Čunát [Thu, 9 May 2024 06:47:11 +0000 (08:47 +0200)] 
Merge branch 'master' into knot_wire-6.0

14 months agoResolve !1509 with 6.0 (libknot 3.4 compatibility)
Vladimír Čunát [Thu, 9 May 2024 06:36:08 +0000 (08:36 +0200)] 
Resolve !1509 with 6.0 (libknot 3.4 compatibility)

- some knot_wire_next_label() calls were added since master,
  so those get changed as in a083f3fe63cffbabb19e6b67848151f4bb6d623c
- some code has moved since master (to lib/resolve-produce.c),
  and unfortunately the MR !1509 did change some of it,
  and git was unable to handle this automatically

This merge commit is separate, only bringing !1509 and no other
changes from master, so that it's easier to understand.

14 months agoMerge !1538: ci nixos: switch container image tag docs-develop-mast-tzgd0f/deployments/4035 docs-develop-mast-tzgd0f/deployments/4038 docs-develop-mast-tzgd0f/deployments/4040 docs-develop-mast-tzgd0f/deployments/4045 docs-develop-mast-tzgd0f/deployments/4048 docs-develop-mast-tzgd0f/deployments/4049 docs-develop-mast-tzgd0f/deployments/4052 docs-develop-mast-tzgd0f/deployments/4053 docs-develop-mast-tzgd0f/deployments/4056 docs-develop-mast-tzgd0f/deployments/4065 docs-develop-mast-tzgd0f/deployments/4068 docs-develop-nigh-589znp/deployments/4039 docs-develop-nigh-589znp/deployments/4046 docs-develop-nigh-589znp/deployments/4050 docs-develop-nigh-589znp/deployments/4054 docs-develop-nigh-589znp/deployments/4066 obs-knot-resolver-es11k1/deployments/4041 obs-knot-resolver-es11k1/deployments/4047 obs-knot-resolver-es11k1/deployments/4051 obs-knot-resolver-es11k1/deployments/4055 obs-knot-resolver-es11k1/deployments/4067
Vladimír Čunát [Thu, 9 May 2024 06:28:43 +0000 (08:28 +0200)] 
Merge !1538: ci nixos: switch container image tag

14 months agoci nixos: switch container image tag docs-develop-ci-n-u025gi/deployments/4034
Vladimír Čunát [Thu, 9 May 2024 05:34:33 +0000 (07:34 +0200)] 
ci nixos: switch container image tag

Unfortunately the `latest` tag is amd64 only right now,
even though it did have both recently. I hope this will work reliably.

14 months agoMerge !1509: treewide: more compatibility with future libknot 3.4 docs-develop-mast-tzgd0f/deployments/4005 docs-develop-mast-tzgd0f/deployments/4009 docs-develop-mast-tzgd0f/deployments/4012 docs-develop-mast-tzgd0f/deployments/4021 docs-develop-mast-tzgd0f/deployments/4024 docs-develop-mast-tzgd0f/deployments/4027 docs-develop-mast-tzgd0f/deployments/4030 docs-develop-nigh-589znp/deployments/4010 docs-develop-nigh-589znp/deployments/4022 docs-develop-nigh-589znp/deployments/4028 obs-knot-resolver-es11k1/deployments/4011 obs-knot-resolver-es11k1/deployments/4023 obs-knot-resolver-es11k1/deployments/4029
Vladimír Čunát [Mon, 6 May 2024 12:53:32 +0000 (14:53 +0200)] 
Merge !1509: treewide: more compatibility with future libknot 3.4

14 months agotreewide: more compatibility with future libknot 3.4 docs-develop-knot-r94p16/deployments/4003
Vladimír Čunát [Wed, 6 Mar 2024 07:13:57 +0000 (08:13 +0100)] 
treewide: more compatibility with future libknot 3.4

knot_wire_next_label used to return NULL when applied to . (root)
but that's not allowed anymore, and some of our calls relied on that.

14 months agotreewide: more compatibility with future libknot 3.4
Vladimír Čunát [Tue, 5 Mar 2024 12:48:21 +0000 (13:48 +0100)] 
treewide: more compatibility with future libknot 3.4

knot_wire_next_label isn't allowed with NULL wire anymore.

15 months agoMerge remote-tracking branch 'origin/master' into 6.0 docs-develop-6-0-mvwoqi/deployments/3964 docs-develop-tmp-wti7ta/deployments/3963
Oto Šťáva [Thu, 2 May 2024 11:05:27 +0000 (13:05 +0200)] 
Merge remote-tracking branch 'origin/master' into 6.0

15 months agoMerge !1536: distro/pkg/arch: fix after they renamed a dependency docs-develop-6-0-mvwoqi/deployments/3962
Vladimír Čunát [Thu, 2 May 2024 11:04:01 +0000 (13:04 +0200)] 
Merge !1536: distro/pkg/arch: fix after they renamed a dependency

15 months agodistro/pkg/arch: fix after they renamed a dependency docs-develop-arch-w3h4cr/deployments/3961
Vladimír Čunát [Mon, 29 Apr 2024 08:53:44 +0000 (10:53 +0200)] 
distro/pkg/arch: fix after they renamed a dependency

15 months agoMerge branch 'doc-news-nits' into '6.0' docs-develop-6-0-mvwoqi/deployments/3960
Oto Šťáva [Thu, 2 May 2024 10:51:26 +0000 (12:51 +0200)] 
Merge branch 'doc-news-nits' into '6.0'

nits: NEWS and predict module doc

See merge request knot/knot-resolver!1535

15 months agoMerge branch 'macos-fix' into 'master' docs-develop-mast-tzgd0f/deployments/3958 docs-develop-mast-tzgd0f/deployments/3976 docs-develop-mast-tzgd0f/deployments/3979 docs-develop-mast-tzgd0f/deployments/3986 docs-develop-mast-tzgd0f/deployments/3989 docs-develop-mast-tzgd0f/deployments/3990 docs-develop-mast-tzgd0f/deployments/3993 docs-develop-mast-tzgd0f/deployments/3994 docs-develop-mast-tzgd0f/deployments/3997 docs-develop-nigh-589znp/deployments/3977 docs-develop-nigh-589znp/deployments/3987 docs-develop-nigh-589znp/deployments/3991 docs-develop-nigh-589znp/deployments/3995 obs-knot-resolver-es11k1/deployments/3978 obs-knot-resolver-es11k1/deployments/3988 obs-knot-resolver-es11k1/deployments/3992 obs-knot-resolver-es11k1/deployments/3996
Oto Šťáva [Thu, 2 May 2024 10:46:04 +0000 (12:46 +0200)] 
Merge branch 'macos-fix' into 'master'

Fix macOS GitHub actions

See merge request knot/knot-resolver!1537

15 months agomodules/*/meson.build: add missing dependencies docs-develop-maco-884crr/deployments/3957
Oto Šťáva [Thu, 2 May 2024 10:21:00 +0000 (12:21 +0200)] 
modules/*/meson.build: add missing dependencies

15 months ago.github/workflows/macOS: fix prefix for ARM macOS
Oto Šťáva [Tue, 30 Apr 2024 09:19:34 +0000 (11:19 +0200)] 
.github/workflows/macOS: fix prefix for ARM macOS

15 months agolint: satisfy new mypy version docs-develop-doc-vyxna8/deployments/3923
Aleš Mrázek [Mon, 29 Apr 2024 09:19:20 +0000 (11:19 +0200)] 
lint: satisfy new mypy version

15 months agodoc/user/config-cache-predict.rst: use slashes (JSON pointer) instead of dots when... docs-develop-doc-7cna2r/deployments/3918 docs-develop-doc-vyxna8/deployments/3919
Aleš Mrázek [Mon, 29 Apr 2024 08:36:58 +0000 (10:36 +0200)] 
doc/user/config-cache-predict.rst: use slashes (JSON pointer) instead of dots when reffering to stats node

15 months agoNEWS: use slashes (JSON pointer) instead of dots when referring to configuration...
Aleš Mrázek [Mon, 29 Apr 2024 08:35:21 +0000 (10:35 +0200)] 
NEWS: use slashes (JSON pointer) instead of dots when referring to configuration node

15 months agoMerge branch 'cache-prediction-split' into '6.0' docs-develop-6-0-mvwoqi/deployments/3862
Oto Šťáva [Mon, 22 Apr 2024 11:00:50 +0000 (13:00 +0200)] 
Merge branch 'cache-prediction-split' into '6.0'

cache: new module to prefetch expiring records

See merge request knot/knot-resolver!1532

15 months agomanager: statistics: prometheus format for 'predict' module docs-develop-cach-aroclx/deployments/3861
Aleš Mrázek [Fri, 19 Apr 2024 16:19:02 +0000 (18:19 +0200)] 
manager: statistics: prometheus format for 'predict' module

15 months agomodules/stats: make custom stats hierarchical
Oto Šťáva [Fri, 19 Apr 2024 14:18:51 +0000 (16:18 +0200)] 
modules/stats: make custom stats hierarchical

Forgotten feature from !1527

15 months agoNEWS: cache prefetching improvements
Aleš Mrázek [Wed, 17 Apr 2024 14:03:00 +0000 (16:03 +0200)] 
NEWS: cache prefetching improvements

15 months agodoc/dev: new page for cache records prefetch
Aleš Mrázek [Wed, 17 Apr 2024 13:56:27 +0000 (15:56 +0200)] 
doc/dev: new page for cache records prefetch

15 months agomodules: prefetch: new module for prefetching expiring records
Aleš Mrázek [Wed, 17 Apr 2024 13:55:02 +0000 (15:55 +0200)] 
modules: prefetch: new module for prefetching expiring records

15 months agomodules: predict: prefetching expired records has been removed
Aleš Mrázek [Wed, 17 Apr 2024 13:41:52 +0000 (15:41 +0200)] 
modules: predict: prefetching expired records has been removed

15 months agodatamodel: cache: prefetch for expiring record is separated from prediction
Aleš Mrázek [Thu, 11 Apr 2024 13:54:25 +0000 (15:54 +0200)] 
datamodel: cache: prefetch for expiring record is separated from prediction

15 months agoMerge remote-tracking branch 'origin/master' into 6.0 docs-develop-6-0-mvwoqi/deployments/3800 docs-develop-tmp-wti7ta/deployments/3799
Oto Šťáva [Tue, 16 Apr 2024 13:40:04 +0000 (15:40 +0200)] 
Merge remote-tracking branch 'origin/master' into 6.0

15 months agoMerge branch 'website-push-docs' into 'master' docs-develop-mast-tzgd0f/deployments/3798 docs-develop-mast-tzgd0f/deployments/3812 docs-develop-mast-tzgd0f/deployments/3815 docs-develop-mast-tzgd0f/deployments/3830 docs-develop-mast-tzgd0f/deployments/3833 docs-develop-mast-tzgd0f/deployments/3845 docs-develop-mast-tzgd0f/deployments/3848 docs-develop-mast-tzgd0f/deployments/3851 docs-develop-mast-tzgd0f/deployments/3854 docs-develop-mast-tzgd0f/deployments/3855 docs-develop-mast-tzgd0f/deployments/3858 docs-develop-mast-tzgd0f/deployments/3863 docs-develop-mast-tzgd0f/deployments/3866 docs-develop-mast-tzgd0f/deployments/3871 docs-develop-mast-tzgd0f/deployments/3874 docs-develop-mast-tzgd0f/deployments/3880 docs-develop-mast-tzgd0f/deployments/3883 docs-develop-mast-tzgd0f/deployments/3897 docs-develop-mast-tzgd0f/deployments/3900 docs-develop-mast-tzgd0f/deployments/3905 docs-develop-mast-tzgd0f/deployments/3908 docs-develop-mast-tzgd0f/deployments/3909 docs-develop-mast-tzgd0f/deployments/3912 docs-develop-mast-tzgd0f/deployments/3913 docs-develop-mast-tzgd0f/deployments/3916 docs-develop-mast-tzgd0f/deployments/3925 docs-develop-mast-tzgd0f/deployments/3928 docs-develop-mast-tzgd0f/deployments/3944 docs-develop-mast-tzgd0f/deployments/3947 docs-develop-mast-tzgd0f/deployments/3951 docs-develop-mast-tzgd0f/deployments/3954 docs-develop-nigh-589znp/deployments/3813 docs-develop-nigh-589znp/deployments/3831 docs-develop-nigh-589znp/deployments/3846 docs-develop-nigh-589znp/deployments/3852 docs-develop-nigh-589znp/deployments/3856 docs-develop-nigh-589znp/deployments/3864 docs-develop-nigh-589znp/deployments/3872 docs-develop-nigh-589znp/deployments/3881 docs-develop-nigh-589znp/deployments/3898 docs-develop-nigh-589znp/deployments/3906 docs-develop-nigh-589znp/deployments/3910 docs-develop-nigh-589znp/deployments/3914 docs-develop-nigh-589znp/deployments/3926 docs-develop-nigh-589znp/deployments/3945 docs-develop-nigh-589znp/deployments/3952 obs-knot-resolver-es11k1/deployments/3803 obs-knot-resolver-es11k1/deployments/3814 obs-knot-resolver-es11k1/deployments/3832 obs-knot-resolver-es11k1/deployments/3847 obs-knot-resolver-es11k1/deployments/3853 obs-knot-resolver-es11k1/deployments/3857 obs-knot-resolver-es11k1/deployments/3865 obs-knot-resolver-es11k1/deployments/3873 obs-knot-resolver-es11k1/deployments/3882 obs-knot-resolver-es11k1/deployments/3899 obs-knot-resolver-es11k1/deployments/3907 obs-knot-resolver-es11k1/deployments/3911 obs-knot-resolver-es11k1/deployments/3915 obs-knot-resolver-es11k1/deployments/3927 obs-knot-resolver-es11k1/deployments/3946 obs-knot-resolver-es11k1/deployments/3953
Oto Šťáva [Tue, 16 Apr 2024 13:38:58 +0000 (15:38 +0200)] 
Merge branch 'website-push-docs' into 'master'

gitlab-ci: push docs to the website (manual CI)

See merge request knot/knot-resolver!1530

15 months agoMerge branch 'manager-optional-prometheus' into '6.0' docs-develop-6-0-mvwoqi/deployments/3797
Oto Šťáva [Tue, 16 Apr 2024 13:06:03 +0000 (15:06 +0200)] 
Merge branch 'manager-optional-prometheus' into '6.0'

manager: /metrics API improvements

See merge request knot/knot-resolver!1527

15 months agoNEWS: reword of Prometheus changes docs-develop-mana-8cbmfy/deployments/3796
Oto Šťáva [Tue, 16 Apr 2024 11:58:31 +0000 (13:58 +0200)] 
NEWS: reword of Prometheus changes

15 months agokresctl: add message when Prometheus is missing docs-develop-mana-8cbmfy/deployments/3787
Oto Šťáva [Mon, 15 Apr 2024 11:19:29 +0000 (13:19 +0200)] 
kresctl: add message when Prometheus is missing

15 months agodistro/pkg/rpm: recommend python3-prometheus_client
Jakub Ružička [Mon, 25 Mar 2024 15:14:17 +0000 (16:14 +0100)] 
distro/pkg/rpm: recommend python3-prometheus_client

15 months agodistro/pkg/deb: recommend python3-prometheus-client
Jakub Ružička [Mon, 25 Mar 2024 15:11:28 +0000 (16:11 +0100)] 
distro/pkg/deb: recommend python3-prometheus-client

15 months agoNEWS: improvements about metrics API
Aleš Mrázek [Mon, 25 Mar 2024 12:23:22 +0000 (13:23 +0100)] 
NEWS: improvements about metrics API

15 months agotests/packaging: management API /metrics update
Aleš Mrázek [Thu, 21 Mar 2024 14:27:10 +0000 (15:27 +0100)] 
tests/packaging: management API /metrics update

15 months agokresctl: metrics: support for new API
Aleš Mrázek [Thu, 21 Mar 2024 14:19:50 +0000 (15:19 +0100)] 
kresctl: metrics: support for new API

15 months agomanager: api: metrics: JSON support as default
Aleš Mrázek [Thu, 21 Mar 2024 13:53:54 +0000 (14:53 +0100)] 
manager: api: metrics: JSON support as default

- /metrics - returns 301, redirects to /metrics/json
- /metrics/json - exports metrics in JSON format
- /metrics/prometheus - optional, exports metrics in Prometheus format, returns 404 if not supported

15 months agomodules/{stats,http}: fix built-in Prometheus and tests
Oto Šťáva [Thu, 21 Mar 2024 11:17:59 +0000 (12:17 +0100)] 
modules/{stats,http}: fix built-in Prometheus and tests

15 months agomodules/stats: split stats.list() into sub-objects
Oto Šťáva [Thu, 21 Mar 2024 10:49:05 +0000 (11:49 +0100)] 
modules/stats: split stats.list() into sub-objects

15 months agopoetry: prometheus-client is now optional
Aleš Mrázek [Tue, 19 Mar 2024 21:45:20 +0000 (22:45 +0100)] 
poetry: prometheus-client is now optional

Description and authors update. New setup.py also generated.

15 months agogitlab-ci: push docs to the website (manual CI) docs-develop-webs-khkalp/deployments/3739
Oto Šťáva [Wed, 10 Apr 2024 10:43:11 +0000 (12:43 +0200)] 
gitlab-ci: push docs to the website (manual CI)

15 months agoMerge remote-tracking branch 'origin/master' into 6.0 docs-develop-6-0-mvwoqi/deployments/3738 docs-develop-tmp-wti7ta/deployments/3737
Oto Šťáva [Wed, 10 Apr 2024 11:19:27 +0000 (13:19 +0200)] 
Merge remote-tracking branch 'origin/master' into 6.0

15 months agoMerge branch 'nits' into 'master' docs-develop-mast-tzgd0f/deployments/3735 docs-develop-mast-tzgd0f/deployments/3754 docs-develop-mast-tzgd0f/deployments/3757 docs-develop-mast-tzgd0f/deployments/3769 docs-develop-mast-tzgd0f/deployments/3772 docs-develop-mast-tzgd0f/deployments/3773 docs-develop-mast-tzgd0f/deployments/3776 docs-develop-mast-tzgd0f/deployments/3777 docs-develop-mast-tzgd0f/deployments/3780 docs-develop-mast-tzgd0f/deployments/3781 docs-develop-mast-tzgd0f/deployments/3784 docs-develop-mast-tzgd0f/deployments/3789 docs-develop-mast-tzgd0f/deployments/3792 docs-develop-nigh-589znp/deployments/3755 docs-develop-nigh-589znp/deployments/3770 docs-develop-nigh-589znp/deployments/3774 docs-develop-nigh-589znp/deployments/3778 docs-develop-nigh-589znp/deployments/3782 docs-develop-nigh-589znp/deployments/3790 obs-knot-resolver-es11k1/deployments/3756 obs-knot-resolver-es11k1/deployments/3771 obs-knot-resolver-es11k1/deployments/3775 obs-knot-resolver-es11k1/deployments/3779 obs-knot-resolver-es11k1/deployments/3783 obs-knot-resolver-es11k1/deployments/3791
Oto Šťáva [Wed, 10 Apr 2024 11:09:36 +0000 (13:09 +0200)] 
Merge branch 'nits' into 'master'

nits: unused variable, improved #include path

See merge request knot/knot-resolver!1529

15 months agolib/dnssec nit: improve #include path docs-develop-nits-2dntdj/deployments/3711 docs-develop-nits-2dntdj/deployments/3734
Vladimír Čunát [Mon, 8 Apr 2024 08:52:01 +0000 (10:52 +0200)] 
lib/dnssec nit: improve #include path

The issue was exposed when working on rrl-wip branch:
  lib/dnssec/nsec.c:19:10: fatal error: resolve.h: No such file or director

15 months agodaemon/engine nit: drop an unused variable
Vladimír Čunát [Wed, 27 Mar 2024 08:21:41 +0000 (09:21 +0100)] 
daemon/engine nit: drop an unused variable

Reported by clang.

15 months agoMerge branch 'tls-priority' into '6.0' docs-develop-6-0-mvwoqi/deployments/3708
Oto Šťáva [Mon, 8 Apr 2024 08:48:04 +0000 (10:48 +0200)] 
Merge branch 'tls-priority' into '6.0'

daemon/tls: respect crypto policy overrides in OS

See merge request knot/knot-resolver!1526

15 months agodaemon/tls: respect crypto policy overrides in OS docs-develop-tls-hs7nlh/deployments/3707
Vladimír Čunát [Tue, 2 Apr 2024 15:39:05 +0000 (17:39 +0200)] 
daemon/tls: respect crypto policy overrides in OS

15 months agoMerge branch 'shared-libkres-fix' into 'master' docs-develop-mast-tzgd0f/deployments/3692 docs-develop-mast-tzgd0f/deployments/3695 docs-develop-mast-tzgd0f/deployments/3698 docs-develop-mast-tzgd0f/deployments/3699 docs-develop-mast-tzgd0f/deployments/3702 docs-develop-mast-tzgd0f/deployments/3703 docs-develop-mast-tzgd0f/deployments/3706 docs-develop-mast-tzgd0f/deployments/3715 docs-develop-mast-tzgd0f/deployments/3718 docs-develop-mast-tzgd0f/deployments/3721 docs-develop-mast-tzgd0f/deployments/3724 docs-develop-nigh-589znp/deployments/3696 docs-develop-nigh-589znp/deployments/3700 docs-develop-nigh-589znp/deployments/3704 docs-develop-nigh-589znp/deployments/3716 docs-develop-nigh-589znp/deployments/3722 obs-knot-resolver-es11k1/deployments/3697 obs-knot-resolver-es11k1/deployments/3701 obs-knot-resolver-es11k1/deployments/3705 obs-knot-resolver-es11k1/deployments/3717 obs-knot-resolver-es11k1/deployments/3723
Oto Šťáva [Fri, 5 Apr 2024 10:22:56 +0000 (12:22 +0200)] 
Merge branch 'shared-libkres-fix' into 'master'

daemon/meson.build: add install_rpath to kresd

See merge request knot/knot-resolver!1528

15 months agodaemon/meson.build: add install_rpath to kresd docs-develop-shar-t8zrsp/deployments/3691
Oto Šťáva [Fri, 5 Apr 2024 09:57:22 +0000 (11:57 +0200)] 
daemon/meson.build: add install_rpath to kresd

This fixes the default use-case for developers when they put their
install prefix somewhere where the system `LD_LIBRARY_PATH` does not
point. Before this, `kresd` would fail to start after `ninja install`
because it would not be able to find the `libkres.so` library.

The original workaround to this was to use `meson configure
-Ddefault_library=static`, but firstly, we would like it to be working
with the default settings, and secondly, we would like to have it as
similar to what most users will encounter as possible.

16 months agoMerge !1525: distro/pkg/rpm: use noreplace for config.yaml docs-develop-6-0-mvwoqi/deployments/3655
Vladimír Čunát [Tue, 2 Apr 2024 10:34:55 +0000 (12:34 +0200)] 
Merge !1525: distro/pkg/rpm: use noreplace for config.yaml

16 months agodistro/pkg/arch: put config.yaml into backup docs-develop-rpm-fi1h16/deployments/3654
Oto Šťáva [Tue, 2 Apr 2024 09:47:37 +0000 (11:47 +0200)] 
distro/pkg/arch: put config.yaml into backup

Same as previous commit, but for Arch Linux.

16 months agodistro/pkg/rpm: use noreplace for config.yaml
Oto Šťáva [Tue, 2 Apr 2024 09:29:29 +0000 (11:29 +0200)] 
distro/pkg/rpm: use noreplace for config.yaml

Adds `%config(noreplace)` to `config.yaml`. This prevents the package
from overwriting the user's edited configuration upon update, and
instead adds the new default configuration as a `.rpmnew` file for the
user to potentially consider.

16 months agoMerge branch 'upstream-version' into '6.0'
Oto Šťáva [Tue, 2 Apr 2024 10:33:55 +0000 (12:33 +0200)] 
Merge branch 'upstream-version' into '6.0'

distro: auto-detect latest Knot Resolver version

See merge request knot/knot-resolver!1524

16 months agodistro: auto-detect latest Knot Resolver version docs-develop-upst-wgs6un/deployments/3632
Jakub Ružička [Thu, 28 Mar 2024 17:03:16 +0000 (18:03 +0100)] 
distro: auto-detect latest Knot Resolver version

New scripts/upstream-version.sh returns latest Knot Resolver version
based on upstream repo tags.

It's set as upstream.version_script in apkg config which enables:

    $ apkg info upstream-version
    upstream version: 6.0.7

and later `apkg build --upstream` when tarballs are available.

16 months agoMerge branch 'release-6.0.7' into '6.0' docs-develop-6-0-mvwoqi/deployments/3616 docs-release-v6-0-xh302i/deployments/3621 v6.0.7
Aleš Mrázek [Wed, 27 Mar 2024 16:38:36 +0000 (17:38 +0100)] 
Merge branch 'release-6.0.7' into '6.0'

release 6.0.7

See merge request knot/knot-resolver!1523

16 months agoMerge branch 'release-5.7.2' into 'master' docs-develop-mast-tzgd0f/deployments/3615 docs-develop-mast-tzgd0f/deployments/3625 docs-develop-mast-tzgd0f/deployments/3628 docs-develop-mast-tzgd0f/deployments/3633 docs-develop-mast-tzgd0f/deployments/3636 docs-develop-mast-tzgd0f/deployments/3637 docs-develop-mast-tzgd0f/deployments/3640 docs-develop-mast-tzgd0f/deployments/3641 docs-develop-mast-tzgd0f/deployments/3643 docs-develop-mast-tzgd0f/deployments/3646 docs-develop-mast-tzgd0f/deployments/3647 docs-develop-mast-tzgd0f/deployments/3650 docs-develop-mast-tzgd0f/deployments/3664 docs-develop-mast-tzgd0f/deployments/3667 docs-develop-mast-tzgd0f/deployments/3676 docs-develop-mast-tzgd0f/deployments/3679 docs-develop-mast-tzgd0f/deployments/3684 docs-develop-mast-tzgd0f/deployments/3687 docs-develop-nigh-589znp/deployments/3626 docs-develop-nigh-589znp/deployments/3634 docs-develop-nigh-589znp/deployments/3638 docs-develop-nigh-589znp/deployments/3642 docs-develop-nigh-589znp/deployments/3644 docs-develop-nigh-589znp/deployments/3648 docs-develop-nigh-589znp/deployments/3665 docs-develop-nigh-589znp/deployments/3677 docs-develop-nigh-589znp/deployments/3685 docs-develop-stab-lrl9qw/deployments/3983 docs-release-stab-12mrv9/deployments/3981 docs-release-v5-7-c2cdq1/deployments/3618 obs-knot-resolver-8xyvhu/deployments/3619 obs-knot-resolver-es11k1/deployments/3627 obs-knot-resolver-es11k1/deployments/3635 obs-knot-resolver-es11k1/deployments/3639 obs-knot-resolver-es11k1/deployments/3645 obs-knot-resolver-es11k1/deployments/3649 obs-knot-resolver-es11k1/deployments/3666 obs-knot-resolver-es11k1/deployments/3678 obs-knot-resolver-es11k1/deployments/3686 obs-knot-resolver-kv62s6/deployments/3617 v5.7.2
Aleš Mrázek [Wed, 27 Mar 2024 16:38:30 +0000 (17:38 +0100)] 
Merge branch 'release-5.7.2' into 'master'

Release 5.7.2

See merge request knot/knot-resolver!1522

16 months agorelease 6.0.7 docs-develop-rele-bexqno/deployments/3614
Aleš Mrázek [Wed, 27 Mar 2024 16:06:35 +0000 (17:06 +0100)] 
release 6.0.7

16 months agoci: obs: create venv and install apkg docs-develop-rele-m8rr9k/deployments/3611 docs-develop-rele-m8rr9k/deployments/3613 obs-knot-resolver-bs4hbr/deployments/3612
Aleš Mrázek [Wed, 27 Mar 2024 15:04:37 +0000 (16:04 +0100)] 
ci: obs: create venv and install apkg

16 months agoscripts/update-authors: explicit '--no-show-signature' docs-develop-rele-m8rr9k/deployments/3608 docs-develop-rele-m8rr9k/deployments/3610
Oto Šťáva [Wed, 27 Mar 2024 13:11:40 +0000 (14:11 +0100)] 
scripts/update-authors: explicit '--no-show-signature'

Fixes the script for users who have `log.showSignature` set to `true` in
their git config.

16 months agoRelease 5.7.2 docs-develop-rele-m8rr9k/deployments/3607
Oto Šťáva [Wed, 27 Mar 2024 12:52:57 +0000 (13:52 +0100)] 
Release 5.7.2

16 months agoDockerfile: fix typo 'update' -> 'upgrade' docs-develop-6-0-mvwoqi/deployments/3606
Oto Šťáva [Wed, 27 Mar 2024 12:41:40 +0000 (13:41 +0100)] 
Dockerfile: fix typo 'update' -> 'upgrade'

16 months agoMerge branch '6.0.7-news' into '6.0' docs-develop-6-0-mvwoqi/deployments/3605
Oto Šťáva [Wed, 27 Mar 2024 11:05:18 +0000 (12:05 +0100)] 
Merge branch '6.0.7-news' into '6.0'

NEWS: add missing entries for 6.0.7

See merge request knot/knot-resolver!1519

16 months agoNEWS, README: "canonicalize" the link to Upgrading docs docs-develop-6-0-2biabg/deployments/3602
Oto Šťáva [Wed, 27 Mar 2024 10:10:47 +0000 (11:10 +0100)] 
NEWS, README: "canonicalize" the link to Upgrading docs

16 months agoNEWS: add missing entries for 6.0.7 docs-develop-6-0-2biabg/deployments/3601
Oto Šťáva [Tue, 26 Mar 2024 09:53:59 +0000 (10:53 +0100)] 
NEWS: add missing entries for 6.0.7

16 months agoMerge branch 'rpz-soa' into '6.0' docs-develop-6-0-mvwoqi/deployments/3600
Oto Šťáva [Wed, 27 Mar 2024 10:03:01 +0000 (11:03 +0100)] 
Merge branch 'rpz-soa' into '6.0'

lib/rules: fix RPZ if SOA is repated, as usual in AXFR output

See merge request knot/knot-resolver!1521

16 months agolib/rules: avoid RPZ overriding the root SOA docs-develop-rpz-sgpa4i/deployments/3599
Vladimír Čunát [Mon, 25 Mar 2024 13:49:36 +0000 (14:49 +0100)] 
lib/rules: avoid RPZ overriding the root SOA

16 months agolib/rules: fix RPZ if SOA is repated, as usual in AXFR output
Vladimír Čunát [Mon, 25 Mar 2024 12:28:23 +0000 (13:28 +0100)] 
lib/rules: fix RPZ if SOA is repated, as usual in AXFR output

The check for name equality didn't cover the case of repeated SOA.

16 months agoMerge branch 'improve-limits' into '6.0' docs-develop-6-0-mvwoqi/deployments/3591
Oto Šťáva [Tue, 26 Mar 2024 11:34:16 +0000 (12:34 +0100)] 
Merge branch 'improve-limits' into '6.0'

manager: increase startup timeout for manager (again)

See merge request knot/knot-resolver!1520

16 months agomanager, systemd: increase startup timeout for manager (again) docs-develop-impr-ktrcol/deployments/3578
Vladimír Čunát [Mon, 25 Mar 2024 10:23:37 +0000 (11:23 +0100)] 
manager, systemd: increase startup timeout for manager (again)

During the previous increase I didn't realize the comment added now.

16 months agoMerge branch 'improve-limits' into '6.0' docs-develop-6-0-mvwoqi/deployments/3563
Oto Šťáva [Fri, 22 Mar 2024 13:40:56 +0000 (14:40 +0100)] 
Merge branch 'improve-limits' into '6.0'

minor improvements of limits

See merge request knot/knot-resolver!1518

16 months agolib/rules: increase default DB size to 2G on 64-bit platforms docs-develop-impr-ktrcol/deployments/3562
Vladimír Čunát [Fri, 22 Mar 2024 10:56:30 +0000 (11:56 +0100)] 
lib/rules: increase default DB size to 2G on 64-bit platforms

The file is sparse, which really is supported by all sane filesystems
nowadays I think.  But for 32-bit systems I'm a bit afraid for the
ability to reliably get such a large contiguous mapping in process memory,
so there we take the 500M limit tested in knot-dns:
https://gitlab.nic.cz/knot/knot-dns/-/blob/v3.3.5/src/knot/conf/schema.c#L39

16 months agomanager: increase startup timeout for processes
Vladimír Čunát [Fri, 22 Mar 2024 10:45:51 +0000 (11:45 +0100)] 
manager: increase startup timeout for processes

In production I believe we can assume that process continuing to work
without bailing out is probably doing something useful, e.g.
in case of kresd it might be preparing a very large rule-set.

16 months agoMerge branch 'runtime-lib-paths' into '6.0' docs-develop-6-0-mvwoqi/deployments/3561
Oto Šťáva [Fri, 22 Mar 2024 13:15:26 +0000 (14:15 +0100)] 
Merge branch 'runtime-lib-paths' into '6.0'

meson.build: fix paths to knot-dns libs if exec_prefix != prefix

See merge request knot/knot-resolver!1503

16 months agomeson.build: fix paths to knot-dns libs if exec_prefix != prefix docs-develop-runt-dnukwv/deployments/3560
Vladimír Čunát [Wed, 21 Feb 2024 08:16:45 +0000 (09:16 +0100)] 
meson.build: fix paths to knot-dns libs if exec_prefix != prefix

Man, this is complicated.  But I hope that this one will really be
reliable, with `sh` and `wc` being present in basically every POSIX env.

16 months agoMerge branch 'udp-low-ports' into '6.0' docs-develop-6-0-mvwoqi/deployments/3559
Oto Šťáva [Fri, 22 Mar 2024 12:18:06 +0000 (13:18 +0100)] 
Merge branch 'udp-low-ports' into '6.0'

daemon/io: ignore UDP requests from ports < 1024

See merge request knot/knot-resolver!1507

16 months agodaemon/io: ignore UDP requests from ports < 1024 docs-develop-udp-kg8r2s/deployments/3558
Vladimír Čunát [Thu, 29 Feb 2024 10:47:37 +0000 (11:47 +0100)] 
daemon/io: ignore UDP requests from ports < 1024

16 months agoMerge remote-tracking branch 'origin/master' into 6.0 docs-develop-6-0-mvwoqi/deployments/3557 docs-develop-6-0-yl53px/deployments/3556
Oto Šťáva [Fri, 22 Mar 2024 11:30:31 +0000 (12:30 +0100)] 
Merge remote-tracking branch 'origin/master' into 6.0

16 months agoMerge branch 'time_t' into 'master' docs-develop-mast-tzgd0f/deployments/3555 docs-develop-mast-tzgd0f/deployments/3565 docs-develop-mast-tzgd0f/deployments/3568 docs-develop-mast-tzgd0f/deployments/3569 docs-develop-mast-tzgd0f/deployments/3572 docs-develop-mast-tzgd0f/deployments/3573 docs-develop-mast-tzgd0f/deployments/3576 docs-develop-mast-tzgd0f/deployments/3586 docs-develop-mast-tzgd0f/deployments/3589 docs-develop-mast-tzgd0f/deployments/3595 docs-develop-mast-tzgd0f/deployments/3598 docs-develop-nigh-589znp/deployments/3566 docs-develop-nigh-589znp/deployments/3570 docs-develop-nigh-589znp/deployments/3574 docs-develop-nigh-589znp/deployments/3587 docs-develop-nigh-589znp/deployments/3596
Oto Šťáva [Fri, 22 Mar 2024 11:15:23 +0000 (12:15 +0100)] 
Merge branch 'time_t' into 'master'

daemon/lua: fix on 32-bit systems with 64-bit time_t

See merge request knot/knot-resolver!1510

16 months agodaemon/lua: fix on 32-bit systems with 64-bit time_t docs-develop-time-t0zmsd/deployments/3550
Vladimír Čunát [Wed, 6 Mar 2024 11:19:28 +0000 (12:19 +0100)] 
daemon/lua: fix on 32-bit systems with 64-bit time_t

This improves the heuristics.
The problem would be detected by meson, but not when cross-compiling,
in which case things would mostly run OK, except some lua code/modules.

16 months agoMerge branch 'doc-update-oci' into '6.0' docs-develop-6-0-mvwoqi/deployments/3548
Oto Šťáva [Fri, 22 Mar 2024 10:35:59 +0000 (11:35 +0100)] 
Merge branch 'doc-update-oci' into '6.0'

doc styling fixes

See merge request knot/knot-resolver!1517

16 months agodoc/_static/css: fix anchor colors docs-develop-doc-blbbgj/deployments/3547
Oto Šťáva [Wed, 20 Mar 2024 14:12:56 +0000 (15:12 +0100)] 
doc/_static/css: fix anchor colors

The global styling made some anchors misbehave. Since we only want to
recolor the anchors in the content part of the docs, let's properly
target the CSS rules.

16 months agodoc/user: add missing sphinxcontrib.jquery
Oto Šťáva [Wed, 20 Mar 2024 13:43:29 +0000 (14:43 +0100)] 
doc/user: add missing sphinxcontrib.jquery

Accidentally omitted in `doc/user`, present in `doc/dev`.

16 months agoMerge !1516: lib/rules: fix RPZ if it contains apex NS record docs-develop-6-0-mvwoqi/deployments/3534
Vladimír Čunát [Wed, 20 Mar 2024 17:28:20 +0000 (18:28 +0100)] 
Merge !1516: lib/rules: fix RPZ if it contains apex NS record

16 months agolib/rules: fix RPZ if it contains apex NS record docs-develop-rpz-7rpq6b/deployments/3526
Vladimír Čunát [Wed, 20 Mar 2024 09:51:41 +0000 (10:51 +0100)] 
lib/rules: fix RPZ if it contains apex NS record

The spec even requires (at least one) NS record in apex
https://datatracker.ietf.org/doc/html/draft-vixie-dns-rpz-00#section-2
but until now the implementation took it as override for the root NS,
which obviously broke resolution (depending on the supplied name/s).

16 months agoREADME.md: Fix incorrect URL to build instructions docs-develop-6-0-mvwoqi/deployments/3518
Oto Šťáva [Tue, 19 Mar 2024 15:19:37 +0000 (16:19 +0100)] 
README.md: Fix incorrect URL to build instructions

16 months agoMerge branch 'kresctl-docs-nits' into '6.0' docs-develop-6-0-mvwoqi/deployments/3500
Oto Šťáva [Mon, 18 Mar 2024 10:25:09 +0000 (11:25 +0100)] 
Merge branch 'kresctl-docs-nits' into '6.0'

doc/manager-client: adjustments

See merge request knot/knot-resolver!1513

16 months agodoc/manager-client: adjustments docs-develop-kres-zg60qy/deployments/3499
Oto Šťáva [Fri, 15 Mar 2024 09:24:36 +0000 (10:24 +0100)] 
doc/manager-client: adjustments

Some language adjustments and improved optionality signalling (optional
parameters are usually surrounded by square brackets `[]`, while angle
brackets `<>` are usually reserved for mandatory ones).

16 months agoMerge branch 'doc-move-pages' into '6.0' docs-develop-6-0-mvwoqi/deployments/3498
Oto Šťáva [Mon, 18 Mar 2024 09:56:44 +0000 (10:56 +0100)] 
Merge branch 'doc-move-pages' into '6.0'

remove `doc-dev` directory, merge into `doc/dev`

See merge request knot/knot-resolver!1515

16 months agoremove `doc-dev` directory, merge into `doc/dev` docs-develop-doc-nqguk5/deployments/3497
Oto Šťáva [Mon, 18 Mar 2024 09:38:48 +0000 (10:38 +0100)] 
remove `doc-dev` directory, merge into `doc/dev`

16 months agoMerge branch 'doc-separation' into '6.0' docs-develop-6-0-mvwoqi/deployments/3482
Oto Šťáva [Fri, 15 Mar 2024 15:11:58 +0000 (16:11 +0100)] 
Merge branch 'doc-separation' into '6.0'

Separate user and developer documentation

See merge request knot/knot-resolver!1514