]>
 
 
git.ipfire.org Git - thirdparty/knot-resolver.git/log 
 
 
 
 
 
 
Petr Špaček  [Fri, 20 Mar 2020 14:59:58 +0000  (15:59 +0100)]  
 
Dockerfile with one-shot mode 
 
Intended usage: Quick resolution attempt with an empty cache. 
 
export QNAME=... 
export QTYPE=... 
sudo -E docker run -e QNAME -e QTYPE krestest:latest '-n' '-c' '/etc/knot-resolver/kresd.conf' 
 
Petr Špaček  [Fri, 20 Mar 2020 13:40:44 +0000  (14:40 +0100)]  
 
policy.DEBUG: fix to respect user-provided callbacks 
 
It creates new callback functions for every request which 
uses "callback chaining" but these should be rare. 
 
Petr Špaček  [Thu, 19 Mar 2020 07:13:06 +0000  (08:13 +0100)]  
 
lua: expose cache miss detection in request objects 
 
It seems there is no reason to keep this function private in policy 
module. 
 
Petr Špaček  [Wed, 18 Mar 2020 14:38:57 +0000  (15:38 +0100)]  
 
cache: remove forgotten log message "writing RRsets" 
 
It did not log through request->trace_log and is not very useful anyway. 
 
Petr Špaček  [Wed, 18 Mar 2020 14:20:59 +0000  (15:20 +0100)]  
 
validator: clarify message about signed non-authoritative data 
 
Petr Špaček  [Wed, 18 Mar 2020 13:03:13 +0000  (14:03 +0100)]  
 
policy.DEBUG: add also policy.REQTRACE for printing incoming packets 
 
Petr Špaček  [Wed, 18 Mar 2020 11:22:24 +0000  (12:22 +0100)]  
 
policy.DEBUG: generalize DEBUG_CACHE_MISS into DEBUG_IF 
 
DEBUG_IF accepts user-supplied function which decides which requests 
should be logged. 
 
Petr Špaček  [Mon, 16 Mar 2020 16:14:13 +0000  (17:14 +0100)]  
 
policy: doc reorganization and clarification 
 
Petr Špaček  [Fri, 13 Mar 2020 17:23:33 +0000  (18:23 +0100)]  
 
policy.DEBUG: log also final answer 
 
Attempt to avoid duplicating ten lines in debug_logfinish_cb lead me 
to splitting kr_log_qverbose_impl into two functions kr_log_q and kr_log_req. 
This is another minor change to API exposed to modules. 
 
Petr Špaček  [Thu, 12 Mar 2020 12:41:49 +0000  (13:41 +0100)]  
 
unify verbose logging and request tracing 
 
Formerly both logs used slightly different formats and duplicated code. 
From now on verbose log and request tracing are generated using the same 
code. 
 
This required a small change to request trace_log_f definition so it 
might affect external modules. 
 
Petr Špaček  [Thu, 12 Mar 2020 10:08:12 +0000  (11:08 +0100)]  
 
lua: helper functions for debug log 
 
Petr Špaček  [Wed, 11 Mar 2020 15:46:18 +0000  (16:46 +0100)]  
 
debug: warn on qname letter case mismatch 
 
We de-randomize qname letter case very early so kr_pkt_text() should see 
all lowercase. Any uppercase means mismatch. 
 
I've considered moving debug print to an earlier place but this way it 
is more visible so I like more. 
 
Petr Špaček  [Wed, 11 Mar 2020 15:44:07 +0000  (16:44 +0100)]  
 
iterate: log IP address sending mismatching answers 
 
Štěpán Balážik  [Wed, 11 Mar 2020 12:50:33 +0000  (13:50 +0100)]  
 
daemon/worker: add logging to qr_task_step query cancelation 
 
Tomas Krizek  [Mon, 23 Mar 2020 13:35:45 +0000  (14:35 +0100)]  
 
Merge branch 'strict-aliasing' into 'master' 
 
fix strict aliasing problems 
 
See merge request knot/knot-resolver!962 
 
Vladimír Čunát  [Mon, 23 Mar 2020 10:37:28 +0000  (11:37 +0100)]  
 
meson.build: compile with -fno-strict-aliasing 
 
I tested that older compilers don't refuse this option: 
 - gcc 4.8 (as that's the default in CentOS 7) 
 - llvm 3.8 (year 2016 is enough, I hope) 
 
Vladimír Čunát  [Fri, 20 Mar 2020 16:28:54 +0000  (17:28 +0100)]  
 
lib/generic/array: fix a strict aliasing problem 
 
The issue here is that `char *` is not allowed to alias 
with `anyType *`.  With gcc-10 in Fedora this now started 
to cause real problems and loading stats module segfaulted. 
 
Actually I can't see in standard (C11 6.5 par.7) that using `void *` 
is guaranteed to be correct, but at least it seems fine with gcc, 
and e.g. some standard functions like posix_memalign() use it 
in the same "dangerous" way. 
 
Tomas Krizek  [Fri, 20 Mar 2020 13:35:45 +0000  (14:35 +0100)]  
 
Merge branch 'ci-add-docker-py' into 'master' 
 
ci/debian-buster: Add docker-py to docker image 
 
See merge request knot/knot-resolver!961 
 
Lukáš Ježek  [Wed, 4 Mar 2020 13:14:40 +0000  (14:14 +0100)]  
 
ci/debian-buster: Add docker-py to docker image 
 
Tomas Krizek  [Wed, 18 Mar 2020 17:13:00 +0000  (18:13 +0100)]  
 
Merge branch 'ci-add-libnghttp2' into 'master' 
 
ci/debian-buster: add libnghttp2 to docker image 
 
See merge request knot/knot-resolver!960 
 
Tomas Krizek  [Wed, 18 Mar 2020 16:15:00 +0000  (17:15 +0100)]  
 
ci/debian-buster: add libnghttp2 to docker image 
 
Tomas Krizek  [Tue, 17 Mar 2020 16:22:45 +0000  (17:22 +0100)]  
 
Merge branch 'fix-leap-distrotest' into 'master' 
 
distro/tests: failure to refresh Leap15 repo is non-critical 
 
See merge request knot/knot-resolver!959 
 
Tomas Krizek  [Tue, 17 Mar 2020 15:48:24 +0000  (16:48 +0100)]  
 
distro/tests: failure to refresh Leap15 repo is non-critical 
 
Tomas Krizek  [Tue, 17 Mar 2020 15:47:41 +0000  (16:47 +0100)]  
 
distro/tests: update README 
 
Tomas Krizek  [Tue, 17 Mar 2020 14:01:17 +0000  (15:01 +0100)]  
 
Merge branch 'doc-links' into 'master' 
 
doc: fix a broken internal link 
 
See merge request knot/knot-resolver!958 
 
Vladimír Čunát  [Mon, 16 Mar 2020 18:11:37 +0000  (19:11 +0100)]  
 
doc: fix a broken internal link 
 
Reported on Turris forums: 
https://forum.turris.cz/t/dns-over-tcp-just-a-single-transaction/12003/21 
 
Vladimír Čunát  [Mon, 9 Mar 2020 17:20:51 +0000  (18:20 +0100)]  
 
Merge !954: docs: better RPZ description (+fix watch) 
 
Vladimír Čunát  [Mon, 9 Mar 2020 15:57:53 +0000  (16:57 +0100)]  
 
Merge !956: ci/travis: correctly print http error codes 
 
Vladimír Čunát  [Mon, 9 Mar 2020 15:50:38 +0000  (16:50 +0100)]  
 
ci/travis: correctly print http error codes 
 
Thanks to Tomas. 
 
Tomas Krizek  [Mon, 9 Mar 2020 13:48:02 +0000  (14:48 +0100)]  
 
modules/policy: polict.rpz() shouldn't watch file when watch=false 
 
Petr Špaček  [Mon, 9 Mar 2020 13:22:05 +0000  (14:22 +0100)]  
 
Merge branch 'compiler-warnings' into 'master' 
 
compiler warning improvements 
 
See merge request knot/knot-resolver!952 
 
Petr Špaček  [Mon, 9 Mar 2020 13:16:04 +0000  (14:16 +0100)]  
 
docs: better RPZ description 
 
Tomas Krizek  [Mon, 9 Mar 2020 11:01:00 +0000  (12:01 +0100)]  
 
Merge branch 'ci-disable-epel8-check' into 'master' 
 
ci: disable build check for EPEL8 (still unresolvable) 
 
See merge request knot/knot-resolver!953 
 
Tomas Krizek  [Mon, 9 Mar 2020 10:43:23 +0000  (11:43 +0100)]  
 
ci: disable build check for EPEL8 (still unresolvable) 
 
Vladimír Čunát  [Thu, 27 Feb 2020 10:24:00 +0000  (11:24 +0100)]  
 
make bad <lua.h> a hard informative error 
 
Vladimír Čunát  [Sun, 22 Dec 2019 09:24:49 +0000  (10:24 +0100)]  
 
daemon/main: -Wformat in info message 
 
Normally the types are equal, but that's not true e.g. 
on 32-bit systems and macOS. 
 
Vladimír Čunát  [Tue, 25 Feb 2020 10:24:22 +0000  (11:24 +0100)]  
 
meson: turn implicit-function warnings into hard errors 
 
I just saw a case with bad luajit includes that linked successfully even 
with some of the macros getting this warning. 
 
Vladimír Čunát  [Wed, 26 Feb 2020 14:50:07 +0000  (15:50 +0100)]  
 
daemon/bindings/net: avoid -Wunused-variable on non-Linux 
 
Vladimír Čunát  [Fri, 6 Mar 2020 08:15:48 +0000  (09:15 +0100)]  
 
Merge !951: NEWS: I forgot to re-classify the last change 
 
Vladimír Čunát  [Fri, 6 Mar 2020 08:14:22 +0000  (09:14 +0100)]  
 
NEWS: I forgot to re-classify the last change 
 
Vladimír Čunát  [Fri, 6 Mar 2020 08:10:14 +0000  (09:10 +0100)]  
 
Merge !949: FreeBSD-related improvements 
 
Fixes #549 
 
Vladimír Čunát  [Wed, 4 Mar 2020 12:55:15 +0000  (13:55 +0100)]  
 
lib/cache: ignore EINVAL from space pre-allocation 
 
Vladimír Čunát  [Wed, 4 Mar 2020 12:47:02 +0000  (13:47 +0100)]  
 
daemon/io: extend logging for TCP Fast Open failure 
 
In FreeBSD it's disabled by default, causing this error. 
I tried disabling it on Linux via sysctl, but that didn't seem 
to cause any errors. 
 
Vladimír Čunát  [Thu, 5 Mar 2020 17:47:32 +0000  (18:47 +0100)]  
 
Merge !950: Fix spelling in module-prefill description 
 
Peter Keresztes Schmidt  [Thu, 5 Mar 2020 15:11:56 +0000  (16:11 +0100)]  
 
Fix spelling error in module-prefill description 
 
Vladimír Čunát  [Mon, 2 Mar 2020 13:22:53 +0000  (14:22 +0100)]  
 
Merge !948: README.md: fix broken readthedocs link 
 
Vladimír Čunát  [Mon, 2 Mar 2020 13:10:32 +0000  (14:10 +0100)]  
 
README.md: fix broken readthedocs link 
 
The nice restructuring had these side effects, unfortunately. 
 
Tomas Krizek  [Mon, 2 Mar 2020 11:02:12 +0000  (12:02 +0100)]  
 
Merge branch 'gc-cpu-usage' into 'master' 
 
gc: don't re-open cache so often 
 
See merge request knot/knot-resolver!946 
 
Vladimír Čunát  [Fri, 28 Feb 2020 14:37:23 +0000  (15:37 +0100)]  
 
gc: make the log more readable 
 
One iteration of GC produces five lines of log (without -DDEBUG); 
separating those chunks seems much nicer. 
 
Vladimír Čunát  [Fri, 28 Feb 2020 14:02:27 +0000  (15:02 +0100)]  
 
gc: make state in kr_cache_gc() explicit 
 
It really is nicer to work with. 
Additionally re-open cache after any GC errors. 
 
Vladimír Čunát  [Mon, 24 Feb 2020 17:32:26 +0000  (18:32 +0100)]  
 
gc: don't re-open cache so often
Re-opening the cache causes fsync - every interval (1s by default).
Normally that isn't noticeable, but on encrypted ZFS it causes
high CPU consumption (even when "idle").
grahamc first reported this and Mic92 tested the patch helps. Thanks!
https://gitter.im/CZ-NIC/knot-resolver?at=
5e4ea2343ca8a67fb808e349 
 
Tomas Krizek  [Wed, 26 Feb 2020 13:51:51 +0000  (14:51 +0100)]  
 
Merge branch 'spdx-cleanup' into 'master' 
 
spdx cleanup: fix installation and pkgtests 
 
See merge request knot/knot-resolver!945 
 
Tomas Krizek  [Wed, 26 Feb 2020 09:47:12 +0000  (10:47 +0100)]  
 
spdx cleanup: fix installation and pkgtests 
 
Vladimír Čunát  [Tue, 25 Feb 2020 08:42:17 +0000  (09:42 +0100)]  
 
Merge !942: license cleanup 
 
Petr Špaček  [Mon, 17 Feb 2020 08:56:48 +0000  (09:56 +0100)]  
 
autogenerate AUTHORS file to get rid of outdated data 
 
The file can be re-generated using scripts/update-authors.sh. 
File .mailmap is used for name canonicalization and fresh list of 
authors replaces the old one in AUTHORS file automatically. 
Gitlab CI checks its content before release (on branches named release-*). 
 
Marek Vavruša is listed in .mailmap file twice intentionally, 
once as CZ.NIC employee and second time as external contributor. 
 
Petr Špaček  [Fri, 21 Feb 2020 15:27:41 +0000  (16:27 +0100)]  
 
http: document source of bootstrap/bootswatch theme
Source is
git+https://github.com/twbs/bootstrap.git@
a78dc3aed640a35914361b837ce24573a0515e19 #yeti/bootstrap.min.css
but our version has minor modifications:
- removed link to font file
- minor font and line height adjustments
- added SPDX header
Diffing minimized CSS file is a mess so use something like
$ awk '{gsub(/{|}|;/,"&\n"); print}'
to get something more legible.
 
Petr Špaček  [Thu, 20 Feb 2020 14:04:31 +0000  (15:04 +0100)]  
 
http: machine readable license for selectize.js 
 
Petr Špaček  [Thu, 20 Feb 2020 13:51:04 +0000  (14:51 +0100)]  
 
http: update selectize.js to match upstream version 0.12.6
Originally we used version 0.12.0 but the files in our repo did not
exactly match files in the upstream repo and I could not confirm
if the changes were meaningful or just artifact of source minimization
process.
To remove uncertainity I've updated selectize.js to latest upstream version
0.12.6, did not do any extra CSS minimization, and removed unused file
selectize.min.css.
As far as I can tell it seems to work.
Source:
git+https://github.com/selectize/selectize.js.git@
eb0fca364f9bd6864ae197ea58c853f2717052a9 
 
Petr Špaček  [Tue, 18 Feb 2020 15:43:02 +0000  (16:43 +0100)]  
 
mark bundled content with SPDX file 
 
The SPDX file contains hand-written metadata about source URL, version, 
authors, and license. 
 
There are two missing pieces in HTTP module: 
- bootswatch theme - I could not find what theme we ship, maybe it is 
  based on one of bootswatch themes but heavily modified 
- selectize.js source does not match respective files in upstream but 
  contains minor changes 
 
I will deal with these in later commits. 
 
Petr Špaček  [Mon, 17 Feb 2020 14:00:32 +0000  (15:00 +0100)]  
 
license: add note that some files might have different license 
 
Petr Špaček  [Mon, 17 Feb 2020 09:14:44 +0000  (10:14 +0100)]  
 
tag license files according to Linux Kernel license identifier syntax 
 
https://www.kernel.org/doc/html/latest/process/license-rules.html#license-identifier-syntax 
 
Petr Špaček  [Fri, 14 Feb 2020 14:25:09 +0000  (15:25 +0100)]  
 
treewide: machine readable license for all the rest 
 
These files did not have GNU GPL v3 boilderplate in them so 
I've added machine readable tag with appropriate license. 
 
Petr Špaček  [Fri, 14 Feb 2020 10:08:59 +0000  (11:08 +0100)]  
 
treewide: machine readable license for GNU GPLv3+ source code 
 
Long GNU GPLv3 boilderplate was automatically replaced 
with machine readable tag. 
 
Petr Špaček  [Fri, 14 Feb 2020 08:15:09 +0000  (09:15 +0100)]  
 
contrib/licenses: machine readable license 
 
Petr Špaček  [Fri, 14 Feb 2020 08:42:01 +0000  (09:42 +0100)]  
 
contrib/ucw: machine readable license 
 
Petr Špaček  [Fri, 14 Feb 2020 08:08:02 +0000  (09:08 +0100)]  
 
contrib/murmurhash3: machine readable license 
 
Petr Špaček  [Fri, 14 Feb 2020 08:05:50 +0000  (09:05 +0100)]  
 
contrib/json: remove dead tests 
 
Petr Špaček  [Fri, 14 Feb 2020 08:05:27 +0000  (09:05 +0100)]  
 
contrib/json: machine readable license 
 
Petr Špaček  [Fri, 14 Feb 2020 08:03:28 +0000  (09:03 +0100)]  
 
contrib/compiler: remove dead tests 
 
Petr Špaček  [Fri, 14 Feb 2020 08:02:53 +0000  (09:02 +0100)]  
 
contrib/compiler: machine readable license 
 
Petr Špaček  [Fri, 14 Feb 2020 07:56:58 +0000  (08:56 +0100)]  
 
contrib/asprintf: machine readable license 
 
Petr Špaček  [Fri, 14 Feb 2020 07:53:09 +0000  (08:53 +0100)]  
 
contrib: remove unused ccan/ilog 
 
Petr Špaček  [Thu, 13 Feb 2020 09:05:07 +0000  (10:05 +0100)]  
 
contrib: remove unsed _info files from CCAN 
 
Petr Špaček  [Tue, 25 Feb 2020 07:32:26 +0000  (08:32 +0100)]  
 
Merge branch 'tls-log-pins' into 'master' 
 
daemon/tls: downgrade a log line to --verbose mode 
 
See merge request knot/knot-resolver!944 
 
Vladimír Čunát  [Mon, 24 Feb 2020 12:31:11 +0000  (13:31 +0100)]  
 
daemon/tls: downgrade a log line to --verbose mode 
 
It just reports a failure to show the key-pin hash in the log. 
 
Petr Špaček  [Tue, 25 Feb 2020 07:24:54 +0000  (08:24 +0100)]  
 
Merge branch 'asprintf-cleanup' into 'master' 
 
asprintf cleanup 
 
See merge request knot/knot-resolver!941 
 
Vladimír Čunát  [Mon, 24 Feb 2020 09:24:12 +0000  (10:24 +0100)]  
 
Merge branch 'travis-homebrew-update' into 'master' 
 
travis: force homebrew update to fix travis issue 
 
See merge request knot/knot-resolver!943 
 
Tomas Krizek  [Mon, 24 Feb 2020 09:08:29 +0000  (10:08 +0100)]  
 
travis: force homebrew update to fix travis issue 
 
Build fails in Travis CI, because package download fails. Forcing update 
of homebrew should fix it. 
 
https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296 
 
Vladimír Čunát  [Tue, 18 Feb 2020 19:03:14 +0000  (20:03 +0100)]  
 
meson: actually #define HAVE_ASPRINTF 
 
I believe this should now correctly enable the code iff it's needed. 
 
This commits and the parent will probably be no-op in practice. 
I believe distros commonly do use fortification by default, 
and I'm not aware of any platform with kresd and without asprintf(). 
 
I considered using `conf_data.set()` in meson, but that would require 
us modifying contrib/ccan/asprintf/asprintf.h to include kresconfig.h, 
and that seemed weird. 
 
Vladimír Čunát  [Tue, 18 Feb 2020 19:01:27 +0000  (20:01 +0100)]  
 
contrib/ccan/asprintf: remove fortification guard
Perhaps it served some purpose in 
28b230823 , but it seems incorrect.
 
Tomas Krizek  [Mon, 17 Feb 2020 11:38:03 +0000  (12:38 +0100)]  
 
Merge branch 'ci-docker-job' into 'master' 
 
ci: run docker job only for our repos 
 
See merge request knot/knot-resolver!940 
 
Tomas Krizek  [Mon, 17 Feb 2020 11:31:24 +0000  (12:31 +0100)]  
 
ci: run docker job only for our repos 
 
Tomas Krizek  [Mon, 17 Feb 2020 10:33:04 +0000  (11:33 +0100)]  
 
Merge branch 'fixup_mr_937' into 'master' 
 
fixup! use js scheme detection 
 
See merge request knot/knot-resolver!939 
 
Tomas Krizek  [Mon, 17 Feb 2020 09:30:05 +0000  (10:30 +0100)]  
 
ci: fix job conditions for build:darwin 
 
Tomas Krizek  [Mon, 17 Feb 2020 09:03:17 +0000  (10:03 +0100)]  
 
ci: run tests on contributor master branches 
 
Petr Špaček  [Fri, 14 Feb 2020 16:44:18 +0000  (17:44 +0100)]  
 
fixup! use js scheme detection 
 
Tomas Krizek  [Mon, 10 Feb 2020 11:38:27 +0000  (12:38 +0100)]  
 
Merge branch 'master' into 'master' 
 
use js scheme detection at webmanagement page 
 
Closes #546 
 
See merge request knot/knot-resolver!937 
 
Tomas Krizek  [Mon, 10 Feb 2020 10:53:01 +0000  (11:53 +0100)]  
 
Merge branch 'base64-namespace' into 'master' 
 
base64_* -> kr_base64_* 
 
See merge request knot/knot-resolver!938 
 
Vladimír Čunát  [Mon, 10 Feb 2020 08:54:48 +0000  (09:54 +0100)]  
 
base64_* -> kr_base64_* 
 
GnuTLS 3.3 contained these as public symbols.  This doesn't seem 
important, but why not use more collision-resistant names anyway? 
Details/discussion: https://github.com/CZ-NIC/knot/pull/14 
Basically noone should notice, so I didn't include any NEWS entry. 
 
SH  [Thu, 6 Feb 2020 15:24:38 +0000  (16:24 +0100)]  
 
use js scheme detection 
 
Tomas Krizek  [Wed, 5 Feb 2020 15:33:05 +0000  (16:33 +0100)]  
 
Merge branch 'release-5-0-1' into 'master' 
 
release 5.0.1 
 
See merge request knot/knot-resolver!936 
 
Tomas Krizek  [Wed, 5 Feb 2020 15:16:19 +0000  (16:16 +0100)]  
 
release 5.0.1 
 
Tomas Krizek  [Mon, 3 Feb 2020 18:19:00 +0000  (19:19 +0100)]  
 
Merge branch 'deb-restart-kres-gc' into 'master' 
 
packaging: ensure GC is restarted on pkg update 
 
See merge request knot/knot-resolver!935 
 
Tomas Krizek  [Mon, 3 Feb 2020 12:54:53 +0000  (13:54 +0100)]  
 
distro/rpm: remove useless %systemd_post 
 
%system_post creates a preset, which we don't use (but could perhaps 
replace the symlink for kresd.target). 
 
rickhg12hs  [Sun, 2 Feb 2020 18:37:14 +0000  (19:37 +0100)]  
 
distro/rpm: fix typo in description 
 
Tomas Krizek  [Fri, 31 Jan 2020 10:40:12 +0000  (11:40 +0100)]  
 
distro/rpm: ensure GC is restarted on upgrade 
 
Tomas Krizek  [Fri, 31 Jan 2020 09:21:34 +0000  (10:21 +0100)]  
 
distro/deb: ensure GC is restarted on pkg configure 
 
Tomas Krizek  [Thu, 30 Jan 2020 11:28:53 +0000  (12:28 +0100)]  
 
Merge branch 'nitpicks' into 'master' 
 
modules/prefill docs: fix dependencies 
 
See merge request knot/knot-resolver!934 
 
Vladimír Čunát  [Thu, 30 Jan 2020 10:42:51 +0000  (11:42 +0100)]  
 
modules/prefill docs: fix dependencies
LFS isn't used since !912 (
6d209ef99 ).
 
Vladimír Čunát  [Wed, 29 Jan 2020 16:07:41 +0000  (17:07 +0100)]  
 
Merge !932: add cache.fssize() 
 
Closes #524.