]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Grigorii Demidov [Mon, 26 Dec 2016 17:26:53 +0000 (18:26 +0100)]
rrcache: NS glue processing has been fixed
Grigorii Demidov [Fri, 23 Dec 2016 08:28:29 +0000 (09:28 +0100)]
layer/iterate: use 'old' bechavior in STRICT mode when updating cut
Grigorii Demidov [Thu, 22 Dec 2016 19:47:04 +0000 (20:47 +0100)]
layer/iterate: authority section processing was fixed
Vladimír Čunát [Thu, 22 Dec 2016 09:50:25 +0000 (10:50 +0100)]
remove unused variables and a function (clang warnings)
Grigorii Demidov [Thu, 22 Dec 2016 08:13:14 +0000 (09:13 +0100)]
layer/rrcache: nitpick
Grigorii Demidov [Wed, 21 Dec 2016 09:19:38 +0000 (10:19 +0100)]
layer/iterate: authority processing fixed
Vladimír Čunát [Tue, 20 Dec 2016 10:26:13 +0000 (11:26 +0100)]
kr_*_print: don't include them in release builds
Grigorii Demidov [Wed, 14 Dec 2016 11:58:29 +0000 (12:58 +0100)]
layer/validate: refactoring
Ondřej Surý [Wed, 11 Jan 2017 10:46:55 +0000 (11:46 +0100)]
Merge branch 'tcp-leaks' into 'master'
TCP: free buffer when cancelling connection
Closes #76
See merge request !114
Vladimír Čunát [Tue, 10 Jan 2017 14:03:24 +0000 (15:03 +0100)]
iterate: answer NOTIMPL to meta-type queries
... at least until we implement (some of) them correctly.
Vladimír Čunát [Mon, 9 Jan 2017 16:19:23 +0000 (17:19 +0100)]
TCP: free buffer when cancelling connection
Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/76
Vladimír Čunát [Mon, 9 Jan 2017 16:26:23 +0000 (17:26 +0100)]
add comments around TCP buffering
Ondřej Surý [Fri, 6 Jan 2017 12:36:34 +0000 (13:36 +0100)]
Merge branch 'chaos' into 'master'
iterate: answer NOTIMPL to other classes than IN
See merge request !110
Ondřej Surý [Fri, 6 Jan 2017 10:24:14 +0000 (11:24 +0100)]
Merge branch 'generate-rsa-with-older-gnutls' into 'master'
Generate RSA certificates with GnuTLS < 3.5.0
See merge request !113
Ondřej Surý [Fri, 6 Jan 2017 10:23:18 +0000 (11:23 +0100)]
Generate RSA certificates with GnuTLS < 3.5.0
Ondřej Surý [Fri, 6 Jan 2017 10:01:42 +0000 (11:01 +0100)]
Merge branch 'ephemeral-tls-2' into 'master'
Create and use ephemeral TLS credentials if none are explicitly configured
See merge request !112
Ondřej Surý [Fri, 6 Jan 2017 09:55:24 +0000 (10:55 +0100)]
Kill if (0) { construct
Ondřej Surý [Fri, 6 Jan 2017 09:54:55 +0000 (10:54 +0100)]
Fix log level when printing ephemeral certificates
Daniel Kahn Gillmor [Sun, 13 Nov 2016 00:09:28 +0000 (09:09 +0900)]
Auto-regenerate ephemeral certificate on hostname change
Daniel Kahn Gillmor [Sat, 12 Nov 2016 23:27:48 +0000 (08:27 +0900)]
Auto-renew ephemeral X.509 certificate.
If the ephemeral X.509 certificate is due for renewal in less than a
week, regenerate it automatically.
Daniel Kahn Gillmor [Sat, 12 Nov 2016 23:09:25 +0000 (08:09 +0900)]
Use ephemeral X.509 credentials if none are configured
If kresd is configured to listen using TLS, but it has no credentials,
it should fall back to generating ephemeral credentials and using
them.
It stores the ephemerally-generated secret key in the same directory
as the cache, using the name "ephemeral_key.pem". If the cache
persists, then the key will too, even if the daemon dies. This means
that any set of daemons that share a cache will also share an
ephemeral secret key.
The ephemeral X.509 certificate that corresponds to the key will be
automatically generated (self-signed), will have a lifetime of about
90 days (matching Let's Encrypt policy). The ephemeral cert is
never written to disk; it is always dynamically-generated by kresd.
This should make it very easy to get DNS-over-TLS working in
opportunistic mode.
Daniel Kahn Gillmor [Sat, 12 Nov 2016 21:22:08 +0000 (06:22 +0900)]
Record expiration date of our certificate.
This can be useful for scheduling checks in the future, for logging
when we're using an expired cert, requesting a new cert, refreshing an
ephemeral cert, etc.
Vladimír Čunát [Tue, 3 Jan 2017 16:44:01 +0000 (17:44 +0100)]
Merge branch 'hints-empty-crash' into 'master'
hints: don't crash if no file got loaded
See merge request !111
Vladimír Čunát [Tue, 3 Jan 2017 16:24:40 +0000 (17:24 +0100)]
hints: don't crash if no file got loaded
https://forum.turris.cz/t/quick-way-to-crash-kresd-knot-resolver/2470
Vladimír Čunát [Tue, 3 Jan 2017 09:02:44 +0000 (10:02 +0100)]
iterate: answer NOTIMPL to other classes than IN
At least until we implement them properly.
Vladimír Čunát [Wed, 28 Dec 2016 09:55:06 +0000 (10:55 +0100)]
Merge !109: layer/iterate: glue processing has been fixed
There was (always) a bug in the "normal mode", which complicated
difficult cases like zive.cz in default setting.
Grigorii Demidov [Tue, 27 Dec 2016 09:44:08 +0000 (10:44 +0100)]
layer/iterate: glue processing has been fixed
Ondřej Surý [Mon, 26 Dec 2016 10:22:33 +0000 (11:22 +0100)]
Merge branch 'verbose-launch-scrit' into 'master'
Make the build verbose when launching test instance
See merge request !108
Ondřej Surý [Mon, 26 Dec 2016 10:22:06 +0000 (11:22 +0100)]
Make the build verbose when launching test instance
Ondřej Surý [Thu, 22 Dec 2016 12:16:10 +0000 (13:16 +0100)]
Merge branch 'test-script' into 'master'
Add script to launch separate testing instance
See merge request !107
Ondřej Surý [Thu, 22 Dec 2016 12:02:40 +0000 (13:02 +0100)]
Add script to launch separate testing instance
Vladimír Čunát [Thu, 22 Dec 2016 09:46:09 +0000 (10:46 +0100)]
Merge !106: uint: typedef globally but not more than once
Before C11, repeating a typedef is forbidden, if taken strictly, and
some compiler versions even reject it. On the other hand lru.h was
missing it, which wasn't noticed due to glibc's <sys/types.h> defining it.
Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/114.
Vladimír Čunát [Thu, 22 Dec 2016 09:23:20 +0000 (10:23 +0100)]
uint: typedef globally but not more than once
Before C11, repeating a typedef is forbidden, if taken strictly, and
some compiler versions even reject it. On the other hand lru.h was
missing it, which wasn't noticed due to glibc's <sys/types.h> defining it.
Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/114.
Vladimír Čunát [Thu, 22 Dec 2016 08:40:15 +0000 (09:40 +0100)]
Merge !105: modules/http: fix mixed up argument error in websocket code
The problem was missed in !102
d6f79261 . Submitted as:
https://github.com/CZ-NIC/knot-resolver/pull/38
Andreas Rammhold [Wed, 21 Dec 2016 15:16:58 +0000 (16:16 +0100)]
mdoules/http: fixed mixed up argument error in websocket code
lua-http decided to swap arguments some time ago:
https://github.com/daurnimator/lua-http/commit/
507396bb960b4f9d2b666ae7fd1ea441e9cccd2f
Vladimír Čunát [Mon, 19 Dec 2016 13:20:54 +0000 (14:20 +0100)]
Merge !100: allow generating most cdefs for lua
See mainly
06b0d3d4 ; the rest focuses on removing bashisms.
Vladimír Čunát [Mon, 19 Dec 2016 13:18:07 +0000 (14:18 +0100)]
Merge !103: add information about non-validating nature of FORWARD policy
Ondřej Surý [Mon, 19 Dec 2016 12:34:32 +0000 (13:34 +0100)]
Add information about non-validating nature of FORWARD policy
Vladimír Čunát [Mon, 19 Dec 2016 11:21:29 +0000 (12:21 +0100)]
Use printf instead of echo in scripts/gen-root-hints.sh to avoid echo with parameters.
Ondřej Surý [Mon, 19 Dec 2016 12:38:10 +0000 (13:38 +0100)]
Merge branch 'update-gitignore' into 'master'
Add tests/test_lru to .gitignore
See merge request !104
Ondřej Surý [Mon, 19 Dec 2016 12:37:41 +0000 (13:37 +0100)]
Add tests/test_lru to .gitignore
Vladimír Čunát [Mon, 19 Dec 2016 11:11:33 +0000 (12:11 +0100)]
gen-cdefs.sh: quote the output from gdb and read
Just in case.
Ondřej Surý [Mon, 19 Dec 2016 10:38:33 +0000 (11:38 +0100)]
Commit newly generated kres-gen.lua
Ondřej Surý [Mon, 19 Dec 2016 10:36:08 +0000 (11:36 +0100)]
Improve semicoma at the end of structs formatting
Ondřej Surý [Mon, 19 Dec 2016 10:26:43 +0000 (11:26 +0100)]
Various improvements how we use gdb and sed in gen-cdefs.sh (requires GNU sed)
Ondřej Surý [Mon, 19 Dec 2016 09:36:26 +0000 (10:36 +0100)]
Remove bashisms from script/gen-cdefs.sh
Vladimír Čunát [Thu, 15 Dec 2016 15:42:24 +0000 (16:42 +0100)]
allow generating most cdefs for lua
Motivation: maintaining these by hand in kres.lua is tricky, as just
inserting or reordering the structures can do anything and isn't
detected in general. For example, `rr_array_t::at` has always
"missed a star".
A couple libknot structure fields have apparently changed name since
the old definitions were written; in most cases I renamed them in *.lua.
The file daemon/lua/kres-gen.lua will be regenerated only if explicitly
deleted. That requires building with debug symbols and gdb on $PATH.
Ondřej Surý [Mon, 19 Dec 2016 09:10:26 +0000 (10:10 +0100)]
Merge branch 'remove-bashisms' into 'master'
Remove bashism in gen-root-hints.sh script
See merge request !101
Ondřej Surý [Mon, 19 Dec 2016 09:09:52 +0000 (10:09 +0100)]
Merge branch 'lua-http-0.1' into 'master'
Lua http 0.1
Update module/http to use lua-http 0.1
See merge request !102
Ondřej Surý [Mon, 19 Dec 2016 09:08:45 +0000 (10:08 +0100)]
Specify lua-http (>= 0.1) in documentations
daurnimator [Mon, 19 Dec 2016 04:51:05 +0000 (15:51 +1100)]
rename lua-http imports to start with 'http_'
daurnimator [Mon, 19 Dec 2016 04:49:08 +0000 (15:49 +1100)]
Actually close http servers on deinit
daurnimator [Mon, 19 Dec 2016 04:44:16 +0000 (15:44 +1100)]
Use coroutine friendly pcall
daurnimator [Mon, 19 Dec 2016 04:43:51 +0000 (15:43 +1100)]
Update to be compatible with lua-http 0.1 release
daurnimator [Mon, 19 Dec 2016 04:34:38 +0000 (15:34 +1100)]
Use newer lua-http derived ephemeralcert generation
Ondřej Surý [Mon, 19 Dec 2016 08:24:09 +0000 (09:24 +0100)]
Remove bashism in gen-root-hints.sh script
Vladimír Čunát [Wed, 14 Dec 2016 13:48:33 +0000 (14:48 +0100)]
Merge !97: use SOVERSION when compiling to unfail the tests
Vladimír Čunát [Wed, 14 Dec 2016 13:47:14 +0000 (14:47 +0100)]
platform.mk: nitpick comment
Vladimír Čunát [Wed, 14 Dec 2016 13:26:23 +0000 (14:26 +0100)]
Merge !99: lru_create: cast on a better place
... fixing a warning. The addresses are the same,
but it wasn't completely correct.
Vladimír Čunát [Wed, 14 Dec 2016 13:20:07 +0000 (14:20 +0100)]
lru_create: cast on a better place
... fixing a warning. The addresses are the same,
but it wasn't completely correct.
Ondřej Surý [Wed, 14 Dec 2016 12:44:50 +0000 (13:44 +0100)]
Merge branch '1.2.0-dev' into 'master'
Move the version to 1.2.0-dev
Just marking this as 1.2.0-dev
See merge request !98
Ondřej Surý [Wed, 14 Dec 2016 12:43:06 +0000 (13:43 +0100)]
Move the version to 1.2.0-dev
Ondřej Surý [Mon, 12 Dec 2016 15:25:53 +0000 (16:25 +0100)]
Use SOVERSION when compiling to unfail the tests
Grigorii Demidov [Wed, 14 Dec 2016 08:56:23 +0000 (09:56 +0100)]
Merge branch 'rrcache-fix' into 'master'
layer/rrcache: ds cache rank was fixed
See merge request !95
Grigorii Demidov [Wed, 14 Dec 2016 08:50:17 +0000 (09:50 +0100)]
layer/rrcache: ds cache rank was fixed
Ondřej Surý [Tue, 13 Dec 2016 12:51:38 +0000 (13:51 +0100)]
Merge branch 'news' into 'master'
news: mention the most important stuff since 1.1.1
In future I hope we'll be adding these items at once with the features.
See merge request !94
Vladimír Čunát [Tue, 13 Dec 2016 12:21:39 +0000 (13:21 +0100)]
news: mention the most important stuff since 1.1.1
In future I hope we'll be adding these items at once with the features.
Vladimír Čunát [Tue, 13 Dec 2016 12:02:26 +0000 (13:02 +0100)]
Merge !88: support +cd
Vladimír Čunát [Tue, 13 Dec 2016 12:00:13 +0000 (13:00 +0100)]
nitpicks in comments
Vladimír Čunát [Mon, 12 Dec 2016 11:59:11 +0000 (12:59 +0100)]
Merge !93: fixup the previous merge
Vladimír Čunát [Mon, 12 Dec 2016 11:57:37 +0000 (12:57 +0100)]
fixup the previous merge
Vladimír Čunát [Mon, 12 Dec 2016 11:48:18 +0000 (12:48 +0100)]
Merge branch 'master' into cd_processing
and fixup with DEBUG -> VERBOSE renames.
Vladimír Čunát [Mon, 12 Dec 2016 11:44:10 +0000 (12:44 +0100)]
Merge !92: Change NDEBUG to verbose logging
As requested in !90, I have renamed all *_debug_* and *DEBUG* to verbose
(where it made sense), and renamed NLOGDEBUG to NOVERBOSELOG.
The logic is simple - most usually we want to have verbose logging
compiled in and `assert()` not compiled in (`-DNDEBUG`).
Vladimír Čunát [Mon, 12 Dec 2016 10:50:36 +0000 (11:50 +0100)]
rename: kr_verbose_do_log -> kr_verbose_status
Now that we renamed "debug" to "verbose", the old name didn't seem very
suitable anymore; this new identifier haven't got to master yet.
Ondřej Surý [Mon, 12 Dec 2016 10:17:52 +0000 (11:17 +0100)]
Split NDEBUG to NDEBUG (asserts) and NOVERBOSELOG (verbose logging); rename all related symbols to use VERBOSE instead of DEBUG
Vladimír Čunát [Fri, 9 Dec 2016 17:15:42 +0000 (18:15 +0100)]
Merge !91: layer/validate: additional processing for cached insecure data
Grigorii Demidov [Fri, 9 Dec 2016 13:17:58 +0000 (14:17 +0100)]
layer/iterate: cname chain processing with +cd was fixed
Grigorii Demidov [Thu, 8 Dec 2016 17:19:09 +0000 (18:19 +0100)]
layer/validate: additional processing for cached insecure data
Vladimír Čunát [Wed, 7 Dec 2016 12:53:43 +0000 (13:53 +0100)]
--verbose: warn when having no effect
... but don't raise any kind of error.
The lua function `verbose()` behaved reasonably already.
It doesn't warn, but docs for the function do mention `NLOGDEBUG`.
Vladimír Čunát [Wed, 7 Dec 2016 12:12:43 +0000 (13:12 +0100)]
build docs: mention -DNDEBUG, to be sure
Vladimír Čunát [Wed, 7 Dec 2016 12:05:29 +0000 (13:05 +0100)]
--verbose: make it more efficient when not --verbose
In particular, don't require to call an externally defined function to
find if in --verbose mode or not. Now it's just an extern bool.
I'm confident the performance impact of not using -DNLOGDEBUG should be
negligible now.
This comes with a small incompatible API+ABI change, but that shouldn't
matter as we've had a couple of those already since the last release.
Ondřej Surý [Wed, 7 Dec 2016 09:56:56 +0000 (10:56 +0100)]
Rename NDEBUG to NLOGDEBUG to allow disabling assert()s while keeping logging enabled
Grigorii Demidov [Mon, 5 Dec 2016 12:02:13 +0000 (13:02 +0100)]
validate: support +cd
Vladimír Čunát [Mon, 5 Dec 2016 10:35:31 +0000 (11:35 +0100)]
Merge !83: Revert "lua: embed bytecode instead of stripped source"
This reverts commit
64f80706fbe428e4a93ac92f22cf6f5905a1e977 .
TL;DR: it brought almost no benefits AFAIK and potential for problems.
Vladimír Čunát [Mon, 5 Dec 2016 10:34:20 +0000 (11:34 +0100)]
Merge !82: hints: allow removing hints and listing all of them
See commits for details.
Grigorii Demidov [Mon, 5 Dec 2016 10:16:13 +0000 (11:16 +0100)]
Merge branch 'fix-pktcache' into 'master'
layer/pktcache: additional checking for cache entry rank was added
See merge request !86
Grigorii Demidov [Mon, 5 Dec 2016 08:30:49 +0000 (09:30 +0100)]
layer/pktcache: additional checking for cache entry rank was added
Vladimír Čunát [Fri, 2 Dec 2016 11:41:03 +0000 (12:41 +0100)]
Merge !84: lua: add missing declaration for kr_rplan_pop
Vladimír Čunát [Fri, 2 Dec 2016 11:38:57 +0000 (12:38 +0100)]
lua: add missing declaration for kr_rplan_pop
Fixes https://github.com/CZ-NIC/knot-resolver/issues/35.
Vladimír Čunát [Wed, 30 Nov 2016 09:59:52 +0000 (10:59 +0100)]
Revert "lua: embed bytecode instead of stripped source"
This reverts commit
64f80706fbe428e4a93ac92f22cf6f5905a1e977 .
TL;DR: it brought almost no benefits AFAIK and potential for problems.
The "portable bytecode" produced by luajit isn't compatible when
(lib)luajit version changes or when some build-time configuration of it
changes. If you mix these up, kresd fails to start.
Vladimír Čunát [Tue, 29 Nov 2016 15:43:58 +0000 (16:43 +0100)]
hints: allow hints.get() to list all hints
Vladimír Čunát [Tue, 29 Nov 2016 14:07:48 +0000 (15:07 +0100)]
hints: allow removing hints
Fixes #111.
Compatibility: it needs a new libkres.so function. If a wrong version
combination is attempted, the module just cleanly fails to load, though
it writes a slightly confusing message "no such file or directory".
Vladimír Čunát [Tue, 29 Nov 2016 11:50:12 +0000 (12:50 +0100)]
Merge !81: travis: fix pip bootstrap
Vladimír Čunát [Tue, 29 Nov 2016 11:01:23 +0000 (12:01 +0100)]
travis: try to fix pip bootstrap
Vladimír Čunát [Tue, 29 Nov 2016 10:35:22 +0000 (11:35 +0100)]
Merge !76: add EDNS(0) padding support
RFC7830 padding support on client->resolver DNSoverTLS communication.
Adds new `net.tls_padding([padding])` option that will cause the answers
to be aligned at *padding* boundaries.
Vladimír Čunát [Mon, 28 Nov 2016 17:22:06 +0000 (18:22 +0100)]
EDNS(0) padding: fixup nitpicks and minor issues
Vladimír Čunát [Fri, 25 Nov 2016 16:15:58 +0000 (17:15 +0100)]
Merge !71: layer/validate: additional processing for chained DS queries
Vladimír Čunát [Thu, 24 Nov 2016 10:31:53 +0000 (11:31 +0100)]
Merge !80: lua cache.count(): return nil on error
... and avoid returning a negative number.
Vladimír Čunát [Thu, 24 Nov 2016 10:28:00 +0000 (11:28 +0100)]
lua cache.count(): return nil on error
... and avoid returning a negative number.
Vladimír Čunát [Thu, 24 Nov 2016 08:56:16 +0000 (09:56 +0100)]
Merge !77: lua: embed bytecode instead of stripped source
It seems a bit cleaner, though impact on size and load speed should not
be noticeable. We simply install most of the lua code, as before, and I
assume that we *do* want to keep that visibility, at least by default.
Suggested on !57.