]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vladimír Čunát [Mon, 6 Feb 2023 14:17:53 +0000 (15:17 +0100)]
Revert "meson: use correct luajit includes from pkgconfig"
This reverts commit
0b9524b7d6680f892671fc4e7a2e5c603848cf60 .
The hack shouldn't be needed anymore:
https://github.com/Homebrew/homebrew-core/commit/
4369052170f4360b7ad545f23b8a01a4ccb37683 #diff-59a7902ada251dd9dba99b5bd323c1dba1d102d244ce766c06ce00097fb82e8fL71
This isn't an exact revert, but differences are minor.
Aleš Mrázek [Thu, 2 Mar 2023 16:27:07 +0000 (17:27 +0100)]
Merge branch 'manager-kresctl-improvements' into 'manager'
manager: kresctl: some improvements
See merge request knot/knot-resolver!1389
Aleš Mrázek [Thu, 2 Mar 2023 15:23:54 +0000 (16:23 +0100)]
manager: kresctl: print nothing on success
Vladimír Čunát [Thu, 2 Mar 2023 11:52:10 +0000 (12:52 +0100)]
Merge !1388: daemon/engine: warning when log_groups contains a non-existent group
Oto Šťáva [Fri, 24 Feb 2023 10:08:59 +0000 (11:08 +0100)]
daemon/engine: warning when log_groups contains a non-existent group
Until now, kresd would refuse to start when a log_groups Lua call
contained a non-existent group. After this change, only a warning is
printed, which helps during development while switching between branches
with new logging groups. I don't think changing the configuration all
the time just for a logging group is warranted.
Aleš Mrázek [Wed, 1 Mar 2023 00:18:13 +0000 (01:18 +0100)]
doc/manager-client.rst: kresctl documentation update
Aleš Mrázek [Wed, 1 Mar 2023 00:18:01 +0000 (01:18 +0100)]
manager: kresctl: stdin argument removed from convert command
Aleš Mrázek [Tue, 28 Feb 2023 17:41:50 +0000 (18:41 +0100)]
manager: kresctl: config command refactored
Vladimír Čunát [Sun, 26 Feb 2023 15:38:31 +0000 (16:38 +0100)]
Merge !1386: lib/utils: fix timestamp format in dumps of records
Vladimír Čunát [Mon, 13 Feb 2023 15:59:11 +0000 (16:59 +0100)]
lib/utils: fix timestamp format in dumps of records
The debug dumps of packets used UNIX timestamps (in RRSIG validity)
instead of the customary human stamps.
This was an unintentional regression of
0555828e , i.e. since v5.4.1
I looked again at all other differences from default kdig style,
and the only ones are that we don't show class and don't do IDN.
(both seem suitable here)
Oto Šťáva [Fri, 24 Feb 2023 11:17:54 +0000 (12:17 +0100)]
daemon: fix TLS rehandshakes
Move send_waiting call to DNS protolayer, where it should have been in
the first place.
Oto Šťáva [Thu, 23 Feb 2023 08:58:39 +0000 (09:58 +0100)]
daemon/tls: readjust unwrap buffer size
Oto Šťáva [Thu, 23 Feb 2023 07:28:13 +0000 (08:28 +0100)]
daemon/tls: logging consistency
Oto Šťáva [Thu, 23 Feb 2023 06:13:11 +0000 (07:13 +0100)]
Merge remote-tracking branch 'origin/master' into daemon-refactor-2
Vladimír Čunát [Wed, 22 Feb 2023 11:18:14 +0000 (12:18 +0100)]
Merge !1387: ci: fix macOS builds
Vladimír Čunát [Wed, 22 Feb 2023 10:44:10 +0000 (11:44 +0100)]
ci: fix macOS builds
Let's specify more of the dependencies explicitly.
I suspect it was pkg-config that was missing;
https://github.com/CZ-NIC/knot-resolver/actions/runs/
4241689540 /jobs/
7372234570
Oto Šťáva [Wed, 22 Feb 2023 10:04:12 +0000 (11:04 +0100)]
daemon/tls: fix TLS wire_buf size
Aleš Mrázek [Thu, 9 Feb 2023 17:44:46 +0000 (18:44 +0100)]
Merge branch 'manager-kresctl-noarg-fix' into 'manager'
manager: kresctl: HelpCommand as the default command
See merge request knot/knot-resolver!1385
Aleš Mrázek [Thu, 9 Feb 2023 17:19:06 +0000 (18:19 +0100)]
manager: client: HelpCommand as default command
Aleš Mrázek [Fri, 20 Jan 2023 14:50:46 +0000 (15:50 +0100)]
manager: cli/command.py: commented code removed
Oto Šťáva [Thu, 9 Feb 2023 12:33:50 +0000 (13:33 +0100)]
daemon/session2: improve wire_buf handling, fix reset bug
Oto Šťáva [Thu, 9 Feb 2023 07:42:09 +0000 (08:42 +0100)]
Merge remote-tracking branch 'origin/master' into daemon-refactor-2
Oto Šťáva [Thu, 9 Feb 2023 07:27:11 +0000 (08:27 +0100)]
daemon: optimizations and logic fixes
Vladimír Čunát [Wed, 8 Feb 2023 09:14:00 +0000 (10:14 +0100)]
Merge !1383: ci: leap < 15.4 are dead
Oto Šťáva [Wed, 8 Feb 2023 07:15:36 +0000 (08:15 +0100)]
daemon/worker: less aggresssive packet error detection
Oto Šťáva [Tue, 7 Feb 2023 09:15:43 +0000 (10:15 +0100)]
daemon/session2: use enum for consuming/propagating events instead of bool
Oto Šťáva [Tue, 7 Feb 2023 07:58:50 +0000 (08:58 +0100)]
Merge remote-tracking branch 'origin/master' into daemon-refactor-2
Vladimír Čunát [Mon, 6 Feb 2023 14:38:46 +0000 (15:38 +0100)]
ci: leap < 15.4 are dead
These packaging tests are dying anyway;
the manager branch reworked them.
So at least the breakages won't be shown in red until then.
https://gitlab.nic.cz/knot/knot-resolver/-/jobs/852665
https://build.opensuse.org/request/show/
1050454
obs:leap15 after updating fails later in the vagrant step though:
https://gitlab.nic.cz/knot/knot-resolver/-/jobs/852799
Vladimír Čunát [Thu, 2 Feb 2023 09:41:16 +0000 (10:41 +0100)]
Merge !1378: tests/pytests: quality-of-life improvements and notes
Oto Šťáva [Thu, 2 Feb 2023 07:47:25 +0000 (08:47 +0100)]
daemon: documentation and warnings fixes
Oto Šťáva [Thu, 2 Feb 2023 07:46:46 +0000 (08:46 +0100)]
daemon/session2: fix memory leak at kresd stoppage
Oto Šťáva [Wed, 1 Feb 2023 12:59:44 +0000 (13:59 +0100)]
daemon/session2: documentation clarifications
Oto Šťáva [Thu, 26 Jan 2023 07:45:24 +0000 (08:45 +0100)]
tests/pytests: quality-of-life improvements and notes
Added the option to run `kresd` inside `pytests` under `valgrind` and
`rr`, which can help with debugging. Also added a clarifying note that I
personally would have liked to have while exploring this.
Oto Šťáva [Tue, 31 Jan 2023 10:09:22 +0000 (11:09 +0100)]
fixup! daemon: make closing more session-centric
Oto Šťáva [Tue, 31 Jan 2023 08:24:03 +0000 (09:24 +0100)]
daemon: make closing more session-centric
Should clear up some memory ownership issues and strange behaviour when
closing I/O handles.
Also, sessions now count their owned handles, because libUV apparently
does not guarantee the order of uv_close, so sometimes the closure of a
session handle would cause a use-after-free because the session's timer
has not yet been properly closed.
Vladimír Čunát [Thu, 26 Jan 2023 18:02:42 +0000 (19:02 +0100)]
Merge !1382: tests/pytests: adapt to stricter handling of trailing bytes
Vladimír Čunát [Thu, 26 Jan 2023 11:47:04 +0000 (12:47 +0100)]
tests/pytests: adapt to stricter handling of trailing bytes
Since commit
a0cbbde1 we don't ignore trailing bytes in queries.
Aleš Mrázek [Thu, 26 Jan 2023 17:01:18 +0000 (18:01 +0100)]
Merge branch 'release-5.6.0' into 'master'
release 5.6.0
See merge request knot/knot-resolver!1381
Vladimír Čunát [Thu, 26 Jan 2023 16:07:01 +0000 (17:07 +0100)]
ci: allow failure for bad OBS distrotest jobs
They've been failing for many months, e.g. see
https://gitlab.nic.cz/knot/knot-resolver/-/pipelines/104497
This way it at least won't be confusing by showing red in CI.
Aleš Mrázek [Thu, 26 Jan 2023 13:51:29 +0000 (14:51 +0100)]
AUTHORS: .mailmap update
Aleš Mrázek [Thu, 26 Jan 2023 12:21:55 +0000 (13:21 +0100)]
release 5.6.0
Aleš Mrázek [Thu, 26 Jan 2023 12:17:00 +0000 (13:17 +0100)]
Merge branch 'reply-errors' into 'master'
avoid excessive TCP reconnections in some cases
See merge request knot/knot-resolver!1380
Vladimír Čunát [Mon, 23 Jan 2023 11:15:47 +0000 (12:15 +0100)]
NEWS for the past two commits
Vladimír Čunát [Thu, 19 Jan 2023 17:54:11 +0000 (18:54 +0100)]
daemon/io: penalize servers that close without reply
Vladimír Čunát [Thu, 19 Jan 2023 14:45:09 +0000 (15:45 +0100)]
daemon/worker: call server_selection.error() more
On most fundamental issues like DNS message not parsing,
we did not call this. Selection needs such information.
Oto Šťáva [Tue, 15 Nov 2022 07:22:41 +0000 (08:22 +0100)]
tests/config/doh2.test.lua: restore commented-out randomization
Oto Šťáva [Thu, 20 Oct 2022 10:10:15 +0000 (12:10 +0200)]
daemon: XDP with protolayers
Oto Šťáva [Tue, 18 Oct 2022 11:08:34 +0000 (13:08 +0200)]
daemon/session2: documentation
Oto Šťáva [Thu, 13 Oct 2022 12:26:22 +0000 (14:26 +0200)]
daemon/session2: fix memory leaks in push function
Oto Šťáva [Thu, 13 Oct 2022 06:37:38 +0000 (08:37 +0200)]
daemon/worker: fix being too eager to close connections with worker_submit errors
Oto Šťáva [Wed, 12 Oct 2022 11:18:49 +0000 (13:18 +0200)]
daemon/session2: support for various event types in session2_start_timeout
Oto Šťáva [Thu, 6 Oct 2022 11:32:50 +0000 (13:32 +0200)]
daemon/session2: always log in/out direction
Oto Šťáva [Thu, 6 Oct 2022 07:37:42 +0000 (09:37 +0200)]
.gitlab-ci.yml: reduce expected scan-build errors
The following line is no longer in `daemon/worker.c`, as it has been
replaced by a different mechanism in session2:
uv_handle_t *ioreq = malloc(is_stream ? sizeof(uv_write_t) : sizeof(uv_udp_send_t));
It was originally causing the following error, which is now fixed:
warning: Cast a region whose size is not a multiple of the destination type size
Oto Šťáva [Thu, 6 Oct 2022 07:15:35 +0000 (09:15 +0200)]
daemon: nits
Oto Šťáva [Wed, 5 Oct 2022 11:38:27 +0000 (13:38 +0200)]
daemon/worker: remove unused lines; comment out XDP
Oto Šťáva [Wed, 5 Oct 2022 11:30:26 +0000 (13:30 +0200)]
daemon/http: fix iteration context leaks
Oto Šťáva [Thu, 29 Sep 2022 11:24:07 +0000 (13:24 +0200)]
daemon: use init_request in more places; docs
Oto Šťáva [Thu, 29 Sep 2022 08:29:24 +0000 (10:29 +0200)]
daemon/tls: fix non-removal of cleaned up iteration contexts from unwrap_queue
Oto Šťáva [Tue, 27 Sep 2022 08:35:43 +0000 (10:35 +0200)]
daemon nits: fix lint:tidy issues
Oto Šťáva [Tue, 27 Sep 2022 08:06:01 +0000 (10:06 +0200)]
daemon: fix DoH not sending entire messages + nits
Oto Šťáva [Thu, 22 Sep 2022 10:12:37 +0000 (12:12 +0200)]
daemon: fix DoH truncation and tasklist addition
Vladimír Čunát [Mon, 26 Sep 2022 10:31:25 +0000 (12:31 +0200)]
daemon/session2 nit: use `const char *` for names
That also matches the real type of those string literals.
Oto Šťáva [Wed, 21 Sep 2022 06:50:14 +0000 (08:50 +0200)]
daemon: adapt DNS-over-HTTPS for protocol layers
Has a few problems that need to be solved:
- Answers are being truncated, because PROTOLAYER_DNS_DGRAM treats the
communication as UDP. Since `session->stream` has multiple
responsibilities, it needs to be split up into two (or more)
different flags; then we'll be able to use it properly.
- There is an unsolved use-after-free
Oto Šťáva [Thu, 15 Sep 2022 07:46:07 +0000 (09:46 +0200)]
daemon/session: remove (superseded by session2)
Oto Šťáva [Wed, 14 Sep 2022 07:45:42 +0000 (09:45 +0200)]
daemon/session2: cleanup; clarify naming and docs
Oto Šťáva [Tue, 13 Sep 2022 11:22:40 +0000 (13:22 +0200)]
daemon/session2: docs clarifications
Oto Šťáva [Tue, 13 Sep 2022 10:12:30 +0000 (12:12 +0200)]
daemon/session2: move iteration data into struct protolayer_cb_ctx
Oto Šťáva [Wed, 7 Sep 2022 10:48:16 +0000 (12:48 +0200)]
daemon/session2: remove protolayer_push - consolidate with protolayer_continue
Oto Šťáva [Wed, 7 Sep 2022 07:25:38 +0000 (09:25 +0200)]
daemon: replace a few libuv references with generic flags and move stats handling
Oto Šťáva [Tue, 6 Sep 2022 11:42:39 +0000 (13:42 +0200)]
daemon/worker: flush worker mempool after submitting
Oto Šťáva [Tue, 6 Sep 2022 08:19:05 +0000 (10:19 +0200)]
daemon/tls: fix incorrect freeing
Oto Šťáva [Tue, 6 Sep 2022 06:18:57 +0000 (08:18 +0200)]
daemon: fix leaking of session2
Oto Šťáva [Fri, 26 Aug 2022 07:29:30 +0000 (09:29 +0200)]
daemon: various protolayer fixes
Oto Šťáva [Thu, 25 Aug 2022 08:24:32 +0000 (10:24 +0200)]
daemon/session2: some cleanups and documentation
Oto Šťáva [Tue, 23 Aug 2022 11:08:58 +0000 (13:08 +0200)]
daemon: implement TLS with protocol layers
Oto Šťáva [Thu, 11 Aug 2022 07:25:41 +0000 (09:25 +0200)]
daemon: channel udp_queue through protolayers
Oto Šťáva [Tue, 9 Aug 2022 09:05:34 +0000 (11:05 +0200)]
daemon/worker: nits
Oto Šťáva [Fri, 5 Aug 2022 06:22:37 +0000 (08:22 +0200)]
daemon: protolayer timeout and stream fixes
Incoming TCP sessions (from clients) were not marked as `connected`,
causing the wrong timeout function to be called. This may have resulted
in assertion failures in some cases when using TCP.
Some error codes were not wrapped in `kr_error` - this probably did not
cause any real issues currently, but for the sake of consistency this is
now fixed.
Stream wire buffers were not being processed in a loop, which could
potentially cause input data to be discarded or processed with a delay.
This is now fixed.
Oto Šťáva [Thu, 4 Aug 2022 12:16:17 +0000 (14:16 +0200)]
daemon/worker: use libknot to retrieve packet size
Oto Šťáva [Thu, 4 Aug 2022 09:15:13 +0000 (11:15 +0200)]
daemon/session2: put event handling into separate functions
Originally, events were simply just another payload for the regular data
callbacks. That could, however, lead to problems with the control flow
of the layer iterations, e.g. when a buffer causes a layer to `_WAIT`,
but the next payload is an event instead of another buffer. This
separation should fix that problem.
Oto Šťáva [Wed, 3 Aug 2022 08:03:44 +0000 (10:03 +0200)]
daemon: TCP connection timeouts with protolayers
Oto Šťáva [Tue, 2 Aug 2022 08:53:38 +0000 (10:53 +0200)]
daemon: basic implementation of TCP and UDP with protolayers
Oto Šťáva [Mon, 18 Jul 2022 06:51:39 +0000 (08:51 +0200)]
session2: protocol layer API
Oto Šťáva [Mon, 23 May 2022 10:18:38 +0000 (12:18 +0200)]
daemon: refactor stage 1
Vladimír Čunát [Thu, 26 Jan 2023 09:57:46 +0000 (10:57 +0100)]
Merge !1379: tests/integration/deckard: update to version with --forked
Oto Šťáva [Thu, 26 Jan 2023 08:27:07 +0000 (09:27 +0100)]
tests/integration/deckard: update to version with --forked
Vaclav Sraier [Sun, 22 Jan 2023 08:15:39 +0000 (09:15 +0100)]
Merge branch 'manager-doc-gitlab-pages' into 'manager'
manager: GitLab pages with current version of docs
See merge request knot/knot-resolver!1372
Vasek Sraier [Sun, 22 Jan 2023 07:44:07 +0000 (08:44 +0100)]
docs: gitlab pages deploy via CI is now manual and does not run automatically
Vasek Sraier [Fri, 6 Jan 2023 09:57:24 +0000 (10:57 +0100)]
docs: automatic publishing using gitlab pages
Vaclav Sraier [Fri, 13 Jan 2023 10:51:05 +0000 (11:51 +0100)]
Merge branch 'manager-build-file-removal' into 'manager'
manager: removal of accidentally commited build artifact
See merge request knot/knot-resolver!1376
Vasek Sraier [Fri, 13 Jan 2023 10:44:37 +0000 (11:44 +0100)]
doc: removed doc/_static/config.schema.md which was generated and accidentally commited
there are no secrets in that file ;) it's just a build artifact
Vladimír Čunát [Wed, 11 Jan 2023 10:44:01 +0000 (11:44 +0100)]
Merge branch 'ci-pkgtest-update' into 'manager'
CI: update pkgtest for new apkg images
See merge request knot/knot-resolver!1373
Jakub Ružička [Thu, 5 Jan 2023 15:47:37 +0000 (16:47 +0100)]
CI: update pkgtest for new apkg images
also:
* add Fedora 37, remove Fedora 35
* add AlmaLinux 9, remove Rocky 8 (image stopped working)
Vladimír Čunát [Wed, 11 Jan 2023 10:29:46 +0000 (11:29 +0100)]
Merge branch 'manager-copyright-sweep' into 'manager'
Copyright notices: remove years and replace e-mail (cherry-pick into manager)
See merge request knot/knot-resolver!1374
Oto Šťáva [Mon, 12 Dec 2022 09:34:23 +0000 (10:34 +0100)]
Copyright notices: remove years and replace e-mail
Vasek Sraier [Tue, 10 Jan 2023 21:48:18 +0000 (22:48 +0100)]
Merge branch 'master' into manager
Vaclav Sraier [Tue, 10 Jan 2023 19:24:37 +0000 (20:24 +0100)]
Merge branch 'manager-doc2' into 'manager'
manager: docs improvement
See merge request knot/knot-resolver!1375
Vasek Sraier [Mon, 9 Jan 2023 22:21:01 +0000 (23:21 +0100)]
doc: moved command rosetta to upgrade guide
Vasek Sraier [Mon, 9 Jan 2023 22:20:12 +0000 (23:20 +0100)]
doc: fix links
Vasek Sraier [Sun, 8 Jan 2023 22:04:15 +0000 (23:04 +0100)]
docs: moved old lua configuration to section "advanced configuration"