]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vladimír Čunát [Wed, 1 Mar 2017 16:04:25 +0000 (17:04 +0100)]
WIP
Vladimír Čunát [Tue, 2 May 2017 09:58:58 +0000 (11:58 +0200)]
Merge !289: fix compiling with luajit-2.1.0-beta3
Upstream released the bump yesterday.
Tested with 2.0.4, 2.1.0-beta{2,3}.
Vladimír Čunát [Tue, 2 May 2017 09:52:31 +0000 (11:52 +0200)]
fix compiling with luajit-2.1.0-beta3
It added a function from lua > 5.1, without bumping the language
version. The changelog seems safe and Deckard still passes.
Grigorii Demidov [Fri, 28 Apr 2017 11:59:33 +0000 (13:59 +0200)]
Merge branch 'fix-dnssec' into 'master'
lib/dnssec: bugfix; libdnssec data structure was prematurely released after unsu…
See merge request !288
Grigorii Demidov [Fri, 28 Apr 2017 10:37:26 +0000 (12:37 +0200)]
lib/dnssec: bugfix; libdnssec data structure was prematurely released after unsuccessful attempt of signature validation
Vladimír Čunát [Wed, 26 Apr 2017 12:51:48 +0000 (14:51 +0200)]
Merge !283: NEWS: entry about ad-refactor merge
Vladimír Čunát [Wed, 26 Apr 2017 10:53:41 +0000 (12:53 +0200)]
NEWS: entry about ad-refactor merge
I'd like to add NEWS entries already in the merge requests,
but I often forget.
Also mark version with -dev.
Vladimír Čunát [Tue, 25 Apr 2017 08:32:42 +0000 (10:32 +0200)]
Merge !269: refactoring: RR ranks and AD flag ('ad-refactor' branch)
Vladimír Čunát [Thu, 13 Apr 2017 14:09:39 +0000 (16:09 +0200)]
misc nitpicks, not really changing anything
Vladimír Čunát [Mon, 24 Apr 2017 17:07:18 +0000 (19:07 +0200)]
rrcache: always stash authority records
It's up to iterator to pick the interesting cases to auth_selected.
Vladimír Čunát [Mon, 24 Apr 2017 17:31:53 +0000 (19:31 +0200)]
Merge branch 'master' into ad-refactor
Vladimír Čunát [Mon, 24 Apr 2017 15:07:06 +0000 (17:07 +0200)]
Merge !282: bootstrap-depends: update fstrm
Vladimír Čunát [Mon, 24 Apr 2017 14:10:09 +0000 (16:10 +0200)]
bootstrap-depends: update fstrm
Hopefully this will fix the ./configure problem on Jenkins.
Also, an incorrect flag was passed.
Ondřej Surý [Mon, 24 Apr 2017 14:13:02 +0000 (16:13 +0200)]
Merge branch 'release-1.2.6' into 'master'
NEWS: prepare for 1.2.6
See merge request !280
Vladimír Čunát [Mon, 24 Apr 2017 12:54:46 +0000 (14:54 +0200)]
NEWS: prepare for 1.2.6
Ondřej Surý [Mon, 24 Apr 2017 13:21:08 +0000 (15:21 +0200)]
Merge branch 'deckard-update' into 'master'
Update deckard to latest master
See merge request !279
Ondřej Surý [Mon, 24 Apr 2017 12:32:15 +0000 (14:32 +0200)]
Update deckard to latest master
Ondřej Surý [Mon, 24 Apr 2017 13:19:23 +0000 (15:19 +0200)]
Merge branch 'respdiff-allow-failure' into 'master'
Allow canceling respdiff without penalty
See merge request !281
Ondřej Surý [Mon, 24 Apr 2017 13:17:55 +0000 (15:17 +0200)]
Allow canceling respdiff without penalty
Vladimír Čunát [Mon, 24 Apr 2017 12:25:50 +0000 (14:25 +0200)]
Merge !278: lib/nsrep: revert some changes from commit
5581cf9b
Closes #179 and #178.
Vladimír Čunát [Mon, 24 Apr 2017 12:13:32 +0000 (14:13 +0200)]
Merge !277: dnssec/nsec: fix wildcards directly under the root
Grigorii Demidov [Fri, 21 Apr 2017 12:30:05 +0000 (14:30 +0200)]
lib/nsrep: revert some changes from commit
5581cf9b
Grigorii Demidov [Wed, 19 Apr 2017 11:17:45 +0000 (13:17 +0200)]
dnssec/nsec: fix wildcard_match_check() to allow processing of *. wildcard
Petr Špaček [Wed, 19 Apr 2017 07:53:29 +0000 (09:53 +0200)]
Merge branch 'ci-respdiff' into 'master'
CI: run respdiff using docker image in Gitlab CI
See merge request !275
Petr Špaček [Tue, 18 Apr 2017 14:07:48 +0000 (16:07 +0200)]
Merge branch 'rrcache-pkt-clobber' into 'master'
rrcache: don't clobber pkt if failing the second step
See merge request !274
Vladimír Čunát [Tue, 18 Apr 2017 10:24:04 +0000 (12:24 +0200)]
rrcache: don't clobber pkt if failing the second step
I hope fixing this bug should diminish the recent experiences of Google
domains failing to resolve on Turris Omnia.
Vladimír Čunát [Tue, 18 Apr 2017 13:51:10 +0000 (15:51 +0200)]
Merge branch 'fix-oo-wc-nodata' into 'master'
dnssec/nsec3: don't set AD flag in properly signed wildcard nodata answers
See merge request !273
Vladimír Čunát [Thu, 13 Apr 2017 12:40:29 +0000 (14:40 +0200)]
iterate: don't inherit _INSECURE on CNAME jumps
The jump may lead to secure zone, so let the sub-query find out by
itself. Otherwise we might cache those RRs with INSECURE rank even
though they are secure. This shouldn't harm AD flags anymore.
Jan Holusa [Thu, 13 Apr 2017 12:03:24 +0000 (14:03 +0200)]
CI: run respdiff using docker image in Gitlab CI
Vladimír Čunát [Thu, 13 Apr 2017 11:41:48 +0000 (13:41 +0200)]
ranked_rr_array_entry: update some comments
Vladimír Čunát [Thu, 13 Apr 2017 11:26:17 +0000 (13:26 +0200)]
kr_ta_covers: fix returning error code in a bool
Vladimír Čunát [Thu, 13 Apr 2017 09:46:31 +0000 (11:46 +0200)]
Merge !272: dnssec/signature: fix wildcard signatures
Grigorii Demidov [Tue, 11 Apr 2017 16:26:34 +0000 (18:26 +0200)]
dnssec/signature: fix wildcard signatures
When reconstructing the signed data for RRSet synthesized from wildcard,
omit leftmost name labels for each RR in RRSet, not only for the first RR.
Grigorii Demidov [Thu, 13 Apr 2017 09:15:32 +0000 (11:15 +0200)]
dnssec/nsec3: don't set AD flag in properly signed wildcard nodata answer
Vladimír Čunát [Mon, 10 Apr 2017 17:30:55 +0000 (19:30 +0200)]
resolve: fix AD flag for negative answers
This part of code still deserves better review.
It's a bit surprising that our current tests didn't discover it.
We incorrectly answered with AD in some cases, e.g. ntp.pool.org AAAA.
Vladimír Čunát [Mon, 10 Apr 2017 17:21:37 +0000 (19:21 +0200)]
pktcache: put more info into --verbose messages
Vladimír Čunát [Mon, 10 Apr 2017 13:32:15 +0000 (15:32 +0200)]
iterator: improve get_initial_rank
If a server puts NS into the authority section that refers to itself,
accept it as autoritative and validate it (if applicable). This fixes
the val_nsec3_cnametocnamewctoposwc test, as unvalidated NS in the
final answer would prevent adding the AD flag. The iter_pcname test is
broken by this, but the team's consensus is to prefer this solution.
Nitpicks: cleaner style in the function, and don't force inlining anymore.
(It's no longer a trivial function and compilers should be good at
determining whether to inline static functions or not.)
Vladimír Čunát [Mon, 10 Apr 2017 11:14:05 +0000 (13:14 +0200)]
rrcache: put more info into --verbose messages
Especially when stashing into the cache, it was unclear which RRset
was being referred to. Let's add type and owner name.
Petr Špaček [Mon, 10 Apr 2017 06:45:31 +0000 (08:45 +0200)]
Merge branch 'refused-retry' into 'master'
don't retry if REFUSED
See merge request !271
Vladimír Čunát [Fri, 7 Apr 2017 16:23:11 +0000 (18:23 +0200)]
AD flag: the ranks from cache should be safe now
Vladimír Čunát [Fri, 7 Apr 2017 13:56:25 +0000 (15:56 +0200)]
move a decision from validator to iterator
NS records from AUTHORITY aren't validated. The iterator seems a
better place, as that's where delegations are handled, etc.
Vladimír Čunát [Fri, 7 Apr 2017 13:41:41 +0000 (15:41 +0200)]
validate: fix bad usage of KR_RANK_INSECURE
It's supposed to mean that we have a proof from configured TAs that
the RR isn't secure (typically proof of missing DS at some point).
This case was just failure to find a fitting RRSIG; new KR_RANK_MISSING
is introduced for that purpose, for simplicity.
Also, make the validator more thorough about what ranks are safe to skip.
Vladimír Čunát [Fri, 7 Apr 2017 13:40:50 +0000 (15:40 +0200)]
rrcache verbose: print rank information
Vladimír Čunát [Fri, 7 Apr 2017 12:05:41 +0000 (14:05 +0200)]
iterator: don't retry if REFUSED
It's unlikely to be a temporary condition, unless the reply was spoofed
or something. Fixes val_cname_to_unsigned_fake_rrsig test.
(cherry picked from commit
bc2a26702e6460aee65fe170671336d670ba3eb9 )
Vladimír Čunát [Fri, 7 Apr 2017 12:05:41 +0000 (14:05 +0200)]
iterator: don't retry if REFUSED
It's unlikely to be a temporary condition, unless the reply was spoofed
or something. Fixes val_cname_to_unsigned_fake_rrsig test.
Vladimír Čunát [Fri, 7 Apr 2017 10:42:01 +0000 (12:42 +0200)]
rrcache, pktcache: check security only if under a TA
Tests: iter_minmaxttl and iter_soamin get fixed, probably because
they're without a root TA but have some lower TA(s).
Vladimír Čunát [Fri, 7 Apr 2017 10:34:46 +0000 (12:34 +0200)]
kr_ta_covers_qry: add this wrapper function
Vladimír Čunát [Fri, 7 Apr 2017 08:43:08 +0000 (10:43 +0200)]
kr_rank: improve the API to manipulate ranks
_SECURE and _INSECURE weren't real flags, as their setting was
logically exclusive of the "values". That made changing ranks rather
cumbersome.
Tests: val_cname_to_unsigned_fake_rrsig gets broken, but I hope this
change just uncovered a hidden bug.
Vladimír Čunát [Thu, 6 Apr 2017 15:44:36 +0000 (17:44 +0200)]
utils: fix KEY_* defines
The argument to KEY_FLAG_RANK was (signed) char*, so for secure rank
the shift was setting the highest two bits (which are unused).
Let me end that rubbish.
Grigorii Demidov [Thu, 6 Apr 2017 12:09:47 +0000 (14:09 +0200)]
layer/validate: mark all selected records as insecure is case of insecured query detection
Vladimír Čunát [Wed, 5 Apr 2017 16:41:16 +0000 (18:41 +0200)]
extend NONAUTH even to non-validated records
Also rename NOAUTH->NONAUTH.
Vladimír Čunát [Wed, 5 Apr 2017 16:03:50 +0000 (18:03 +0200)]
OK to use non-authoritative sources for NS addresses
... *if* we only want to ask the NSs, i.e. not to be put into answer.
This fixes iter_cname_cache test.
Ondřej Surý [Wed, 5 Apr 2017 14:10:22 +0000 (16:10 +0200)]
Merge branch '1.2' into 'master'
Sync 1.2 branch to master
See merge request !268
Ondřej Surý [Wed, 5 Apr 2017 14:02:28 +0000 (16:02 +0200)]
Merge branch 'strip-dev-from-1.2.5' into '1.2'
Strip -dev suffix from version number
See merge request !267
Ondřej Surý [Wed, 5 Apr 2017 13:59:22 +0000 (15:59 +0200)]
Strip -dev suffix from version number
Vladimír Čunát [Wed, 5 Apr 2017 13:34:47 +0000 (15:34 +0200)]
Merge !263: NEWS: nitpicks in 1.2.5 entries
Ondřej Surý [Wed, 5 Apr 2017 13:32:51 +0000 (15:32 +0200)]
Merge branch 'release-1.2.5' into '1.2'
Update NEWS for 1.2.5 release
See merge request !265
Ondřej Surý [Wed, 5 Apr 2017 13:14:18 +0000 (15:14 +0200)]
Update NEWS for 1.2.5 release
Ondřej Surý [Wed, 5 Apr 2017 12:40:21 +0000 (14:40 +0200)]
Merge branch '1.2-keep-autogenerated-protobuf-c' into '1.2'
1.2 keep autogenerated protobuf c
See merge request !264
Ondřej Surý [Wed, 5 Apr 2017 12:30:01 +0000 (14:30 +0200)]
Merge remote-tracking branch 'origin/master' into 1.2
Ondřej Surý [Wed, 5 Apr 2017 12:29:00 +0000 (14:29 +0200)]
Merge branch 'keep-autogenerated-protobuf-c-files' into 'master'
Include protobuf-c generated files in the repository
See merge request !262
Vladimír Čunát [Wed, 5 Apr 2017 12:19:57 +0000 (14:19 +0200)]
NEWS: nitpicks in 1.2.5 entries
Ondřej Surý [Wed, 5 Apr 2017 12:08:52 +0000 (14:08 +0200)]
Include protobuf-c generated files in the repository
Vladimír Čunát [Wed, 5 Apr 2017 11:33:15 +0000 (13:33 +0200)]
don't attempt to reuse cached nonvalidated records
at least for now (for queries without +cd).
It wasn't complete, and it turned out to need more changes,
and the benefits would be rather limited.
Ondřej Surý [Wed, 5 Apr 2017 11:16:20 +0000 (13:16 +0200)]
Merge branch 'rsync-travis-fix' into '1.2'
Rsync travis fix
See merge request !261
Ondřej Surý [Wed, 5 Apr 2017 11:05:28 +0000 (13:05 +0200)]
Merge remote-tracking branch 'origin/master' into 1.2
Ondřej Surý [Wed, 5 Apr 2017 11:04:30 +0000 (13:04 +0200)]
Merge branch 'travis-fix' into 'master'
Travis fix
See merge request !260
Ondřej Surý [Wed, 5 Apr 2017 10:26:19 +0000 (12:26 +0200)]
Fix duplicate python installation
Ondřej Surý [Wed, 5 Apr 2017 10:16:41 +0000 (12:16 +0200)]
Use packages from brew on OS X
Ondřej Surý [Wed, 5 Apr 2017 10:12:43 +0000 (12:12 +0200)]
Merge branch '1.2-resync' into '1.2'
1.2 resync with master
See merge request !258
Ondřej Surý [Wed, 5 Apr 2017 10:06:11 +0000 (12:06 +0200)]
Merge branch 'travis-fix' into 'master'
Workaround the Travis-CI bug
See merge request !259
Ondřej Surý [Wed, 5 Apr 2017 09:59:17 +0000 (11:59 +0200)]
Workaround the Travis-CI bug
Ondřej Surý [Wed, 5 Apr 2017 09:53:35 +0000 (11:53 +0200)]
Merge branch '1.2-merge-master' into 'master'
1.2 merge master
Closes #158, #160, and #151
See merge request !257
Ondřej Surý [Wed, 5 Apr 2017 09:44:50 +0000 (11:44 +0200)]
Merge remote-tracking branch 'origin/master' into 1.2
Ondřej Surý [Wed, 5 Apr 2017 09:43:19 +0000 (11:43 +0200)]
Merge branch 'release-1.2.5' into '1.2'
Knot Resolver 1.2.5
See merge request !254
Ondřej Surý [Wed, 5 Apr 2017 09:17:13 +0000 (11:17 +0200)]
Merge branch 'log_rrsig_validity' into 'master'
layer/validate: clarify message about missing *valid* RRSIGs
See merge request !256
Petr Špaček [Wed, 5 Apr 2017 09:10:19 +0000 (11:10 +0200)]
layer/validate: clarify message about missing *valid* RRSIGs
Vladimír Čunát [Wed, 5 Apr 2017 09:05:12 +0000 (11:05 +0200)]
kr_rank: use functions to manipulate the non-flag part
Also fix a related bug in pktcache.
Vladimír Čunát [Tue, 4 Apr 2017 17:36:20 +0000 (19:36 +0200)]
Merge !255: fix travis, update libknot
Vladimír Čunát [Tue, 4 Apr 2017 16:20:21 +0000 (18:20 +0200)]
bootstrap-depends.sh: libknot: 2.3.3 -> 2.4.2
Vladimír Čunát [Tue, 4 Apr 2017 14:59:02 +0000 (16:59 +0200)]
dnstap.mk: another shot at Travis failures
I'm sorry. I'm not certain about this and don't like to invest much
time into it.
Vladimír Čunát [Tue, 4 Apr 2017 15:44:01 +0000 (17:44 +0200)]
bootstrap-depends.sh: switch protobuf to 2.x
Ondřej Surý [Tue, 4 Apr 2017 14:45:54 +0000 (16:45 +0200)]
Add kresc into NEWS
Ondřej Surý [Tue, 4 Apr 2017 14:44:22 +0000 (16:44 +0200)]
Prepare 1.2.5 release
Ondřej Surý [Tue, 4 Apr 2017 14:31:09 +0000 (16:31 +0200)]
Merge branch 'master' into 1.2
Ondřej Surý [Tue, 4 Apr 2017 14:23:54 +0000 (16:23 +0200)]
Merge branch 'make-posix-shell' into 'master'
daemon.mk: remove brace expansions (non-POSIX)
See merge request !253
Vladimír Čunát [Tue, 4 Apr 2017 14:10:22 +0000 (16:10 +0200)]
daemon.mk: remove brace expansions (non-POSIX)
The code is uglier to me but I can't see what else to do.
Ondřej Surý [Tue, 4 Apr 2017 13:55:59 +0000 (15:55 +0200)]
Merge branch '1.3.0-dev' into 'master'
1.3.0 dev
See merge request !252
Ondřej Surý [Tue, 4 Apr 2017 13:50:57 +0000 (15:50 +0200)]
Merge changelog from 1.2 branch
Ondřej Surý [Tue, 4 Apr 2017 13:50:27 +0000 (15:50 +0200)]
Bump version in master to 1.3.0-dev
Vladimír Čunát [Tue, 4 Apr 2017 11:54:55 +0000 (13:54 +0200)]
rrcache: harden against spoofing, again
This fixes the iter_ns_spoof test.
Vladimír Čunát [Tue, 4 Apr 2017 09:51:47 +0000 (11:51 +0200)]
Merge branch 'master' into ad-refactor
Vladimír Čunát [Tue, 4 Apr 2017 09:08:06 +0000 (11:08 +0200)]
Merge !251: improve referral detection and process_answer
Grigorii Demidov [Tue, 4 Apr 2017 09:02:44 +0000 (11:02 +0200)]
layer/iterate: name comparison has been missed; comment
Grigorii Demidov [Tue, 4 Apr 2017 08:10:12 +0000 (10:10 +0200)]
layer/iterate: During packet classification (answer\referral) don't analyze AUTHORITY section in authoritative answer if ANSWER section contains records which have been requested.
Vladimír Čunát [Mon, 3 Apr 2017 15:57:20 +0000 (17:57 +0200)]
cache: bump cache version
The ranks stored within are changing their meaning.
Vladimír Čunát [Mon, 3 Apr 2017 13:05:16 +0000 (15:05 +0200)]
iterate: improve get_initial_rank
This fixes tests for hints, in particular.
Vladimír Čunát [Mon, 3 Apr 2017 12:07:22 +0000 (14:07 +0200)]
rrcache, pktcache: better explain passing of ranks
Grigorii Demidov [Mon, 3 Apr 2017 11:57:37 +0000 (13:57 +0200)]
layer/validate: fix broken rank_test_flag()
Vladimír Čunát [Mon, 3 Apr 2017 11:50:39 +0000 (13:50 +0200)]
rrcache: fix code that was missed by mistake