]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vladimír Čunát [Mon, 29 Jan 2018 07:38:33 +0000 (08:38 +0100)]
fix two nitpicks from clang-scan
- utils.c: overflowing size_t is basically impossible, but well...
- stats.c: NULL would probably not cause a problem with zero length passed
Vladimír Čunát [Mon, 29 Jan 2018 07:26:34 +0000 (08:26 +0100)]
Merge !454: daemon/worker: fix regression from
e7c5c102d0eb8
Grigorii Demidov [Mon, 22 Jan 2018 12:42:29 +0000 (13:42 +0100)]
daemon/worker: cleanup errors; missed packet source
Petr Špaček [Thu, 25 Jan 2018 16:43:51 +0000 (17:43 +0100)]
Merge branch 'policy_polish' into 'master'
policy: polish policy module up
See merge request knot/knot-resolver!462
Petr Špaček [Thu, 25 Jan 2018 12:53:17 +0000 (13:53 +0100)]
CI: test doc build
Petr Špaček [Thu, 25 Jan 2018 13:12:13 +0000 (14:12 +0100)]
doc: fix Sphinx warnings
Petr Špaček [Thu, 25 Jan 2018 12:50:22 +0000 (13:50 +0100)]
policy: polish policy module documentation
Petr Špaček [Thu, 25 Jan 2018 11:46:53 +0000 (12:46 +0100)]
policy: fix generated SOA RR so it can be cached
RFC 6303 section 3 explains that
The SOA RR is needed to support negative caching [RFC2308] of name
error responses and to point clients to the primary master for DNS
dynamic updates.
Now SOA RR owner name matches query name so it can be cached.
Using zone name as owner would be more difficult so it is left for
further optimizations.
I've verified that nsupdate correctly determines that master name
does not exist and stops update process.
Petr Špaček [Thu, 25 Jan 2018 11:26:50 +0000 (12:26 +0100)]
policy: add explanatory TXT record to zones blocked by default
Petr Špaček [Thu, 25 Jan 2018 09:14:28 +0000 (10:14 +0100)]
policy: refactor policy and view modules
I've removed couple layers of indirection to make it easier to follow.
This should make it easier to extend the policy module.
Petr Špaček [Thu, 25 Jan 2018 15:45:45 +0000 (16:45 +0100)]
Merge branch 'respdiff-debug' into 'master'
CI: store respdiff database for debuging purposes
See merge request knot/knot-resolver!443
Petr Špaček [Mon, 15 Jan 2018 11:46:14 +0000 (12:46 +0100)]
CI: store respdiff database for debuging purposes
Petr Špaček [Thu, 25 Jan 2018 14:38:15 +0000 (15:38 +0100)]
Merge branch 'dockerfile' into 'master'
Dockefile: fix TLS server in demo container
See merge request knot/knot-resolver!463
Petr Špaček [Thu, 25 Jan 2018 14:29:25 +0000 (15:29 +0100)]
Dockefile: fix TLS server in demo container
Related: #297
Petr Špaček [Wed, 24 Jan 2018 16:18:52 +0000 (17:18 +0100)]
Merge branch 'dockerfile' into 'master'
Docker: fix Dockerfile for demo container
Closes #297
See merge request knot/knot-resolver!461
Petr Špaček [Wed, 24 Jan 2018 16:09:07 +0000 (17:09 +0100)]
Docker: fix Dockerfile for demo container
libstdc++ was missing in the Alpine image.
At the same time, I've enabled DNSSEC validation, DNS-over-TLS, HTTP interface
and added explanatory message.
Vladimír Čunát [Wed, 24 Jan 2018 11:03:16 +0000 (12:03 +0100)]
Merge !439: Use common convention for paths and user name
Tomas Krizek [Fri, 12 Jan 2018 09:29:53 +0000 (10:29 +0100)]
use common convention for configuration path and user name
Vladimír Čunát [Tue, 23 Jan 2018 18:47:16 +0000 (19:47 +0100)]
Merge !405: Support for tracing query execution logs
Vladimír Čunát [Tue, 23 Jan 2018 18:29:43 +0000 (19:29 +0100)]
http module: rename after
2702e0416994
Vladimír Čunát [Tue, 23 Jan 2018 18:07:35 +0000 (19:07 +0100)]
nitpicks from review of !405: query-trace
The deckard change was probably unintentional, so I reverted that.
The only real mistake I found was `sizeof(128)`, though the effect was
just unnecessary reallocations.
On the whole I really like it. Verbose logging might get slightly
slower, due to increased amount of string allocation and copying,
but it does seem worth it, at least until we can prove otherwise.
I didn't look much into http module changes, etc.
Vladimír Čunát [Tue, 23 Jan 2018 18:36:49 +0000 (19:36 +0100)]
Merge branch 'master'
Tomas Krizek [Tue, 23 Jan 2018 18:32:44 +0000 (19:32 +0100)]
Merge branch 'fix-sphinx-rtd-theme' into 'master'
doc: fix generating sphinx doc using older packages
See merge request knot/knot-resolver!460
Tomas Krizek [Tue, 23 Jan 2018 14:57:51 +0000 (15:57 +0100)]
doc: fix generating sphinx doc using older packages
Vladimír Čunát [Tue, 23 Jan 2018 15:42:50 +0000 (16:42 +0100)]
Merge !459: 1.5.3 fixes + nitpicks
Vladimír Čunát [Tue, 23 Jan 2018 15:34:55 +0000 (16:34 +0100)]
CI: ignore the clang -rdynamic problems, for now
Vladimír Čunát [Tue, 23 Jan 2018 14:55:52 +0000 (15:55 +0100)]
nitpicks
Vladimír Čunát [Tue, 23 Jan 2018 15:05:17 +0000 (16:05 +0100)]
Merge tag 'v1.5.3'
Petr Špaček [Tue, 23 Jan 2018 15:03:39 +0000 (16:03 +0100)]
Merge branch 'keyfile-arg' into 'master'
Split CLI for managed and unmanaged trust anchor modes
Closes #145 and #168
See merge request knot/knot-resolver!358
Petr Špaček [Tue, 23 Jan 2018 14:20:01 +0000 (15:20 +0100)]
docs: update link to IANA web with DNSSEC root TA
Petr Špaček [Tue, 23 Jan 2018 12:27:00 +0000 (13:27 +0100)]
TA bootstrap: print obtained values
Vítězslav Kříž [Mon, 11 Dec 2017 14:11:46 +0000 (15:11 +0100)]
config-test: refactor config test framework, add keyfile tests
Config tests now have ability to run daemon with different arguments and
to check exit code.
Vítězslav Kříž [Tue, 24 Oct 2017 12:25:10 +0000 (14:25 +0200)]
daemon: remove globals, split main into functions
Vítězslav Kříž [Tue, 17 Oct 2017 12:03:57 +0000 (14:03 +0200)]
keyfile: added tests
Vitezslav Kriz [Mon, 14 Aug 2017 07:25:42 +0000 (09:25 +0200)]
keyfile argument distiguish managed and unmanaged mode
Arguments --keyfile, -k for managed mode
and
--keyfile-ro, -K for unmanaged (readonly) mode.
Automatic setting based on the file permission is removed because it was
confusing and could easily lead to state where automatic update does not
happen because of unexpected file permissions.
Check if folder is writeable was moved into Lua code.
Default unmanaged keyfile path can be specified at compile
time with option KEYFILE_DEFAULT. This default
configuration can be disabled in configuration file with
trust_anchors.keyfile_default = nil.
Vladimír Čunát [Tue, 23 Jan 2018 13:16:23 +0000 (14:16 +0100)]
release 1.5.3
Vladimír Čunát [Tue, 23 Jan 2018 13:34:42 +0000 (14:34 +0100)]
test_cache: disable test_materialize
I'm not sure why the preceding commits broke it.
Vladimír Čunát [Tue, 23 Jan 2018 12:55:45 +0000 (13:55 +0100)]
make: fix Fedora problems with symbols
Vladimír Čunát [Tue, 23 Jan 2018 12:51:04 +0000 (13:51 +0100)]
make: CFLAGS cleanup
Readability, and don't -I embedded lmdb if not using it.
Vladimír Čunát [Tue, 23 Jan 2018 12:36:17 +0000 (13:36 +0100)]
make: use -fvisibility=hidden by default
Symbols not marked by KR_EXPORT shouldn't be visible outside
the same output binary (e.g. sbin/kresd or lib/kdns_modules/hints.so)
Also mark `engine_hint_root_file`.
Petr Špaček [Tue, 23 Jan 2018 08:53:30 +0000 (09:53 +0100)]
Merge branch 'draft-huston-kskroll-sentinel' into 'master'
Implement draft-ietf-dnsop-kskroll-sentinel-00
Closes #266
See merge request knot/knot-resolver!382
Petr Špaček [Mon, 22 Jan 2018 15:03:57 +0000 (16:03 +0100)]
Implement draft-ietf-dnsop-kskroll-sentinel-00
It is enabled by default.
Petr Špaček [Mon, 22 Jan 2018 14:50:16 +0000 (15:50 +0100)]
Add Lua interface for kr_pkt_clear_payload().
Petr Špaček [Tue, 23 Jan 2018 08:44:16 +0000 (09:44 +0100)]
Merge branch 'policy_default' into 'master'
policy: load policy module by default
See merge request knot/knot-resolver!457
Petr Špaček [Mon, 22 Jan 2018 20:31:34 +0000 (21:31 +0100)]
policy: load policy module by default
RFC 6761 mandates functionality implemented by policy module, so it is
now loaded by default. Users with special needs can still unload the
module.
Vladimír Čunát [Mon, 22 Jan 2018 15:17:41 +0000 (16:17 +0100)]
Merge !456: lib: make map_contains recongize null value
Vladimír Čunát [Mon, 22 Jan 2018 14:58:24 +0000 (15:58 +0100)]
lib map: comment around the change in parent commit
anb [Fri, 12 Jan 2018 19:08:57 +0000 (19:08 +0000)]
lib: make map_contains recongize null value
Without changing the interface, map_contains is able to tell whether
the item exist in map or not.
Vladimír Čunát [Mon, 22 Jan 2018 13:39:06 +0000 (14:39 +0100)]
Merge !455: Fixup Dockerfile and NEWS
Vladimír Čunát [Mon, 22 Jan 2018 13:30:43 +0000 (14:30 +0100)]
NEWS: fix typo in year
Vladimír Čunát [Mon, 22 Jan 2018 13:29:03 +0000 (14:29 +0100)]
Dockerfile: fixup build after libknot update
Vladimír Čunát [Mon, 22 Jan 2018 12:42:01 +0000 (13:42 +0100)]
Merge !453: merge tag 'v1.5.2', bringing security fixes
Vladimír Čunát [Mon, 22 Jan 2018 12:30:29 +0000 (13:30 +0100)]
Merge tag 'v1.5.2', bringing security fixes
Vladimír Čunát [Mon, 22 Jan 2018 10:45:44 +0000 (11:45 +0100)]
security release 1.5.2
Vladimír Čunát [Mon, 15 Jan 2018 17:08:47 +0000 (18:08 +0100)]
validator nitpick: remove a useless dead store
Discovered by clang scan.
Vladimír Čunát [Fri, 5 Jan 2018 09:15:43 +0000 (10:15 +0100)]
validator: fix NSEC* + delegation -> NXDOMAIN
Vladimír Čunát [Fri, 12 Jan 2018 15:15:08 +0000 (16:15 +0100)]
validator: fix NSEC* -> NODATA
Petr Špaček [Mon, 22 Jan 2018 09:25:46 +0000 (10:25 +0100)]
Merge branch 'misc-fix' into 'master'
daemon/worker: worker_process_tcp: cleanup
See merge request knot/knot-resolver!452
Grigorii Demidov [Mon, 22 Jan 2018 09:16:42 +0000 (10:16 +0100)]
daemon/worker: worker_process_tcp: cleanup; there are no need in special processing for qr_task_step return code
Petr Špaček [Fri, 19 Jan 2018 10:07:50 +0000 (11:07 +0100)]
Merge branch 'cdn-mozilla' into 'master'
layer/iterate: forwarding; repeat query to upstream if SERVFAIL\REFUSE has been received
See merge request knot/knot-resolver!451
Grigorii Demidov [Wed, 17 Jan 2018 12:50:23 +0000 (13:50 +0100)]
layer/iterate: forwarding; repeat query to upstream if SERVFAIL\REFUSE has been received
Petr Špaček [Fri, 19 Jan 2018 09:18:44 +0000 (10:18 +0100)]
Merge branch 'dockerfile-add-flake8' into 'master'
ci: add flake8 to Dockerfile
See merge request knot/knot-resolver!449
Tomas Krizek [Thu, 18 Jan 2018 16:16:58 +0000 (17:16 +0100)]
ci: docker - add flake8, remove infer
We do not use Infer after all (see MR !435) so it does not make sense to
have it in the image.
Petr Špaček [Fri, 19 Jan 2018 09:03:48 +0000 (10:03 +0100)]
Merge branch 'assert-cleanup' into 'master'
daemon/worker: clean up some unnecessary asserts
See merge request knot/knot-resolver!450
Grigorii Demidov [Fri, 19 Jan 2018 08:26:00 +0000 (09:26 +0100)]
daemon/worker: clean up some unnecessary asserts
Petr Špaček [Thu, 18 Jan 2018 15:40:12 +0000 (16:40 +0100)]
Merge branch 'tls_polish' into 'master'
TLS polish
See merge request knot/knot-resolver!447
Petr Špaček [Thu, 18 Jan 2018 15:22:56 +0000 (16:22 +0100)]
TLS: make GnuTLS priorities compatible with CentOS 7 and Debian 9
gnutls-3.3.26-9.el7.x86_64 and libgnutls30-3.5.8-5+deb9u3 do not support
@SYSTEM keyword and CentOS 7 has problem with -VERS-DTLS-ALL.
We do not configure DTLS sockets so it should be harmless to delete
the DTLS keyword.
@SYSTEM is replaced by NORMAL, oh well.
fixup! TLS client: enforce minimal TLS version and no compression
Petr Špaček [Thu, 18 Jan 2018 14:47:15 +0000 (15:47 +0100)]
TLS client: enforce minimal TLS version and no compression
Same change as in
a625a0ea1ce03b0707fd421633f21c0aacb786da but for
client.
Petr Špaček [Thu, 18 Jan 2018 13:12:45 +0000 (14:12 +0100)]
TLS server: enforce minimal TLS version and no compression
Server side now enforces security requirements from
draft-ietf-dprive-dtls-and-tls-profiles-11 section 9
Petr Špaček [Thu, 18 Jan 2018 13:11:26 +0000 (14:11 +0100)]
TLS: use constants for GnuTLS return codes
GnuTLS manual for some functions do not declare that error return code
must be negative, so we should use constants to avoid potential
problems.
Petr Špaček [Thu, 18 Jan 2018 13:11:16 +0000 (14:11 +0100)]
TLS client: fix certificate loading from file
gnutls_certificate_set_x509_trust_file could theoretically return 0
to indicate nothing was read, so we need to check for this as well.
Vladimír Čunát [Thu, 18 Jan 2018 15:24:13 +0000 (16:24 +0100)]
Merge !448: daemon: tls forwarding; fix IO error processing
Grigorii Demidov [Thu, 18 Jan 2018 14:37:30 +0000 (15:37 +0100)]
daemon: tls forwarding; fix erroneus task processing when io errors occur
Tomas Krizek [Thu, 18 Jan 2018 14:08:29 +0000 (15:08 +0100)]
Merge branch 'tmpfiles-create-cache' into 'master'
tmpfiles: create cache and use proper tmpfiles name
See merge request knot/knot-resolver!440
Tomas Krizek [Fri, 12 Jan 2018 09:32:42 +0000 (10:32 +0100)]
tmpfiles: create cache and use proper tmpfiles name
Petr Špaček [Thu, 18 Jan 2018 12:48:06 +0000 (13:48 +0100)]
Merge branch 'tls_tests' into 'master'
policy TLS_FORWARD: add checks and documentation
See merge request knot/knot-resolver!445
Petr Špaček [Thu, 18 Jan 2018 12:39:24 +0000 (13:39 +0100)]
policy TLS_FORWARDING: rename pin to pin_sha256
The pin parameter contains SHA-256 encoded using Base64, but this is not
the only option. Explicit name allows us to add alternative formats
later on, and is consistent with GnuTLS naming.
Tomas Krizek [Thu, 18 Jan 2018 11:19:55 +0000 (12:19 +0100)]
policy TLS_FORWARD: documentation improvements
Petr Špaček [Wed, 17 Jan 2018 18:08:53 +0000 (19:08 +0100)]
policy TLS_FORWARD: add documentation
Petr Špaček [Wed, 17 Jan 2018 13:58:57 +0000 (14:58 +0100)]
policy TLS_FORWARD: unify logging format
Petr Špaček [Wed, 17 Jan 2018 13:37:16 +0000 (14:37 +0100)]
policy TLS_FORWARD: fix error reporting from net.tls_client()
Petr Špaček [Fri, 12 Jan 2018 15:57:03 +0000 (16:57 +0100)]
policy TLS_FORWARD: check parameters from user
Policy handling was split into smaller functions to allow easier
checking. The code needs further refactoring, it seems that
net_tls_client is just a thin wrapper around tls_client_params_set in C,
which is unnecessary and error prone.
Petr Špaček [Fri, 12 Jan 2018 13:59:59 +0000 (14:59 +0100)]
policy TLS_FORWARD: improve error reporting for invalid parameters
Petr Špaček [Fri, 12 Jan 2018 13:37:51 +0000 (14:37 +0100)]
tests: add config tests for TLS_FORWARD
Apparently some corner cases are not handled properly.
We need to fix these in follow-up patches.
Petr Špaček [Thu, 18 Jan 2018 11:28:27 +0000 (12:28 +0100)]
Merge branch 'cleanup-errors' into 'master'
fix some errors found by static analyzer
See merge request knot/knot-resolver!446
Petr Špaček [Thu, 18 Jan 2018 09:43:54 +0000 (10:43 +0100)]
CI: tweak scan-build configuration
Clang right now does not support cleanup attribute which is causing
false positives, so the check is now disabled.
https://bugs.llvm.org/show_bug.cgi?id=3888
At the same time I've enabled all other checkers to see what happens. We
need to go though them and disable them one-by-one if necessary.
Marek Vavruša [Thu, 18 Jan 2018 00:55:52 +0000 (16:55 -0800)]
daemon/main: refactored keyfile initialization from main()
this helps avoid false positive leaks caused by combination of
cleanup functions and goto
refs #291
Marek Vavruša [Thu, 18 Jan 2018 00:57:49 +0000 (16:57 -0800)]
lib/dnssec: variable declaration close to intended to avoid dead stores
Marek Vavruša [Thu, 18 Jan 2018 00:57:00 +0000 (16:57 -0800)]
daemon/worker: fixed missing return value check
Marek Vavruša [Thu, 18 Jan 2018 00:54:55 +0000 (16:54 -0800)]
daemon/engine: fixed missing ret
Marek Vavruša [Thu, 18 Jan 2018 00:39:37 +0000 (16:39 -0800)]
daemon: fixed potential leak - cleanup not being called on longjmp
attribute cleanup (auto_free) gets called when variable goes out of
scope, not on longjmp (in lua_error), so the variable never gets freed
Petr Špaček [Wed, 17 Jan 2018 16:08:49 +0000 (17:08 +0100)]
Merge branch 'dockerfile-add-static-analysis-tools' into 'master'
Dockerfile: add static analysis tools
See merge request knot/knot-resolver!444
Tomas Krizek [Tue, 16 Jan 2018 16:25:51 +0000 (17:25 +0100)]
Dockerfile: add static analysis tools
Petr Špaček [Fri, 12 Jan 2018 13:36:04 +0000 (14:36 +0100)]
Merge branch 'tls-hs-timeout' into 'master'
daemon: TLS-handshake timeout timer was not properly activated; fix
See merge request knot/knot-resolver!441
Grigorii Demidov [Fri, 12 Jan 2018 12:54:37 +0000 (13:54 +0100)]
daemon: TLS-handshake timeout timer was not properly activated; fix
Petr Špaček [Fri, 12 Jan 2018 10:24:22 +0000 (11:24 +0100)]
Merge branch 'stricter-ci-build' into 'master'
ci: add -Werror to CFLAGS, added clang build target
See merge request knot/knot-resolver!432
Marek Vavruša [Fri, 12 Jan 2018 07:11:08 +0000 (23:11 -0800)]
lint: enabled several readability linters and fixed issues
this checks things such as inconsistent declarations and definitions
Marek Vavruša [Fri, 12 Jan 2018 06:37:20 +0000 (22:37 -0800)]
daemon: fixed garbage read when getsockname fails
Marek Vavruša [Fri, 12 Jan 2018 06:29:24 +0000 (22:29 -0800)]
lib: fixed possible null pointers passed to nonnull arguments
Marek Vavruša [Fri, 12 Jan 2018 06:15:16 +0000 (22:15 -0800)]
daemon: fixed minor linter problems