]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vladimír Čunát [Mon, 2 Jul 2018 12:40:58 +0000 (14:40 +0200)]
TTL changes: moved in libknot from rdata to rrset
To work on RRSIG TTLs, libknot >= 2.7.1 is needed.
Vladimír Čunát [Mon, 2 Jul 2018 12:13:19 +0000 (14:13 +0200)]
lib/utils: naive refactoring of kr_dname_lf()
It's not optimal; we can improve performance later.
Vladimír Čunát [Mon, 2 Jul 2018 12:05:07 +0000 (14:05 +0200)]
simple include fixes
- <dnssec/**> -> <libdnssec/**>
- <zscanner/**> -> <libzscanner/**>
Tomas Krizek [Mon, 6 Aug 2018 12:04:15 +0000 (14:04 +0200)]
ci: use Knot DNS 2.7 for rpm builds
Tomas Krizek [Fri, 27 Jul 2018 11:44:43 +0000 (13:44 +0200)]
ci: use knot-2.7 docker containers
Petr Špaček [Tue, 14 Aug 2018 06:16:12 +0000 (06:16 +0000)]
Merge branch 'nitpicks' into 'master'
nitpicks
See merge request knot/knot-resolver!649
Vladimír Čunát [Mon, 13 Aug 2018 16:10:19 +0000 (18:10 +0200)]
README: note the docker image purpose
Vladimír Čunát [Mon, 13 Aug 2018 16:08:24 +0000 (18:08 +0200)]
lib/resolve: fix a typo in verbose message
Tomas Krizek [Mon, 13 Aug 2018 11:59:31 +0000 (11:59 +0000)]
Merge branch 'packaging-use-upstream-files' into 'master'
packaging - use upstream files
See merge request knot/knot-resolver!648
Tomas Krizek [Fri, 10 Aug 2018 14:35:30 +0000 (16:35 +0200)]
scripts: improve packaging scripts
Tomas Krizek [Fri, 10 Aug 2018 14:11:02 +0000 (16:11 +0200)]
.gitlabci: use updated fedora image
Tomas Krizek [Fri, 10 Aug 2018 13:04:53 +0000 (15:04 +0200)]
distro/tests: add testing repo
Tomas Krizek [Fri, 10 Aug 2018 12:11:55 +0000 (14:11 +0200)]
distro/deb: simplify deb sources hierarchy
Tomas Krizek [Fri, 10 Aug 2018 12:00:46 +0000 (14:00 +0200)]
scripts: add generation of the .dsc file for Debian packaging
Tomas Krizek [Fri, 10 Aug 2018 11:50:51 +0000 (13:50 +0200)]
distro/common: kresd.conf - ensure hints loads before iterate
Tomas Krizek [Fri, 10 Aug 2018 11:50:28 +0000 (13:50 +0200)]
distro/rpm: use upstream packaging files
Tomas Krizek [Fri, 10 Aug 2018 11:48:15 +0000 (13:48 +0200)]
distro/arch: use upstream packaging files
Tomas Krizek [Tue, 7 Aug 2018 16:52:12 +0000 (16:52 +0000)]
Merge branch 'ci-docker-curl' into 'master'
ci: add curl to debian-stable, skip respdiff
See merge request knot/knot-resolver!647
Tomas Krizek [Tue, 7 Aug 2018 16:43:52 +0000 (18:43 +0200)]
ci: run respdiff only on code changes
Tomas Krizek [Tue, 7 Aug 2018 16:13:14 +0000 (18:13 +0200)]
ci: add curl to debian-stable
Petr Špaček [Tue, 7 Aug 2018 16:24:36 +0000 (16:24 +0000)]
Merge branch 'ci_nightly' into 'master'
fixup! fixup! ci: do not re-run tests on master, use nightly instead
See merge request knot/knot-resolver!646
Petr Špaček [Tue, 7 Aug 2018 16:19:25 +0000 (18:19 +0200)]
fixup! fixup! ci: do not re-run tests on master, use nightly instead
Oh well, this is nightmare to debug.
Petr Špaček [Tue, 7 Aug 2018 16:03:33 +0000 (16:03 +0000)]
Merge branch 'ci_nightly' into 'master'
fixup! ci: do not re-run tests on master, use nightly instead
See merge request knot/knot-resolver!645
Petr Špaček [Tue, 7 Aug 2018 16:02:13 +0000 (18:02 +0200)]
fixup! ci: do not re-run tests on master, use nightly instead
Petr Špaček [Tue, 7 Aug 2018 15:53:49 +0000 (15:53 +0000)]
Merge branch 'ci_nightly' into 'master'
ci: do not re-run tests on master, use nightly instead
See merge request knot/knot-resolver!644
Petr Špaček [Tue, 7 Aug 2018 15:49:16 +0000 (17:49 +0200)]
ci: do not re-run tests on master, use nightly instead
All tests are executed before merge and we allow only fast-forward
merges so it is pointless to re-run them again on merge commit.
Code coverage and OBS will be done on auto-synchornized nightly branch.
Petr Špaček [Tue, 7 Aug 2018 14:27:26 +0000 (14:27 +0000)]
Merge branch 'ta-parallel' into 'master'
trust anchors: use parallel-safe temporary name
See merge request knot/knot-resolver!643
Vladimír Čunát [Tue, 7 Aug 2018 13:21:59 +0000 (15:21 +0200)]
trust anchors: use parallel-safe temporary name
Previously multiple kresd processes might use the same .lock file at
once and thus have a race between writing and renaming. That could
happen relatively often if starting many instances *at once*.
Petr Špaček [Tue, 7 Aug 2018 13:17:56 +0000 (13:17 +0000)]
Merge branch 'ci-respdiff-master' into 'master'
ci: fixes and optimizations
See merge request knot/knot-resolver!641
Vladimír Čunát [Tue, 7 Aug 2018 11:02:40 +0000 (13:02 +0200)]
cache nitpick: avoid verbose-logging of unitialized TTL
Replaced by a visually recognizable dummy value, for simplicity.
These were introduced in commits:
cache: don't require cached NS for aggresive answers
cache closest_NS(): factor out the inside of a loop
Petr Špaček [Mon, 6 Aug 2018 16:37:54 +0000 (18:37 +0200)]
ci: compute run code coverage only if explicitly requested by variable
Sometimes, for a unknown reason, coverage computation fails in Deckard pipeline:
$ MAKEFLAGS="--jobs $(nproc)" make coverage-c coverage-lua COVERAGE_STAGE=gcov-deckard 2>&1 | grep -vE '(source file is newer than notes file)|(the message is displayed only once per source file)'
lcov: Need one of options -z, -c, -a, -e, -r, -l, --diff or --summary
Use lcov --help to get usage information
coverage.mk:15: recipe for target 'coverage-c' failed
make: *** [coverage-c] Error 255
This is now normally disabled not to interfere with normal development.
Petr Špaček [Mon, 6 Aug 2018 16:22:54 +0000 (18:22 +0200)]
ci: suppress warnings about .gcno file timestamps caused by Git
Petr Špaček [Mon, 6 Aug 2018 13:18:20 +0000 (15:18 +0200)]
ci: archive Deckard artifacts for 1 week
This helps with debugging.
Tomas Krizek [Mon, 6 Aug 2018 12:42:54 +0000 (14:42 +0200)]
ci: don't run respdiff on master branch
Petr Špaček [Tue, 7 Aug 2018 12:30:37 +0000 (12:30 +0000)]
Merge branch 'nitpicks' into 'master'
nitpicks: comment + unused variables
See merge request knot/knot-resolver!642
Vladimír Čunát [Thu, 2 Aug 2018 17:19:43 +0000 (19:19 +0200)]
iterate nitpick: better formulation of a comment
I forgot to squash this before 2.4.1; better late than never.
Vladimír Čunát [Tue, 7 Aug 2018 11:22:53 +0000 (13:22 +0200)]
daemon+cache nitpicks: avoid unused variables
These happen with -DNDEBUG only, and clang detects them (not gcc 7).
Petr Špaček [Mon, 6 Aug 2018 13:58:33 +0000 (13:58 +0000)]
Merge branch 'zimport-print-64' into 'master'
zimport nitpick: fix printing of uint64_t
See merge request knot/knot-resolver!640
Vladimír Čunát [Mon, 6 Aug 2018 12:09:48 +0000 (14:09 +0200)]
zimport nitpick: fix printing of uint64_t
Equality to `unsigned long` is not guaranteed, and was getting us
warnings on macos (maybe it's not equal there).
Also reduce the overlong lines.
Petr Špaček [Mon, 6 Aug 2018 11:41:42 +0000 (11:41 +0000)]
Merge branch 'ci-respdiff' into 'master'
ci: run respdiff jobs
See merge request knot/knot-resolver!638
Tomas Krizek [Tue, 31 Jul 2018 16:47:22 +0000 (18:47 +0200)]
ci: run respdiff jobs
Vladimír Čunát [Fri, 3 Aug 2018 15:30:29 +0000 (15:30 +0000)]
Merge !639: cache.clear(): error out if cache isn't open yet
Vladimír Čunát [Fri, 3 Aug 2018 13:07:30 +0000 (15:07 +0200)]
lua cache bindings: error out if cache isn't open yet
The catch is that during configuration file processing,
no cache is open (yet), as kresd can't know if the config
does open it in some later part (with non-default path or size).
Now we just throw an error. Exceptions:
- cache.open() and cache.backends(), of course :-)
- cache.ns_tout() - not required, it's not really inside cache
- cache.close() - it sounds reasonable to allow "closing a closed cache"
This immediately caught a typo in cache metatable.
Tomas Krizek [Thu, 2 Aug 2018 12:56:24 +0000 (12:56 +0000)]
Merge branch 'master-2.4.1' into 'master'
update NEWS, version and deckard
See merge request knot/knot-resolver!637
Vladimír Čunát [Thu, 2 Aug 2018 12:27:18 +0000 (14:27 +0200)]
tests/deckard: update to master
Tomas Krizek [Thu, 2 Aug 2018 08:54:16 +0000 (10:54 +0200)]
release 2.4.1
(cherry picked from commit
54797e88b144345c6c530731ff2e1b8d659ff5a3 )
Tomas Krizek [Thu, 2 Aug 2018 10:14:07 +0000 (10:14 +0000)]
Merge branch 'cache-pkt-ttl' into 'master'
cache: fix TTL overflow in packet due to min_ttl
See merge request knot/knot-resolver-security!8
Vladimír Čunát [Tue, 31 Jul 2018 09:05:06 +0000 (11:05 +0200)]
cache: fix TTL overflow in packet due to min_ttl
- `min_ttl()` enforces packet being alive longer than original TTL
of some records; but
- the packet is copied to cache as it was.
Resolution: just serve packet the same but with those record's TTLs
remaining at zero.
Tomas Krizek [Thu, 2 Aug 2018 10:03:45 +0000 (10:03 +0000)]
Merge branch 'validate-insecure-bailiwick' into 'master'
validate: additional bailiwick checks
See merge request knot/knot-resolver-security!9
Vladimír Čunát [Tue, 31 Jul 2018 14:28:55 +0000 (16:28 +0200)]
validate: additional bailiwick checks
Let's use this as another layer of defense against our internal bugs.
Tomas Krizek [Thu, 2 Aug 2018 09:54:35 +0000 (09:54 +0000)]
Merge branch 'marek/fix-cname-cache-injection' into 'master'
layer/iterate: fix cache injection via CNAME
See merge request knot/knot-resolver-security!7
Marek Vavruša [Wed, 25 Jul 2018 18:43:19 +0000 (12:43 -0600)]
layer/iterate: fix cache injection via CNAME
The current default mode doesn't check bailiwick anymore when unrolling
CNAME chains, so if an answer contains:
```
testingme.com. 3600 IN CNAME victim.com.
victim.com. 172800 IN NS attackers.ns
```
The resolver will cache both records as authoritative even though
`victim.com` isn't in the current bailiwick. This was previously
checked in
79d9931daaa5b9e6c7965f6ee29c965786a4754e , but removed
in refactoring.
Petr Špaček [Wed, 1 Aug 2018 07:56:11 +0000 (07:56 +0000)]
Merge branch 'ci-knot2.7' into 'master'
ci: update dockerfiles to support different knot versions
See merge request knot/knot-resolver!635
Tomas Krizek [Fri, 27 Jul 2018 11:28:46 +0000 (13:28 +0200)]
ci: update dockerfiles to support different knot versions
Tomas Krizek [Fri, 27 Jul 2018 10:52:44 +0000 (12:52 +0200)]
ci/debian-unstable: simplify image
Tomas Krizek [Fri, 27 Jul 2018 08:54:30 +0000 (10:54 +0200)]
ci/debian: update dependencies
Vladimír Čunát [Tue, 31 Jul 2018 15:53:51 +0000 (15:53 +0000)]
Merge !632: Fix http module regressions from 2.3.0
Petr Špaček [Wed, 25 Jul 2018 09:59:36 +0000 (11:59 +0200)]
http: NEWS
Petr Špaček [Wed, 25 Jul 2018 09:02:01 +0000 (11:02 +0200)]
http: remove /feed from docs
/feed disappeared in v1.1.0 and never worked since then.
fixup!
6887a4a2be84f9276c4cdfb903f757aafd19e778
Petr Špaček [Wed, 25 Jul 2018 09:00:39 +0000 (11:00 +0200)]
http: clarify TLS configuration and recommend reverse-proxy
Petr Špaček [Tue, 24 Jul 2018 16:12:26 +0000 (18:12 +0200)]
Fix regression in HTTP module which broke custom certs.
This is now covered by test suite.
fixup!
b2cefdcf350e846492579e3308f234a696350e01 (regressed in 2.4.0).
Parameter cert=false did not work even in 2.3.0 so it was replaced with cleaner
tls=false.
Petr Špaček [Tue, 24 Jul 2018 16:12:21 +0000 (18:12 +0200)]
Remove http:// from examples.
We want to encourage users to use HTTPS everywhere.
Vladimír Čunát [Mon, 30 Jul 2018 13:56:41 +0000 (13:56 +0000)]
Merge !634: hints docs: unify the descriptions of `hints.root()`
Vladimír Čunát [Thu, 26 Jul 2018 15:35:19 +0000 (17:35 +0200)]
hints docs: unify the descriptions of `hints.root()`
(Thanks to Láďa.)
Also try to stress that hints.set() only takes a pair and not more.
Petr Špaček [Fri, 27 Jul 2018 17:48:15 +0000 (17:48 +0000)]
Merge branch 'aggressive-nsec3-fixes' into 'master'
Aggressive nsec3 fixes
Closes #384
See merge request knot/knot-resolver!628
Vladimír Čunát [Mon, 23 Jul 2018 11:40:09 +0000 (13:40 +0200)]
NEWS for the caching fix in grand-parent commit
Vladimír Čunát [Mon, 23 Jul 2018 08:10:41 +0000 (10:10 +0200)]
cache closest_NS(): factor out the inside of a loop
The code around was getting too complex and too deeply indented.
Vladimír Čunát [Fri, 20 Jul 2018 17:43:30 +0000 (19:43 +0200)]
cache: don't require cached NS for aggresive answers
Vladimír Čunát [Fri, 20 Jul 2018 15:35:15 +0000 (17:35 +0200)]
cache: better logging of NSEC3 parameters
Petr Špaček [Tue, 24 Jul 2018 16:17:58 +0000 (16:17 +0000)]
Merge branch 'tls-tickets-0ms' into 'master'
daemon/tls session tickets: avoid bad scheduling cycles
Closes #385
See merge request knot/knot-resolver!631
Vladimír Čunát [Tue, 24 Jul 2018 16:02:12 +0000 (18:02 +0200)]
daemon/tls session tickets: avoid bad scheduling cycles
This should fix #385: possible floods with
> scheduling rotation check in 0 ms
Petr Špaček [Mon, 23 Jul 2018 14:24:02 +0000 (14:24 +0000)]
Merge branch 'tls-reneg' into 'master'
daemon/tls: properly process TLS rehandshake
See merge request knot/knot-resolver!623
Grigorii Demidov [Mon, 9 Jul 2018 12:42:51 +0000 (14:42 +0200)]
daemon/tls: properly process TLS rehandshake
Tomas Krizek [Mon, 16 Jul 2018 10:22:50 +0000 (10:22 +0000)]
Merge branch 'update-rpm-spec' into 'master'
distro/rpm: add BuildRequires: gcc
See merge request knot/knot-resolver!625
Tomas Krizek [Wed, 11 Jul 2018 13:06:23 +0000 (15:06 +0200)]
distro/rpm: add BuildRequires: gcc-c++
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
Tomas Krizek [Mon, 16 Jul 2018 09:35:08 +0000 (09:35 +0000)]
Merge branch 'add-version-in-lua' into 'master'
added package_version() in Lua, removed version module
See merge request knot/knot-resolver!412
Tomas Krizek [Mon, 16 Jul 2018 09:15:37 +0000 (11:15 +0200)]
distro/deb: remove version.lua module
Marek Vavruša [Sat, 2 Dec 2017 04:00:03 +0000 (20:00 -0800)]
added package_version() in Lua, removed version module
The package_version() function returns current build information.
Removed the version module instead of fixing, as it's being obsoleted.
Marek Vavruša [Wed, 30 May 2018 06:41:09 +0000 (23:41 -0700)]
luacheck: added missing module (trust_anchors)
Petr Špaček [Mon, 16 Jul 2018 09:24:27 +0000 (09:24 +0000)]
Merge branch 'various-tcp-fixes' into 'master'
daemon: avoid memory leak when reading broken incoming TCP stream
See merge request knot/knot-resolver!626
Grigorii Demidov [Wed, 11 Jul 2018 13:50:03 +0000 (15:50 +0200)]
daemon: broken incoming TCP stream can lead to memory leaks in some circumstances, fixed
Petr Špaček [Mon, 16 Jul 2018 09:12:16 +0000 (09:12 +0000)]
Merge branch 'tcp-client-idle-timeout' into 'master'
daemon/io: configurable idle timeout for incoming TCP connection
See merge request knot/knot-resolver!624
Grigorii Demidov [Tue, 26 Jun 2018 08:49:23 +0000 (10:49 +0200)]
daemon: make idle timeout for incoming connection configurable
Tomas Krizek [Mon, 16 Jul 2018 08:47:48 +0000 (08:47 +0000)]
Merge branch 'respdiff-threshold' into 'master'
ci: bump respdiff threshold to 1.0%
See merge request knot/knot-resolver!627
Tomas Krizek [Mon, 16 Jul 2018 08:09:54 +0000 (10:09 +0200)]
ci: bump respdiff threshold to 1.0%
The upstream data have changed, so the threshold has to be bumped for CI
to pass. This is a temporary measure before we have a better working
solution
Related https://gitlab.labs.nic.cz/knot/respdiff/issues/12
Tomas Krizek [Tue, 3 Jul 2018 08:24:48 +0000 (10:24 +0200)]
Merge branch 'release-2-4-0' into 'master'
Release 2.4.0
See merge request knot/knot-resolver!622
Tomas Krizek [Tue, 3 Jul 2018 08:12:01 +0000 (10:12 +0200)]
release 2.4.0
Tomas Krizek [Tue, 3 Jul 2018 08:11:13 +0000 (10:11 +0200)]
bump libknot dependency to 2.6.7
Tomas Krizek [Mon, 2 Jul 2018 17:17:07 +0000 (19:17 +0200)]
Merge branch 'systemd-updates' into 'master'
systemd: use kresd.target for service start
See merge request knot/knot-resolver!597
Tomas Krizek [Tue, 5 Jun 2018 15:23:53 +0000 (17:23 +0200)]
distro/rpm: update systemd scriptlets
Tomas Krizek [Mon, 4 Jun 2018 15:05:46 +0000 (17:05 +0200)]
distro/systemd: use kresd.target to start enabled instances
Starting multiple systemd units with a target is conceptually cleaner
than using globbing expression.
Related https://github.com/systemd/systemd/issues/9080
Tomas Krizek [Mon, 4 Jun 2018 13:49:13 +0000 (15:49 +0200)]
distro: move systemd unit files
Tomas Krizek [Mon, 4 Jun 2018 13:34:34 +0000 (15:34 +0200)]
distro: move kresd.systemd man page
Tomas Krizek [Mon, 4 Jun 2018 13:26:21 +0000 (15:26 +0200)]
distro: move tmpfiles
Petr Špaček [Mon, 2 Jul 2018 15:34:06 +0000 (17:34 +0200)]
Merge branch 'upstream-packet-check' into 'master'
daemon/worker: upstream's answer integrity check
Closes #366
See merge request knot/knot-resolver!619
Grigorii Demidov [Thu, 28 Jun 2018 12:02:43 +0000 (14:02 +0200)]
daemon/worker: upstream's answer integrity check
Tomas Krizek [Mon, 2 Jul 2018 15:11:52 +0000 (17:11 +0200)]
Merge branch 'ci-dockerfiles' into 'master'
ci: dockerfiles
See merge request knot/knot-resolver!621
Tomas Krizek [Mon, 2 Jul 2018 14:56:33 +0000 (16:56 +0200)]
ci: organize dockerfiles
Tomas Krizek [Mon, 2 Jul 2018 14:53:08 +0000 (16:53 +0200)]
ci: debian-unstable docker - install new respdiff
Petr Špaček [Mon, 2 Jul 2018 14:46:54 +0000 (16:46 +0200)]
Merge branch 'NEWS' into 'master'
NEWS: preparation for 2.4 release
See merge request knot/knot-resolver!620