]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
2 years agoMerge !1398: ci: drop debian 9
Vladimír Čunát [Wed, 10 May 2023 07:39:48 +0000 (09:39 +0200)] 
Merge !1398: ci: drop debian 9

2 years agoci: drop debian 9
Vladimír Čunát [Mon, 8 May 2023 08:39:41 +0000 (10:39 +0200)] 
ci: drop debian 9

It looks like downloads won't work anymore:
 https://gitlab.nic.cz/knot/knot-resolver/-/jobs/890201
 https://gitlab.nic.cz/knot/knot-resolver/-/jobs/890312
which is probably because long-term support ended last summer.

2 years agoMerge !1396: tests/integration/deckard: update obs-knot-resolver-es11k1/deployments/2489 obs-knot-resolver-es11k1/deployments/2490 obs-knot-resolver-es11k1/deployments/2491 obs-knot-resolver-es11k1/deployments/2492 obs-knot-resolver-es11k1/deployments/2493 obs-knot-resolver-es11k1/deployments/2494 obs-knot-resolver-es11k1/deployments/2495 obs-knot-resolver-es11k1/deployments/2496 obs-knot-resolver-es11k1/deployments/2497 obs-knot-resolver-es11k1/deployments/2498 obs-knot-resolver-es11k1/deployments/2499 obs-knot-resolver-es11k1/deployments/2500 obs-knot-resolver-es11k1/deployments/2501 obs-knot-resolver-es11k1/deployments/2502 obs-knot-resolver-es11k1/deployments/2503 obs-knot-resolver-es11k1/deployments/2504 obs-knot-resolver-es11k1/deployments/2505 obs-knot-resolver-es11k1/deployments/2506 obs-knot-resolver-es11k1/deployments/2507 obs-knot-resolver-es11k1/deployments/2508 obs-knot-resolver-es11k1/deployments/2509 obs-knot-resolver-es11k1/deployments/2510 obs-knot-resolver-es11k1/deployments/2511 obs-knot-resolver-es11k1/deployments/2512 obs-knot-resolver-es11k1/deployments/2513 obs-knot-resolver-es11k1/deployments/2514 obs-knot-resolver-es11k1/deployments/2515 obs-knot-resolver-es11k1/deployments/2516 obs-knot-resolver-es11k1/deployments/2517 obs-knot-resolver-es11k1/deployments/2518 obs-knot-resolver-es11k1/deployments/2519 obs-knot-resolver-es11k1/deployments/2520 obs-knot-resolver-es11k1/deployments/2521 obs-knot-resolver-es11k1/deployments/2522 obs-knot-resolver-es11k1/deployments/2523 obs-knot-resolver-es11k1/deployments/2524 obs-knot-resolver-es11k1/deployments/2525
Vladimír Čunát [Mon, 3 Apr 2023 12:35:25 +0000 (14:35 +0200)] 
Merge !1396: tests/integration/deckard: update

2 years agotests/integration/deckard: update
Vladimír Čunát [Mon, 3 Apr 2023 12:02:21 +0000 (14:02 +0200)] 
tests/integration/deckard: update

Adds just https://gitlab.nic.cz/knot/deckard/-/merge_requests/220

2 years agoMerge branch 'manager-json-only-api' into 'manager'
Aleš Mrázek [Wed, 29 Mar 2023 11:39:50 +0000 (13:39 +0200)] 
Merge branch 'manager-json-only-api' into 'manager'

manager: only JSON format for API

See merge request knot/knot-resolver!1394

2 years agomanager: api: allow JSON only as MIME type
Aleš Mrázek [Wed, 29 Mar 2023 10:55:10 +0000 (12:55 +0200)] 
manager: api: allow JSON only as MIME type

2 years agoMerge branch 'manager-better-paths-in-model' into 'manager'
Vaclav Sraier [Wed, 29 Mar 2023 09:49:29 +0000 (11:49 +0200)] 
Merge branch 'manager-better-paths-in-model' into 'manager'

manager: datamodel: better representation of paths and better error messages

See merge request knot/knot-resolver!1391

2 years agomanager: modelling: remove redundant code
Vasek Sraier [Tue, 28 Mar 2023 13:20:11 +0000 (15:20 +0200)] 
manager: modelling: remove redundant code

2 years agomanager: explicit file resolving context instead of cwd
Vasek Sraier [Mon, 20 Mar 2023 10:32:02 +0000 (11:32 +0100)] 
manager: explicit file resolving context instead of cwd

2 years agoci: manager: create required directories when unit testing
Vasek Sraier [Sun, 19 Mar 2023 22:30:57 +0000 (23:30 +0100)] 
ci: manager: create required directories when unit testing

2 years agomanager: changed the way rundir is loaded and got rid of absolute path restriction
Vasek Sraier [Sun, 19 Mar 2023 22:23:31 +0000 (23:23 +0100)] 
manager: changed the way rundir is loaded and got rid of absolute path restriction

2 years agomanager: modeling: refactoring
Vasek Sraier [Fri, 10 Mar 2023 18:36:15 +0000 (19:36 +0100)] 
manager: modeling: refactoring

2 years agomanager: modelling tools: base schema split into base schema and mapper class
Vasek Sraier [Wed, 8 Mar 2023 21:44:30 +0000 (22:44 +0100)] 
manager: modelling tools: base schema split into base schema and mapper class

2 years agomanager: modeling: refactoring of modelling tools
Vasek Sraier [Wed, 8 Mar 2023 15:51:28 +0000 (16:51 +0100)] 
manager: modeling: refactoring of modelling tools

2 years agomanager: datamodel: extract custom file types to a separate module
Vasek Sraier [Wed, 8 Mar 2023 14:51:35 +0000 (15:51 +0100)] 
manager: datamodel: extract custom file types to a separate module

2 years agomanager: datamodel: better representation of paths and better error messages
Vasek Sraier [Wed, 8 Mar 2023 12:34:56 +0000 (13:34 +0100)] 
manager: datamodel: better representation of paths and better error messages

2 years agoMerge !1392: forwarding mode: tweak dealing with failures from forwarders obs-knot-resolver-es11k1/deployments/2478 obs-knot-resolver-es11k1/deployments/2479 obs-knot-resolver-es11k1/deployments/2480 obs-knot-resolver-es11k1/deployments/2481 obs-knot-resolver-es11k1/deployments/2482 obs-knot-resolver-es11k1/deployments/2483 obs-knot-resolver-es11k1/deployments/2484 obs-knot-resolver-es11k1/deployments/2485 obs-knot-resolver-es11k1/deployments/2486 obs-knot-resolver-es11k1/deployments/2487 obs-knot-resolver-es11k1/deployments/2488
Vladimír Čunát [Wed, 22 Mar 2023 15:59:49 +0000 (16:59 +0100)] 
Merge !1392: forwarding mode: tweak dealing with failures from forwarders

2 years agoMerge branch 'manager-kresctl-format-conversion' into 'manager'
Aleš Mrázek [Wed, 22 Mar 2023 10:45:23 +0000 (11:45 +0100)] 
Merge branch 'manager-kresctl-format-conversion' into 'manager'

kresctl: better configuration reformatting

See merge request knot/knot-resolver!1393

2 years agodaemon: move connected flag from session to worker
Oto Šťáva [Wed, 22 Mar 2023 09:42:44 +0000 (10:42 +0100)] 
daemon: move connected flag from session to worker

2 years agodaemon: fix assertion errors on duplicate peers
Oto Šťáva [Wed, 22 Mar 2023 09:07:08 +0000 (10:07 +0100)] 
daemon: fix assertion errors on duplicate peers

Not sure if this is completely correct.

2 years agodaemon/session2: rename http flag to custom_emalf_handling
Oto Šťáva [Tue, 21 Mar 2023 06:35:19 +0000 (07:35 +0100)] 
daemon/session2: rename http flag to custom_emalf_handling

The session2 API as well as everything that uses it should be as
independent of the underlying protocols as possible, providing
functionality through firing different events. There was a left-over
`struct session2::http` flag, which allowed the DoH layer to return a
Bad Request reply. This has been renamed so that it does not mention
HTTP apart from the example in the doc comments, in case another
protocol needs to use this functionality at some point.

2 years agodaemon/session2: documentation edits
Oto Šťáva [Fri, 17 Mar 2023 12:51:09 +0000 (13:51 +0100)] 
daemon/session2: documentation edits

2 years agoMerge remote-tracking branch 'origin/master' into daemon-refactor-2
Oto Šťáva [Fri, 17 Mar 2023 11:21:47 +0000 (12:21 +0100)] 
Merge remote-tracking branch 'origin/master' into daemon-refactor-2

2 years agolib/cache, modules/ta_update: increase buffer size in tests
Oto Šťáva [Fri, 17 Mar 2023 09:50:00 +0000 (10:50 +0100)] 
lib/cache, modules/ta_update: increase buffer size in tests

2 years agodaemon: use a struct member for 'inheritance' to avoid aliasing issues
Oto Šťáva [Wed, 15 Mar 2023 07:19:42 +0000 (08:19 +0100)] 
daemon: use a struct member for 'inheritance' to avoid aliasing issues

It has been brought to my attention that using a macro to put an
identical member sequence at the beginning of multiple structs to
simulate OOP-like inheritance (the way libUV does it) may violate strict
aliasing rules. The standards-compliant way to do this should be to use
a single common struct member, as opposed to a common sequence of
members. This commit fixes this potential problem on our side.

Side note: even without this measure, it should not be causing any
problems for us, since we have '-fno-strict-aliasing' in our
meson.build. But in case libUV fixes their side at some point, let us
just have one less thing to worry about on our side.

2 years agodaemon: improve session closure readability
Oto Šťáva [Fri, 10 Mar 2023 12:15:16 +0000 (13:15 +0100)] 
daemon: improve session closure readability

Until now, sessions were closed by explicitly sending `_CLOSE` events
via the `session2_event()` function to them, which I think is not
signalling the intent very well. It might look as though the session
has been/is being closed by some part of the code that contains the
`session2_event()` call and a relevant event is being fired now. This
commit introduces `session2_close()` and `session2_force_close()` inline
functions, which do the same thing, but I think the intent behind
calling them is slightly clearer.

2 years agodaemon: optimize memory consumption for outgoing UDP
Oto Šťáva [Wed, 1 Mar 2023 10:24:10 +0000 (11:24 +0100)] 
daemon: optimize memory consumption for outgoing UDP

2 years agodaemon: refactor and documentation
Oto Šťáva [Tue, 28 Feb 2023 10:18:36 +0000 (11:18 +0100)] 
daemon: refactor and documentation

2 years agoNEWS: entry describing the previous three commits
Vladimír Čunát [Fri, 10 Mar 2023 17:29:42 +0000 (18:29 +0100)] 
NEWS: entry describing the previous three commits

The changes are potentially too significant to do in a patch update.

2 years agoimprove handling of SERVFAIL from forwarders
Vladimír Čunát [Wed, 8 Mar 2023 16:18:16 +0000 (17:18 +0100)] 
improve handling of SERVFAIL from forwarders

- selection: utilize address_state::broken also when forwarding
- selection: drop fallbacks that don't make sense when forwarding
- iterate: copy EDE codes on DNSSEC SERVFAILs

2 years agolib/resolve: when forwarding, prefer to send CD=0 upstream
Vladimír Čunát [Wed, 8 Mar 2023 13:25:39 +0000 (14:25 +0100)] 
lib/resolve: when forwarding, prefer to send CD=0 upstream

2 years agomanager: kresctl: config: better reformating
Aleš Mrázek [Fri, 10 Mar 2023 11:54:37 +0000 (12:54 +0100)] 
manager: kresctl: config: better reformating

2 years agolib/resolve query_finalize: handle RD flag even if NO_EDNS
Vladimír Čunát [Wed, 8 Mar 2023 13:01:08 +0000 (14:01 +0100)] 
lib/resolve query_finalize: handle RD flag even if NO_EDNS

2 years agoMerge !1390: nits: destination-based view, ephemeral TLS cert obs-knot-resolver-es11k1/deployments/2466 obs-knot-resolver-es11k1/deployments/2467 obs-knot-resolver-es11k1/deployments/2468 obs-knot-resolver-es11k1/deployments/2469 obs-knot-resolver-es11k1/deployments/2470 obs-knot-resolver-es11k1/deployments/2471 obs-knot-resolver-es11k1/deployments/2472 obs-knot-resolver-es11k1/deployments/2473 obs-knot-resolver-es11k1/deployments/2474 obs-knot-resolver-es11k1/deployments/2475 obs-knot-resolver-es11k1/deployments/2476 obs-knot-resolver-es11k1/deployments/2477
Vladimír Čunát [Fri, 10 Mar 2023 09:55:57 +0000 (10:55 +0100)] 
Merge !1390: nits: destination-based view, ephemeral TLS cert

2 years agoview: fix destination-based matching
Vladimír Čunát [Tue, 21 Feb 2023 14:35:14 +0000 (15:35 +0100)] 
view: fix destination-based matching

Apparently it's never worked since its introduction.

.addr is non-nil exactly when .dst_addr is non-nil
(which hapens iff the query originated externally).
Now we have semantics which was probably intended by the original code
(982162956a from 2016) but that semantics is still problematic
if you need both kinds of matching in a single request from client.

This matching by destination has never made it to docs,
so let's just add this simple fixup for now, and later
we'll steer users to new policy configuration anyway.

2 years agodaemon/tls_ephemeral_credentials nit: improve cert serial
Vladimír Čunát [Mon, 6 Mar 2023 16:21:50 +0000 (17:21 +0100)] 
daemon/tls_ephemeral_credentials nit: improve cert serial

I don't expect this matters, but why not fix this
to do what was intended (by the comment).
Discovered by Daniel Salzman <daniel.salzman@nic.cz>

2 years agoMerge !1384: Fix building on Cygwin obs-knot-resolver-es11k1/deployments/2464 obs-knot-resolver-es11k1/deployments/2465
Vladimír Čunát [Wed, 8 Mar 2023 10:22:54 +0000 (11:22 +0100)] 
Merge !1384: Fix building on Cygwin

Fixes #781

2 years agoadd a NEWS item for these "cygwin changes"
Vladimír Čunát [Sun, 26 Feb 2023 17:11:10 +0000 (18:11 +0100)] 
add a NEWS item for these "cygwin changes"

We won't really support cygwin builds,
so I avoided saying the name and explaining details.

2 years agoFix building on Cygwin
Christopher Ng [Sun, 25 Dec 2022 14:23:07 +0000 (14:23 +0000)] 
Fix building on Cygwin

This commit adds support for building on Cygwin/MSYS2.

Signed-off-by: Christopher Ng <facboy@gmail.com>
2 years agoRevert "meson: use correct luajit includes from pkgconfig"
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.

2 years agoMerge branch 'manager-kresctl-improvements' into 'manager'
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

2 years agomanager: kresctl: print nothing on success
Aleš Mrázek [Thu, 2 Mar 2023 15:23:54 +0000 (16:23 +0100)] 
manager: kresctl: print nothing on success

2 years agoMerge !1388: daemon/engine: warning when log_groups contains a non-existent group obs-knot-resolver-es11k1/deployments/2458 obs-knot-resolver-es11k1/deployments/2459 obs-knot-resolver-es11k1/deployments/2460 obs-knot-resolver-es11k1/deployments/2461 obs-knot-resolver-es11k1/deployments/2462 obs-knot-resolver-es11k1/deployments/2463
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

2 years agodaemon/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.

2 years agodoc/manager-client.rst: kresctl documentation update
Aleš Mrázek [Wed, 1 Mar 2023 00:18:13 +0000 (01:18 +0100)] 
doc/manager-client.rst: kresctl documentation update

2 years agomanager: kresctl: stdin argument removed from convert command
Aleš Mrázek [Wed, 1 Mar 2023 00:18:01 +0000 (01:18 +0100)] 
manager: kresctl: stdin argument removed from convert command

2 years agomanager: kresctl: config command refactored
Aleš Mrázek [Tue, 28 Feb 2023 17:41:50 +0000 (18:41 +0100)] 
manager: kresctl:  config command refactored

2 years agoMerge !1386: lib/utils: fix timestamp format in dumps of records obs-knot-resolver-es11k1/deployments/2454 obs-knot-resolver-es11k1/deployments/2455 obs-knot-resolver-es11k1/deployments/2456 obs-knot-resolver-es11k1/deployments/2457
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

2 years agolib/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)

2 years agodaemon: fix TLS rehandshakes
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.

2 years agodaemon/tls: readjust unwrap buffer size
Oto Šťáva [Thu, 23 Feb 2023 08:58:39 +0000 (09:58 +0100)] 
daemon/tls: readjust unwrap buffer size

2 years agodaemon/tls: logging consistency
Oto Šťáva [Thu, 23 Feb 2023 07:28:13 +0000 (08:28 +0100)] 
daemon/tls: logging consistency

2 years agoMerge remote-tracking branch 'origin/master' into daemon-refactor-2
Oto Šťáva [Thu, 23 Feb 2023 06:13:11 +0000 (07:13 +0100)] 
Merge remote-tracking branch 'origin/master' into daemon-refactor-2

2 years agoMerge !1387: ci: fix macOS builds obs-knot-resolver-es11k1/deployments/2450 obs-knot-resolver-es11k1/deployments/2451 obs-knot-resolver-es11k1/deployments/2452 obs-knot-resolver-es11k1/deployments/2453
Vladimír Čunát [Wed, 22 Feb 2023 11:18:14 +0000 (12:18 +0100)] 
Merge !1387: ci: fix macOS builds

2 years agoci: 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

2 years agodaemon/tls: fix TLS wire_buf size
Oto Šťáva [Wed, 22 Feb 2023 10:04:12 +0000 (11:04 +0100)] 
daemon/tls: fix TLS wire_buf size

2 years agoMerge branch 'manager-kresctl-noarg-fix' into 'manager'
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

2 years agomanager: client: HelpCommand as default command
Aleš Mrázek [Thu, 9 Feb 2023 17:19:06 +0000 (18:19 +0100)] 
manager: client: HelpCommand as default command

2 years agomanager: cli/command.py: commented code removed
Aleš Mrázek [Fri, 20 Jan 2023 14:50:46 +0000 (15:50 +0100)] 
manager: cli/command.py: commented code removed

2 years agodaemon/session2: improve wire_buf handling, fix reset bug
Oto Šťáva [Thu, 9 Feb 2023 12:33:50 +0000 (13:33 +0100)] 
daemon/session2: improve wire_buf handling, fix reset bug

2 years agoMerge remote-tracking branch 'origin/master' into daemon-refactor-2
Oto Šťáva [Thu, 9 Feb 2023 07:42:09 +0000 (08:42 +0100)] 
Merge remote-tracking branch 'origin/master' into daemon-refactor-2

2 years agodaemon: optimizations and logic fixes
Oto Šťáva [Thu, 9 Feb 2023 07:27:11 +0000 (08:27 +0100)] 
daemon: optimizations and logic fixes

2 years agoMerge !1383: ci: leap < 15.4 are dead obs-knot-resolver-es11k1/deployments/2436 obs-knot-resolver-es11k1/deployments/2437 obs-knot-resolver-es11k1/deployments/2438 obs-knot-resolver-es11k1/deployments/2439 obs-knot-resolver-es11k1/deployments/2440 obs-knot-resolver-es11k1/deployments/2441 obs-knot-resolver-es11k1/deployments/2442 obs-knot-resolver-es11k1/deployments/2443 obs-knot-resolver-es11k1/deployments/2444 obs-knot-resolver-es11k1/deployments/2445 obs-knot-resolver-es11k1/deployments/2446 obs-knot-resolver-es11k1/deployments/2447 obs-knot-resolver-es11k1/deployments/2448 obs-knot-resolver-es11k1/deployments/2449
Vladimír Čunát [Wed, 8 Feb 2023 09:14:00 +0000 (10:14 +0100)] 
Merge !1383: ci: leap < 15.4 are dead

2 years agodaemon/worker: less aggresssive packet error detection
Oto Šťáva [Wed, 8 Feb 2023 07:15:36 +0000 (08:15 +0100)] 
daemon/worker: less aggresssive packet error detection

2 years agodaemon/session2: use enum for consuming/propagating events instead of bool
Oto Šťáva [Tue, 7 Feb 2023 09:15:43 +0000 (10:15 +0100)] 
daemon/session2: use enum for consuming/propagating events instead of bool

2 years agoMerge remote-tracking branch 'origin/master' into daemon-refactor-2
Oto Šťáva [Tue, 7 Feb 2023 07:58:50 +0000 (08:58 +0100)] 
Merge remote-tracking branch 'origin/master' into daemon-refactor-2

2 years agoci: leap < 15.4 are dead
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

2 years agoMerge !1378: tests/pytests: quality-of-life improvements and notes obs-knot-resolver-es11k1/deployments/2429 obs-knot-resolver-es11k1/deployments/2430 obs-knot-resolver-es11k1/deployments/2431 obs-knot-resolver-es11k1/deployments/2432 obs-knot-resolver-es11k1/deployments/2434 obs-knot-resolver-es11k1/deployments/2435
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

2 years agodaemon: documentation and warnings fixes
Oto Šťáva [Thu, 2 Feb 2023 07:47:25 +0000 (08:47 +0100)] 
daemon: documentation and warnings fixes

2 years agodaemon/session2: fix memory leak at kresd stoppage
Oto Šťáva [Thu, 2 Feb 2023 07:46:46 +0000 (08:46 +0100)] 
daemon/session2: fix memory leak at kresd stoppage

2 years agodaemon/session2: documentation clarifications
Oto Šťáva [Wed, 1 Feb 2023 12:59:44 +0000 (13:59 +0100)] 
daemon/session2: documentation clarifications

2 years agotests/pytests: quality-of-life improvements and notes
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.

2 years agofixup! daemon: make closing more session-centric
Oto Šťáva [Tue, 31 Jan 2023 10:09:22 +0000 (11:09 +0100)] 
fixup! daemon: make closing more session-centric

2 years agodaemon: 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.

2 years agoMerge !1382: tests/pytests: adapt to stricter handling of trailing bytes obs-knot-resolver-es11k1/deployments/2422 obs-knot-resolver-es11k1/deployments/2423 obs-knot-resolver-es11k1/deployments/2424 obs-knot-resolver-es11k1/deployments/2425 obs-knot-resolver-es11k1/deployments/2426 obs-knot-resolver-es11k1/deployments/2427 obs-knot-resolver-es11k1/deployments/2428
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

2 years agotests/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.

2 years agoMerge branch 'release-5.6.0' into 'master' obs-knot-resolver-8xyvhu/deployments/2420 obs-knot-resolver-8xyvhu/deployments/2421 obs-knot-resolver-kv62s6/deployments/2418 v5.6.0
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

2 years agoci: allow failure for bad OBS distrotest jobs
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.

2 years agoAUTHORS: .mailmap update
Aleš Mrázek [Thu, 26 Jan 2023 13:51:29 +0000 (14:51 +0100)] 
AUTHORS: .mailmap update

2 years agorelease 5.6.0 obs-knot-resolver-bs4hbr/deployments/2417
Aleš Mrázek [Thu, 26 Jan 2023 12:21:55 +0000 (13:21 +0100)] 
release 5.6.0

2 years agoMerge branch 'reply-errors' into 'master'
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

2 years agoNEWS for the past two commits
Vladimír Čunát [Mon, 23 Jan 2023 11:15:47 +0000 (12:15 +0100)] 
NEWS for the past two commits

2 years agodaemon/io: penalize servers that close without reply
Vladimír Čunát [Thu, 19 Jan 2023 17:54:11 +0000 (18:54 +0100)] 
daemon/io: penalize servers that close without reply

2 years agodaemon/worker: call server_selection.error() more
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.

2 years agotests/config/doh2.test.lua: restore commented-out randomization
Oto Šťáva [Tue, 15 Nov 2022 07:22:41 +0000 (08:22 +0100)] 
tests/config/doh2.test.lua: restore commented-out randomization

2 years agodaemon: XDP with protolayers
Oto Šťáva [Thu, 20 Oct 2022 10:10:15 +0000 (12:10 +0200)] 
daemon: XDP with protolayers

2 years agodaemon/session2: documentation
Oto Šťáva [Tue, 18 Oct 2022 11:08:34 +0000 (13:08 +0200)] 
daemon/session2: documentation

2 years agodaemon/session2: fix memory leaks in push function
Oto Šťáva [Thu, 13 Oct 2022 12:26:22 +0000 (14:26 +0200)] 
daemon/session2: fix memory leaks in push function

2 years agodaemon/worker: fix being too eager to close connections with worker_submit errors
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

2 years agodaemon/session2: support for various event types in session2_start_timeout
Oto Šťáva [Wed, 12 Oct 2022 11:18:49 +0000 (13:18 +0200)] 
daemon/session2: support for various event types in session2_start_timeout

2 years agodaemon/session2: always log in/out direction
Oto Šťáva [Thu, 6 Oct 2022 11:32:50 +0000 (13:32 +0200)] 
daemon/session2: always log in/out direction

2 years ago.gitlab-ci.yml: reduce expected scan-build errors
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

2 years agodaemon: nits
Oto Šťáva [Thu, 6 Oct 2022 07:15:35 +0000 (09:15 +0200)] 
daemon: nits

2 years agodaemon/worker: remove unused lines; comment out XDP
Oto Šťáva [Wed, 5 Oct 2022 11:38:27 +0000 (13:38 +0200)] 
daemon/worker: remove unused lines; comment out XDP

2 years agodaemon/http: fix iteration context leaks
Oto Šťáva [Wed, 5 Oct 2022 11:30:26 +0000 (13:30 +0200)] 
daemon/http: fix iteration context leaks

2 years agodaemon: use init_request in more places; docs
Oto Šťáva [Thu, 29 Sep 2022 11:24:07 +0000 (13:24 +0200)] 
daemon: use init_request in more places; docs

2 years agodaemon/tls: fix non-removal of cleaned up iteration contexts from unwrap_queue
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

2 years agodaemon nits: fix lint:tidy issues
Oto Šťáva [Tue, 27 Sep 2022 08:35:43 +0000 (10:35 +0200)] 
daemon nits: fix lint:tidy issues

2 years agodaemon: fix DoH not sending entire messages + nits
Oto Šťáva [Tue, 27 Sep 2022 08:06:01 +0000 (10:06 +0200)] 
daemon: fix DoH not sending entire messages + nits

2 years agodaemon: fix DoH truncation and tasklist addition
Oto Šťáva [Thu, 22 Sep 2022 10:12:37 +0000 (12:12 +0200)] 
daemon: fix DoH truncation and tasklist addition