]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Marek Vavruša [Tue, 12 Feb 2019 18:36:19 +0000 (10:36 -0800)]
lib: allow building with only core library (no cache and no lmdb)
Marek Vavruša [Fri, 21 Dec 2018 04:05:40 +0000 (20:05 -0800)]
lib: remove daemon dependencies from library to allow for embedding
Petr Špaček [Mon, 11 Feb 2019 16:09:00 +0000 (16:09 +0000)]
Merge branch 'nitpicks-lua' into 'master'
smaller changes, mainly around lua error handling
See merge request knot/knot-resolver!768
Vladimír Čunát [Mon, 11 Feb 2019 11:53:01 +0000 (12:53 +0100)]
daemon/bindings: nitpicks fixed during MR review
Vladimír Čunát [Wed, 30 Jan 2019 15:37:59 +0000 (16:37 +0100)]
treewide: avoid lua_tonumber where integer is expected
Vladimír Čunát [Wed, 30 Jan 2019 18:04:32 +0000 (19:04 +0100)]
lua_error_p(): print whole stack trace
We use a function that's not in lua 5.1,
but it's been present in luajit since 2.0.0:
https://github.com/LuaJIT/LuaJIT/commit/
fcddd5a3a
Vladimír Čunát [Fri, 25 Jan 2019 21:01:32 +0000 (22:01 +0100)]
lua from C: unify the way we throw lua_error()
It's often a bit shorter, and it provides us with location.
Vladimír Čunát [Fri, 25 Jan 2019 19:20:22 +0000 (20:20 +0100)]
lib/utils kr_straddr_split(): tweak meaning, use more
Now we don't rewrite the port-splitters in command line by zero bytes.
That was confusing the output of some SW showing the command-line
of running kresd.
Petr Špaček [Thu, 7 Feb 2019 16:23:42 +0000 (16:23 +0000)]
Merge branch 'bindings-split' into 'master'
split code and docs for lua bindings into smaller files
See merge request knot/knot-resolver!765
Vladimír Čunát [Thu, 24 Jan 2019 18:15:29 +0000 (19:15 +0100)]
cleanups after splitting bindings.c
Vladimír Čunát [Thu, 24 Jan 2019 17:18:58 +0000 (18:18 +0100)]
split daemon/bindings.c file
It's now a directory, one C file for each lua table of functions.
We get more total lines due to per-file copyright headers,
but the original file was just too long (nearing 2k lines).
The layout was inspired by the lib/cache/ split.
Disadvantage: git operations (e.g. blame) will stumble on this commit.
During the move, rename the "str" and "xstr" macros, too.
Otherwise there are no real changes, as they would be hard to spot.
Vladimír Čunát [Thu, 7 Feb 2019 10:32:45 +0000 (10:32 +0000)]
Merge !764: doc/kresd.systemd: bind to all interfaces with kresd.socket
Tomas Krizek [Tue, 29 Jan 2019 09:33:41 +0000 (10:33 +0100)]
modules/view/README: mention v4-mapped-on-v6 syntax
Related #445
Tomas Krizek [Tue, 29 Jan 2019 09:33:01 +0000 (10:33 +0100)]
modules/view/README: add IPv6 example
Tomas Krizek [Tue, 29 Jan 2019 09:25:03 +0000 (10:25 +0100)]
doc/kresd.socket: mention IPv4 syntax incompatibility when binding with IPv6
Related #445
Tomas Krizek [Mon, 28 Jan 2019 13:41:05 +0000 (14:41 +0100)]
doc/kresd.systemd: bind to all interfaces with kresd.socket
Tomas Krizek [Mon, 28 Jan 2019 13:43:52 +0000 (14:43 +0100)]
systemd/kresd.socket: explicitly set BindIPv6Only=both
This should be the default, but since we're relying on it in
our documentation, it's better to set it explicitly. It can be
overriden in the drop-in file if necessary.
Vladimír Čunát [Wed, 6 Feb 2019 14:38:48 +0000 (14:38 +0000)]
Merge !767: policy.rpz(): watch for file changes by default
Original thread: https://gitlab.labs.nic.cz/knot/knot-resolver/merge_requests/752
Vladimír Čunát [Fri, 11 Jan 2019 11:44:23 +0000 (12:44 +0100)]
modules/policy RPZ: various nitpicks
- logging
- watch by default
- in Fedora we need to depend on the version for lua 5.1
Jonathan Coetzee [Wed, 6 Feb 2019 13:59:23 +0000 (14:59 +0100)]
modules/policy RPZ: auto-reloading function
vcunat squashed this, rebased, etc.
Vladimír Čunát [Wed, 6 Feb 2019 13:42:39 +0000 (13:42 +0000)]
Merge !766: ta_signal_query: document its limitations
Petr Špaček [Wed, 6 Feb 2019 10:53:25 +0000 (11:53 +0100)]
ta_signal_query: document its limitations
Vladimír Čunát [Wed, 30 Jan 2019 09:58:39 +0000 (09:58 +0000)]
Merge !758: CI: build package for Turris
Tomas Krizek [Thu, 17 Jan 2019 15:12:40 +0000 (16:12 +0100)]
gitlabci: run Turris build in CI
Tomas Krizek [Thu, 17 Jan 2019 14:33:11 +0000 (15:33 +0100)]
distro/turris: import packaging files
Tomas Krizek [Wed, 16 Jan 2019 15:39:26 +0000 (16:39 +0100)]
ci/turris: add Docker container for Turris builds
Vladimír Čunát [Tue, 29 Jan 2019 14:48:12 +0000 (14:48 +0000)]
Merge !756: modules/hints: allow overriding TTL, change default
Closes #442.
Vladimír Čunát [Thu, 17 Jan 2019 14:13:27 +0000 (15:13 +0100)]
dns64 tests: fix by setting hints.ttl() explicitly
Vladimír Čunát [Thu, 17 Jan 2019 13:58:35 +0000 (14:58 +0100)]
modules/hints: change default TTL to 5s, add NEWS
0 was unreasonable. Even if hints are meant for "close" devices,
they will commonly be e.g. behind WiFi, and it seems unreasonable to
expect changes faster than after a couple seconds anyway.
Vladimír Čunát [Mon, 14 Jan 2019 17:10:10 +0000 (18:10 +0100)]
modules/hints: allow overriding the TTL
Fixes #442.
Tomas Krizek [Mon, 28 Jan 2019 12:35:45 +0000 (12:35 +0000)]
Merge branch 'ta-test-timeout' into 'master'
daemon/trust_anchors.test: increase max timeout
See merge request knot/knot-resolver!763
Tomas Krizek [Mon, 28 Jan 2019 11:09:18 +0000 (12:09 +0100)]
daemon/trust_anchors.test: increase max timeout
Our CI environment requires a longer timeout during
high-load.
Vladimír Čunát [Mon, 28 Jan 2019 11:46:40 +0000 (11:46 +0000)]
Merge !753: trust_anchors: don't update unmanaged TAs from files
Vladimír Čunát [Sat, 19 Jan 2019 14:19:54 +0000 (15:19 +0100)]
trust anchors: implementation cleanup
We don't need the trustanchor() lua function for root bootstrap
anymore, so let's get rid of it. It was undocumented (internal).
Vladimír Čunát [Sat, 19 Jan 2019 13:01:34 +0000 (14:01 +0100)]
trust anchors: improve .add()
These keys will now be more uniformly represented and thus also
shown by .summary(). It's still not perfectly synchronized when
that function fails, but that seems acceptable.
Vladimír Čunát [Sat, 19 Jan 2019 11:13:40 +0000 (12:13 +0100)]
trust anchors: extend internal keyset_read()
- allow accepting a string instead of file
- move some checks inside
Vladimír Čunát [Tue, 15 Jan 2019 10:59:06 +0000 (11:59 +0100)]
trust anchors tests: add test_revoked_key()
Vladimír Čunát [Tue, 15 Jan 2019 10:07:33 +0000 (11:07 +0100)]
trust_anchors.summary(): unify the output
It could've been confusing otherwise, e.g. revoked or otherwise
untrusted keys were shown without any annotation in some cases.
Vladimír Čunát [Fri, 11 Jan 2019 15:28:22 +0000 (16:28 +0100)]
trust_anchors: don't update unmanaged TAs from files
This also implies that non-verbose logs won't contain any lines about
the TAs if they are unmanaged (by default), but that seems OK.
Petr Špaček [Wed, 23 Jan 2019 16:21:47 +0000 (16:21 +0000)]
Merge branch 'ci-pytests-new-proxy' into 'master'
pytests: update proxy + test_random_close
See merge request knot/knot-resolver!732
Tomas Krizek [Mon, 21 Jan 2019 13:41:31 +0000 (14:41 +0100)]
pytests/proxy: run test_rehandshake with TLS 1.3 as well
Grigorii Demidov [Thu, 17 Jan 2019 13:01:54 +0000 (14:01 +0100)]
pytests/proxy: support for TLSv1.3 posthadshake reauth
Tomas Krizek [Wed, 16 Jan 2019 13:58:22 +0000 (14:58 +0100)]
pytests/test_rehandshake: fix test
Grigorii Demidov [Wed, 16 Jan 2019 13:48:02 +0000 (14:48 +0100)]
pytests/proxy: disable TLS1.3 suppoert
Grigorii Demidov [Wed, 16 Jan 2019 10:50:00 +0000 (11:50 +0100)]
pytests/proxy: minor improvement in rehandshake processing
Tomas Krizek [Tue, 15 Jan 2019 17:43:06 +0000 (18:43 +0100)]
pytests/kresd.conf: make sure localhost hint is present
Grigorii Demidov [Tue, 15 Jan 2019 13:13:23 +0000 (14:13 +0100)]
pytest/proxy: support for multiple clients, some new functionality; tcproxy removed
Tomas Krizek [Wed, 9 Jan 2019 15:42:31 +0000 (16:42 +0100)]
pytest/test_random_close: use new proxy
Tomas Krizek [Tue, 11 Dec 2018 14:38:32 +0000 (15:38 +0100)]
pytests/test_random_close: add test
Tomas Krizek [Wed, 9 Jan 2019 15:07:12 +0000 (16:07 +0100)]
pytests/test_rehandshake: use new proxy
Tomas Krizek [Wed, 9 Jan 2019 13:14:32 +0000 (14:14 +0100)]
pytests/proxy: Python wrapper
Tomas Krizek [Wed, 9 Jan 2019 13:08:26 +0000 (14:08 +0100)]
pytests/proxy: import code
Original author: Grigorii Demidov <grigorii.demidov@nic.cz>
Tomas Krizek [Tue, 11 Dec 2018 14:20:28 +0000 (15:20 +0100)]
pytests: extract proxy logic to proxyutils
Tomas Krizek [Mon, 21 Jan 2019 12:12:35 +0000 (13:12 +0100)]
pytests/test_tls: disable TLS v1.3 for session resumption tests
Tomas Krizek [Fri, 18 Jan 2019 13:56:17 +0000 (14:56 +0100)]
ci: add debian-buster container
Tomas Krizek [Fri, 18 Jan 2019 14:06:18 +0000 (15:06 +0100)]
ci: use debian-buster image
Tomas Krizek [Fri, 18 Jan 2019 14:00:40 +0000 (15:00 +0100)]
gitlabci: use variable for Knot DNS version
Tomas Krizek [Wed, 23 Jan 2019 13:57:35 +0000 (13:57 +0000)]
Merge branch 'rpm-ldconfig' into 'master'
ditro/rpm: remove ldconfig for Fedora
See merge request knot/knot-resolver!761
Tomas Krizek [Wed, 23 Jan 2019 10:01:40 +0000 (11:01 +0100)]
distro/tests: install dig before knot-resolver
Keep knot-resolver installation along with other kresd-related
actions as close as possible to detect possible rpm transaction issues.
Tomas Krizek [Wed, 23 Jan 2019 09:48:19 +0000 (10:48 +0100)]
distro/rpm: remove ldconfig for Fedora
https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
Tomas Krizek [Wed, 23 Jan 2019 13:27:02 +0000 (13:27 +0000)]
Merge branch 'http-docs' into 'master'
modules/http docs: improve the example
See merge request knot/knot-resolver!760
Vladimír Čunát [Wed, 23 Jan 2019 10:42:56 +0000 (11:42 +0100)]
modules/http docs: improve the example
Otherwise the http module isn't really usable :-/
Petr Špaček [Wed, 16 Jan 2019 12:26:35 +0000 (12:26 +0000)]
Merge branch 'predict-defaults' into 'master'
modules/predict: don't skip reconfiguration if nil is passed
See merge request knot/knot-resolver!755
Vladimír Čunát [Mon, 14 Jan 2019 15:44:56 +0000 (16:44 +0100)]
modules/predict: don't skip reconfiguration if nil is passed
If you didn't specify any configuration (i.e. nil), the stats module
wouldn't get loaded even though the defaults need it to work.
Now we don't skip that part and pass whole .config() even on nil config.
Vladimír Čunát [Mon, 14 Jan 2019 13:02:03 +0000 (13:02 +0000)]
Merge !754: kr_rplan_pop(): avoid reordering kr_rplan::pending
Vladimír Čunát [Mon, 14 Jan 2019 11:45:02 +0000 (12:45 +0100)]
kr_rplan_pop(): avoid reordering kr_rplan::pending
- It's not ideal, but this will need significant overhaul anyway when
"parallel queries" get implemented.
- I didn't put this into array.h, as we don't seem likely to need it
anywhere else and implementation in macros would be ugly.
- It's unclear whether this "bug" could cause anything in practice.
Tomas Krizek [Thu, 10 Jan 2019 11:40:47 +0000 (11:40 +0000)]
Merge branch 'release_321' into 'master'
Release 3.2.1
See merge request knot/knot-resolver!750
Tomas Krizek [Thu, 10 Jan 2019 09:24:39 +0000 (10:24 +0100)]
release 3.2.1
Tomas Krizek [Thu, 10 Jan 2019 10:53:19 +0000 (11:53 +0100)]
lua-aho-corasick: bump to latest version
Petr Špaček [Wed, 9 Jan 2019 16:26:18 +0000 (17:26 +0100)]
tests: import new Deckard with new tests
Besides other things Deckard now detects hang servers using timeout. It
might happen that CI will need a longer timeout - we can change the
value at will.
Petr Špaček [Wed, 9 Jan 2019 15:36:05 +0000 (16:36 +0100)]
NEWS for 3.2.1 release
Petr Špaček [Thu, 10 Jan 2019 10:30:45 +0000 (10:30 +0000)]
Merge branch 'lmdb-nowarn' into 'master'
contrib/lmdb: avoid -Wshadow with embedded lmdb
See merge request knot/knot-resolver!751
Vladimír Čunát [Thu, 10 Jan 2019 09:19:56 +0000 (10:19 +0100)]
contrib/lmdb: avoid -Wshadow with embedded lmdb
Unfortunately, CFLAGS are concatenated in the other order than we would
need for this, so let's choose this approach.
Tomas Krizek [Thu, 10 Jan 2019 09:20:59 +0000 (09:20 +0000)]
Merge branch 'packaging-update' into 'master'
packaging tests update
See merge request knot/knot-resolver!747
Tomas Krizek [Mon, 7 Jan 2019 16:30:16 +0000 (17:30 +0100)]
distro/tests: select corect Python interpreter for ansible
Tomas Krizek [Mon, 7 Jan 2019 16:25:23 +0000 (17:25 +0100)]
scripts/build-in-obs.sh: nitpick
Tomas Krizek [Mon, 7 Jan 2019 16:24:13 +0000 (17:24 +0100)]
distro/tests: switch fedora to generic boxes (more recent packages)
Tomas Krizek [Mon, 7 Jan 2019 16:23:07 +0000 (17:23 +0100)]
distro/tests: turn off shell warning when using pkg manager commands
Tomas Krizek [Mon, 7 Jan 2019 16:22:08 +0000 (17:22 +0100)]
distro/tests: don't wait for confirmation during vagrant destroy
Vladimír Čunát [Wed, 9 Jan 2019 17:34:01 +0000 (17:34 +0000)]
Merge !737: trust anchors improvements (mainly logs)
Vladimír Čunát [Mon, 7 Jan 2019 10:30:03 +0000 (11:30 +0100)]
trust anchors: improvements around DNSKEY refusal
- also refuse revoked DNSKEY (explicitly configured as TA)
- also downgrade missing the SEP bit to a warning
- explicit message when DNSKEY is refused, even without --verbose
- code rewrite, handle flags in a better way than "== 257"
Petr Špaček [Fri, 21 Dec 2018 12:10:24 +0000 (13:10 +0100)]
trust_anchors: improve error message about mixed owner names
Vladimír Čunát [Wed, 9 Jan 2019 15:36:25 +0000 (16:36 +0100)]
trust_anchors nitpicks: silence luacheck warnings
Petr Špaček [Fri, 21 Dec 2018 11:56:18 +0000 (12:56 +0100)]
trust_anchors: add .summary() and use it for logging
Previous logging was a bit confusing because it logged also intermediate
states during TA changes.
Petr Špaček [Fri, 21 Dec 2018 10:22:12 +0000 (11:22 +0100)]
trust_anchors: add parameter check to set_insecure
Petr Špaček [Fri, 21 Dec 2018 08:46:25 +0000 (09:46 +0100)]
trust_anchors: unify warning about 0 trust anchors
Vladimír Čunát [Wed, 9 Jan 2019 15:20:57 +0000 (15:20 +0000)]
Merge !749: modules/hints: plug a memory leak in .use_nodata()
Vladimír Čunát [Wed, 9 Jan 2019 13:53:14 +0000 (14:53 +0100)]
modules/hints: plug a memory leak in .use_nodata()
It was tiny, but still.
Vladimír Čunát [Wed, 9 Jan 2019 14:44:10 +0000 (14:44 +0000)]
Merge !748: TA bootstrap: support validUntil attribute
Closes #435.
Petr Špaček [Wed, 9 Jan 2019 14:19:30 +0000 (15:19 +0100)]
trust_anchors: move test web server to port 8080
This is an attempt to avoid conflicts when executing tests in parallel.
Petr Špaček [Mon, 7 Jan 2019 18:56:24 +0000 (19:56 +0100)]
trust_anchors: check syntax of public keys in DNSKEY RRs
Formerly keys with invalid public key data were accepted, leading to
negative keytag values in RFC 5011 metadata.
Petr Špaček [Thu, 3 Jan 2019 16:49:08 +0000 (17:49 +0100)]
trust_anchors: XML and certificate tests for bootstrap
At the moment tests are quite dumb and test only basic HTTPS certificate
validation and XML parsing/error detection.
We need to refactor code first to allow more detailed testing.
FIXME: webserv.lua is not terminated when tests are finished
Petr Špaček [Fri, 21 Dec 2018 15:28:27 +0000 (16:28 +0100)]
trust_anchors: respect timestamps in root-anchors.xml
We are not RFC 7958 compliant and support only XML with just root zone
TA. Full compliance would require either proper Lua XML parser or CMS parser
and both are hard to get packaged in Fedora and elsewhere.
Also timestamps related to TA validity are limited to UTC timezone
because cross-platform timezone parsing is hard.
(Mac OS libc does not have usable strptime(%z).)
Closes: #435
Petr Špaček [Wed, 2 Jan 2019 13:56:53 +0000 (14:56 +0100)]
utils: diff between two calendar times in strings
Petr Špaček [Wed, 2 Jan 2019 13:56:07 +0000 (14:56 +0100)]
gen-cdef: compatibility with GDB 8.2+
Petr Špaček [Tue, 8 Jan 2019 16:10:11 +0000 (16:10 +0000)]
Merge branch 'ci-stabilize-pytests' into 'master'
ci: stabilize pytests
Closes #427
See merge request knot/knot-resolver!744
Tomas Krizek [Tue, 8 Jan 2019 15:45:39 +0000 (16:45 +0100)]
pytest/test_tcp_pipelining: longer delay for first query
In our CI, this test ocassionally fails. This is most likely due to
delays in kernel processing due to many virtualization layers coupled
with massive paralelization of tests.
Closes #427
Tomas Krizek [Fri, 4 Jan 2019 15:14:30 +0000 (16:14 +0100)]
pytests/kresd: more resilient initial socket creation
Tomas Krizek [Fri, 4 Jan 2019 15:20:21 +0000 (16:20 +0100)]
pytests/conn_flood: attempt to make test more stable in CI
Tomas Krizek [Fri, 4 Jan 2019 14:43:57 +0000 (15:43 +0100)]
pytests/utils: give kresd more time to TCP FIN