]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
5 years agoMerge branch 'modules-tests' into 'master' obs-knot-dns-deve-jq0xxt/deployments/717 obs-knot-resolver-es11k1/deployments/718
Tomas Krizek [Thu, 2 Apr 2020 12:33:49 +0000 (14:33 +0200)] 
Merge branch 'modules-tests' into 'master'

modules/meson.build: move test definitions closer to modules

See merge request knot/knot-resolver!971

5 years agomodules/meson.build: move test definitions closer to modules
Vladimír Čunát [Thu, 2 Apr 2020 09:14:25 +0000 (11:14 +0200)] 
modules/meson.build: move test definitions closer to modules

5 years agoMerge !966: daf and HTTP fixes
Vladimír Čunát [Thu, 2 Apr 2020 12:11:04 +0000 (14:11 +0200)] 
Merge !966: daf and HTTP fixes

Closes #553.

5 years agodaf: make protocol detection consistent with http module
Tomas Krizek [Wed, 1 Apr 2020 15:28:41 +0000 (17:28 +0200)] 
daf: make protocol detection consistent with http module

5 years agodaf: fix example in documentation
Tomas Krizek [Wed, 1 Apr 2020 15:07:53 +0000 (17:07 +0200)] 
daf: fix example in documentation

5 years agomodules/daf: add warning since examples can be misleading
Tomas Krizek [Wed, 1 Apr 2020 12:53:22 +0000 (14:53 +0200)] 
modules/daf: add warning since examples can be misleading

5 years agomodules/daf: add some basic tests
Tomas Krizek [Wed, 1 Apr 2020 12:37:17 +0000 (14:37 +0200)] 
modules/daf: add some basic tests

5 years agomodules/daf: fix pass, deny, drop and tc actions
Tomas Krizek [Wed, 1 Apr 2020 09:57:05 +0000 (11:57 +0200)] 
modules/daf: fix pass, deny, drop and tc actions

Previously, all those actions caused resolver to return SERVFAIL,
because the lua code failed to evaluate.

Notably, deny action now properly returns NXDOMAIN instead of SERVFAIL.
The drop action still returns SERVFAIL.

5 years agodaf/README: use proper syntax, not syntactic sugar
Tomas Krizek [Wed, 1 Apr 2020 09:04:31 +0000 (11:04 +0200)] 
daf/README: use proper syntax, not syntactic sugar

5 years agohttp: update favicon to match Resolver colors
Petr Špaček [Wed, 1 Apr 2020 08:32:21 +0000 (10:32 +0200)] 
http: update favicon to match Resolver colors

Old favicon used Knot DNS colors (dark blue) instead of Knot Resolver
colors (light blue).

5 years agodaf: fix add() handling of empty rule strings
Petr Špaček [Tue, 31 Mar 2020 15:31:00 +0000 (17:31 +0200)] 
daf: fix add() handling of empty rule strings

5 years agodaf: config tests for HTTP API
Petr Špaček [Tue, 31 Mar 2020 15:29:53 +0000 (17:29 +0200)] 
daf: config tests for HTTP API

5 years agodaf: remove ordering requirement between http and daf modules
Petr Špaček [Tue, 31 Mar 2020 14:12:49 +0000 (16:12 +0200)] 
daf: remove ordering requirement between http and daf modules

5 years agotests: avoid deprecated -f 1 in config tests, use -n
Petr Špaček [Tue, 31 Mar 2020 14:11:53 +0000 (16:11 +0200)] 
tests: avoid deprecated -f 1 in config tests, use -n

Omission in a339ee10d71380f6c0779950b73dd3c419036135.

Related: #529

5 years agodaf: fix HTTP DELETE
Petr Špaček [Tue, 31 Mar 2020 14:01:47 +0000 (16:01 +0200)] 
daf: fix HTTP DELETE

Rule ID is a number, not a string.

5 years agohttp: also log results of HTTP requests
Petr Špaček [Tue, 31 Mar 2020 13:35:37 +0000 (15:35 +0200)] 
http: also log results of HTTP requests

5 years agodaf: fix the ajax error callback for rule control
Jiří Helebrant [Tue, 31 Mar 2020 12:48:18 +0000 (14:48 +0200)] 
daf: fix the ajax error callback for rule control

5 years agodaf: fix consensus() function to correctly detect empty answers
Petr Špaček [Tue, 31 Mar 2020 12:33:00 +0000 (14:33 +0200)] 
daf: fix consensus() function to correctly detect empty answers

consensus() function is affected by
https://gitlab.labs.nic.cz/knot/knot-resolver/issues/554
so this fix helps only with single-instance scenarios.

5 years agodaf: fix the rule builder form
Jiří Helebrant [Tue, 31 Mar 2020 09:40:47 +0000 (11:40 +0200)] 
daf: fix the rule builder form

5 years agohttp: log requests in verbose mode
Petr Špaček [Tue, 31 Mar 2020 07:30:18 +0000 (09:30 +0200)] 
http: log requests in verbose mode

5 years agodaf: fix HTTP API endpoints to work with webmgmt interface
Petr Špaček [Tue, 31 Mar 2020 07:02:16 +0000 (09:02 +0200)] 
daf: fix HTTP API endpoints to work with webmgmt interface

It is broken at least since 1223599d1cb8d92f1ebe7100e926b8fe44bee2f2,
i.e. 4.0.0.

5 years agodaf: fix del method
realPy [Mon, 30 Mar 2020 10:54:22 +0000 (12:54 +0200)] 
daf: fix del method

The id rule is not the same as the index of the array.

Fixes: #553
5 years agoMerge branch 'deckard_debug' into 'master'
Tomas Krizek [Thu, 2 Apr 2020 11:56:46 +0000 (13:56 +0200)] 
Merge branch 'deckard_debug' into 'master'

tests: revert broken commits in Deckard repo

See merge request knot/knot-resolver!970

5 years agotests: revert broken commits in Deckard repo
Petr Špaček [Thu, 2 Apr 2020 11:25:15 +0000 (13:25 +0200)] 
tests: revert broken commits in Deckard repo

I don't know why exactly it fails ... let's unblock release.

5 years agoMerge !968: daemon: decrease tcp backlog to 128 obs-knot-dns-deve-jq0xxt/deployments/714 obs-knot-resolver-es11k1/deployments/715
Vladimír Čunát [Wed, 1 Apr 2020 10:17:01 +0000 (12:17 +0200)] 
Merge !968: daemon: decrease tcp backlog to 128

5 years agodaemon: decrease tcp backlog to 128
Tomas Krizek [Tue, 31 Mar 2020 15:32:09 +0000 (17:32 +0200)] 
daemon: decrease tcp backlog to 128

From our TCP benchmarks, values over 128 don't seem to have any
measurable benefits, even with hundreds of thousands of connections.

On the contrary, during very high TCP and CPU load, smaller backlog
seems to dramatically improve latency for clients that keep idle TCP
connections.

During normal/low load, smaller backlog doesn't seem to have any
benefits.

When measured against "aggressive" clients that immediately close the
TCP connection once their query is answered, backlog smaller than 128
was measured to hurt performance.

The application's backlog size is ultimately limited by
net.core.somaxconn, which has been set to 128 prior to Linux 5.4.
Therefore, this change only affects newer kernels and those who have
manually set this value to a higher size.

For more, see
https://gitlab.labs.nic.cz/knot/knot-resolver/-/merge_requests/968

5 years agoMerge !967: abort integration tests if sendmmsg is enabled
Vladimír Čunát [Wed, 1 Apr 2020 09:34:59 +0000 (11:34 +0200)] 
Merge !967: abort integration tests if sendmmsg is enabled

5 years agoMerge branch 'lua-resolve-opt' into 'master'
Petr Špaček [Wed, 1 Apr 2020 09:04:37 +0000 (11:04 +0200)] 
Merge branch 'lua-resolve-opt' into 'master'

lua resolve(): correctly include EDNS0 in the virtual packet

See merge request knot/knot-resolver!963

5 years agodeckard: abort if sendmmsg/recvmmsg are in use
Petr Špaček [Tue, 31 Mar 2020 09:43:00 +0000 (11:43 +0200)] 
deckard: abort if sendmmsg/recvmmsg are in use

Deckard does not support these and it leads to confusing errors.
In long term we need to migrate Deckard to different network backend:
https://gitlab.labs.nic.cz/knot/deckard/issues/42

5 years agolua resolve(): correctly include EDNS0 in the virtual packet
Vladimír Čunát [Fri, 27 Mar 2020 08:36:11 +0000 (09:36 +0100)] 
lua resolve(): correctly include EDNS0 in the virtual packet

The new allocation approach isn't perfectly optimal, but it seems
relatively easy to understand and handles OOM conditions OK (I think).

5 years agoMerge !957: per-request verbose logging and debug log improvements obs-knot-dns-deve-jq0xxt/deployments/704 obs-knot-dns-deve-jq0xxt/deployments/706 obs-knot-dns-deve-jq0xxt/deployments/708 obs-knot-dns-deve-jq0xxt/deployments/710 obs-knot-dns-deve-jq0xxt/deployments/712 obs-knot-resolver-es11k1/deployments/705 obs-knot-resolver-es11k1/deployments/707 obs-knot-resolver-es11k1/deployments/709 obs-knot-resolver-es11k1/deployments/711 obs-knot-resolver-es11k1/deployments/713
Vladimír Čunát [Thu, 26 Mar 2020 13:44:58 +0000 (14:44 +0100)] 
Merge !957: per-request verbose logging and debug log improvements

5 years agolua: log RR ranks the same way as [cach] does
Vladimír Čunát [Thu, 26 Mar 2020 12:44:42 +0000 (13:44 +0100)] 
lua: log RR ranks the same way as [cach] does

5 years agopolicy.DEBUG: NEWS + upgrading
Petr Špaček [Wed, 25 Mar 2020 13:46:16 +0000 (14:46 +0100)] 
policy.DEBUG: NEWS + upgrading

5 years agopolicy.DEBUG_IF: avoid creating new callbacks on every request
Petr Špaček [Wed, 25 Mar 2020 12:21:49 +0000 (13:21 +0100)] 
policy.DEBUG_IF: avoid creating new callbacks on every request

This new approach uses per-request variables in Lua and creates new
callback for each DEBUG_IF call instead of each request.

5 years agoDockerfile with one-shot mode
Petr Špaček [Fri, 20 Mar 2020 14:59:58 +0000 (15:59 +0100)] 
Dockerfile with one-shot mode

Intended usage: Quick resolution attempt with an empty cache.

export QNAME=...
export QTYPE=...
sudo -E docker run -e QNAME -e QTYPE krestest:latest '-n' '-c' '/etc/knot-resolver/kresd.conf'

5 years agopolicy.DEBUG: fix to respect user-provided callbacks
Petr Špaček [Fri, 20 Mar 2020 13:40:44 +0000 (14:40 +0100)] 
policy.DEBUG: fix to respect user-provided callbacks

It creates new callback functions for every request which
uses "callback chaining" but these should be rare.

5 years agolua: expose cache miss detection in request objects
Petr Špaček [Thu, 19 Mar 2020 07:13:06 +0000 (08:13 +0100)] 
lua: expose cache miss detection in request objects

It seems there is no reason to keep this function private in policy
module.

5 years agocache: remove forgotten log message "writing RRsets"
Petr Špaček [Wed, 18 Mar 2020 14:38:57 +0000 (15:38 +0100)] 
cache: remove forgotten log message "writing RRsets"

It did not log through request->trace_log and is not very useful anyway.

5 years agovalidator: clarify message about signed non-authoritative data
Petr Špaček [Wed, 18 Mar 2020 14:20:59 +0000 (15:20 +0100)] 
validator: clarify message about signed non-authoritative data

5 years agopolicy.DEBUG: add also policy.REQTRACE for printing incoming packets
Petr Špaček [Wed, 18 Mar 2020 13:03:13 +0000 (14:03 +0100)] 
policy.DEBUG: add also policy.REQTRACE for printing incoming packets

5 years agopolicy.DEBUG: generalize DEBUG_CACHE_MISS into DEBUG_IF
Petr Špaček [Wed, 18 Mar 2020 11:22:24 +0000 (12:22 +0100)] 
policy.DEBUG: generalize DEBUG_CACHE_MISS into DEBUG_IF

DEBUG_IF accepts user-supplied function which decides which requests
should be logged.

5 years agopolicy: doc reorganization and clarification
Petr Špaček [Mon, 16 Mar 2020 16:14:13 +0000 (17:14 +0100)] 
policy: doc reorganization and clarification

5 years agopolicy.DEBUG: log also final answer
Petr Špaček [Fri, 13 Mar 2020 17:23:33 +0000 (18:23 +0100)] 
policy.DEBUG: log also final answer

Attempt to avoid duplicating ten lines in debug_logfinish_cb lead me
to splitting kr_log_qverbose_impl into two functions kr_log_q and kr_log_req.
This is another minor change to API exposed to modules.

5 years agounify verbose logging and request tracing
Petr Špaček [Thu, 12 Mar 2020 12:41:49 +0000 (13:41 +0100)] 
unify verbose logging and request tracing

Formerly both logs used slightly different formats and duplicated code.
From now on verbose log and request tracing are generated using the same
code.

This required a small change to request trace_log_f definition so it
might affect external modules.

5 years agolua: helper functions for debug log
Petr Špaček [Thu, 12 Mar 2020 10:08:12 +0000 (11:08 +0100)] 
lua: helper functions for debug log

5 years agodebug: warn on qname letter case mismatch
Petr Špaček [Wed, 11 Mar 2020 15:46:18 +0000 (16:46 +0100)] 
debug: warn on qname letter case mismatch

We de-randomize qname letter case very early so kr_pkt_text() should see
all lowercase. Any uppercase means mismatch.

I've considered moving debug print to an earlier place but this way it
is more visible so I like more.

5 years agoiterate: log IP address sending mismatching answers
Petr Špaček [Wed, 11 Mar 2020 15:44:07 +0000 (16:44 +0100)] 
iterate: log IP address sending mismatching answers

5 years agodaemon/worker: add logging to qr_task_step query cancelation
Štěpán Balážik [Wed, 11 Mar 2020 12:50:33 +0000 (13:50 +0100)] 
daemon/worker: add logging to qr_task_step query cancelation

5 years agoMerge branch 'strict-aliasing' into 'master' obs-knot-dns-deve-jq0xxt/deployments/698 obs-knot-dns-deve-jq0xxt/deployments/700 obs-knot-dns-deve-jq0xxt/deployments/702 obs-knot-resolver-es11k1/deployments/699 obs-knot-resolver-es11k1/deployments/701 obs-knot-resolver-es11k1/deployments/703
Tomas Krizek [Mon, 23 Mar 2020 13:35:45 +0000 (14:35 +0100)] 
Merge branch 'strict-aliasing' into 'master'

fix strict aliasing problems

See merge request knot/knot-resolver!962

5 years agomeson.build: compile with -fno-strict-aliasing obs-knot-resolver-bs4hbr/deployments/697
Vladimír Čunát [Mon, 23 Mar 2020 10:37:28 +0000 (11:37 +0100)] 
meson.build: compile with -fno-strict-aliasing

I tested that older compilers don't refuse this option:
 - gcc 4.8 (as that's the default in CentOS 7)
 - llvm 3.8 (year 2016 is enough, I hope)

5 years agolib/generic/array: fix a strict aliasing problem
Vladimír Čunát [Fri, 20 Mar 2020 16:28:54 +0000 (17:28 +0100)] 
lib/generic/array: fix a strict aliasing problem

The issue here is that `char *` is not allowed to alias
with `anyType *`.  With gcc-10 in Fedora this now started
to cause real problems and loading stats module segfaulted.

Actually I can't see in standard (C11 6.5 par.7) that using `void *`
is guaranteed to be correct, but at least it seems fine with gcc,
and e.g. some standard functions like posix_memalign() use it
in the same "dangerous" way.

5 years agoMerge branch 'ci-add-docker-py' into 'master' obs-knot-dns-deve-jq0xxt/deployments/691 obs-knot-dns-deve-jq0xxt/deployments/693 obs-knot-dns-deve-jq0xxt/deployments/695 obs-knot-resolver-es11k1/deployments/692 obs-knot-resolver-es11k1/deployments/694 obs-knot-resolver-es11k1/deployments/696
Tomas Krizek [Fri, 20 Mar 2020 13:35:45 +0000 (14:35 +0100)] 
Merge branch 'ci-add-docker-py' into 'master'

ci/debian-buster: Add docker-py to docker image

See merge request knot/knot-resolver!961

5 years agoci/debian-buster: Add docker-py to docker image
Lukáš Ježek [Wed, 4 Mar 2020 13:14:40 +0000 (14:14 +0100)] 
ci/debian-buster: Add docker-py to docker image

5 years agoMerge branch 'ci-add-libnghttp2' into 'master' obs-knot-dns-deve-jq0xxt/deployments/687 obs-knot-dns-deve-jq0xxt/deployments/689 obs-knot-resolver-es11k1/deployments/688 obs-knot-resolver-es11k1/deployments/690
Tomas Krizek [Wed, 18 Mar 2020 17:13:00 +0000 (18:13 +0100)] 
Merge branch 'ci-add-libnghttp2' into 'master'

ci/debian-buster: add libnghttp2 to docker image

See merge request knot/knot-resolver!960

5 years agoci/debian-buster: add libnghttp2 to docker image
Tomas Krizek [Wed, 18 Mar 2020 16:15:00 +0000 (17:15 +0100)] 
ci/debian-buster: add libnghttp2 to docker image

5 years agoMerge branch 'fix-leap-distrotest' into 'master' obs-knot-dns-deve-jq0xxt/deployments/685 obs-knot-resolver-es11k1/deployments/686
Tomas Krizek [Tue, 17 Mar 2020 16:22:45 +0000 (17:22 +0100)] 
Merge branch 'fix-leap-distrotest' into 'master'

distro/tests: failure to refresh Leap15 repo is non-critical

See merge request knot/knot-resolver!959

5 years agodistro/tests: failure to refresh Leap15 repo is non-critical
Tomas Krizek [Tue, 17 Mar 2020 15:48:24 +0000 (16:48 +0100)] 
distro/tests: failure to refresh Leap15 repo is non-critical

5 years agodistro/tests: update README
Tomas Krizek [Tue, 17 Mar 2020 15:47:41 +0000 (16:47 +0100)] 
distro/tests: update README

5 years agoMerge branch 'doc-links' into 'master'
Tomas Krizek [Tue, 17 Mar 2020 14:01:17 +0000 (15:01 +0100)] 
Merge branch 'doc-links' into 'master'

doc: fix a broken internal link

See merge request knot/knot-resolver!958

5 years agodoc: fix a broken internal link
Vladimír Čunát [Mon, 16 Mar 2020 18:11:37 +0000 (19:11 +0100)] 
doc: fix a broken internal link

Reported on Turris forums:
https://forum.turris.cz/t/dns-over-tcp-just-a-single-transaction/12003/21

5 years agoMerge !954: docs: better RPZ description (+fix watch) obs-knot-dns-deve-jq0xxt/deployments/669 obs-knot-dns-deve-jq0xxt/deployments/671 obs-knot-dns-deve-jq0xxt/deployments/673 obs-knot-dns-deve-jq0xxt/deployments/675 obs-knot-dns-deve-jq0xxt/deployments/677 obs-knot-dns-deve-jq0xxt/deployments/679 obs-knot-dns-deve-jq0xxt/deployments/681 obs-knot-dns-deve-jq0xxt/deployments/683 obs-knot-resolver-es11k1/deployments/670 obs-knot-resolver-es11k1/deployments/672 obs-knot-resolver-es11k1/deployments/674 obs-knot-resolver-es11k1/deployments/676 obs-knot-resolver-es11k1/deployments/678 obs-knot-resolver-es11k1/deployments/680 obs-knot-resolver-es11k1/deployments/682 obs-knot-resolver-es11k1/deployments/684
Vladimír Čunát [Mon, 9 Mar 2020 17:20:51 +0000 (18:20 +0100)] 
Merge !954: docs: better RPZ description (+fix watch)

5 years agoMerge !956: ci/travis: correctly print http error codes
Vladimír Čunát [Mon, 9 Mar 2020 15:57:53 +0000 (16:57 +0100)] 
Merge !956: ci/travis: correctly print http error codes

5 years agoci/travis: correctly print http error codes
Vladimír Čunát [Mon, 9 Mar 2020 15:50:38 +0000 (16:50 +0100)] 
ci/travis: correctly print http error codes

Thanks to Tomas.

5 years agomodules/policy: polict.rpz() shouldn't watch file when watch=false
Tomas Krizek [Mon, 9 Mar 2020 13:48:02 +0000 (14:48 +0100)] 
modules/policy: polict.rpz() shouldn't watch file when watch=false

5 years agoMerge branch 'compiler-warnings' into 'master'
Petr Špaček [Mon, 9 Mar 2020 13:22:05 +0000 (14:22 +0100)] 
Merge branch 'compiler-warnings' into 'master'

compiler warning improvements

See merge request knot/knot-resolver!952

5 years agodocs: better RPZ description
Petr Špaček [Mon, 9 Mar 2020 13:16:04 +0000 (14:16 +0100)] 
docs: better RPZ description

5 years agoMerge branch 'ci-disable-epel8-check' into 'master'
Tomas Krizek [Mon, 9 Mar 2020 11:01:00 +0000 (12:01 +0100)] 
Merge branch 'ci-disable-epel8-check' into 'master'

ci: disable build check for EPEL8 (still unresolvable)

See merge request knot/knot-resolver!953

5 years agoci: disable build check for EPEL8 (still unresolvable)
Tomas Krizek [Mon, 9 Mar 2020 10:43:23 +0000 (11:43 +0100)] 
ci: disable build check for EPEL8 (still unresolvable)

5 years agomake bad <lua.h> a hard informative error
Vladimír Čunát [Thu, 27 Feb 2020 10:24:00 +0000 (11:24 +0100)] 
make bad <lua.h> a hard informative error

5 years agodaemon/main: -Wformat in info message
Vladimír Čunát [Sun, 22 Dec 2019 09:24:49 +0000 (10:24 +0100)] 
daemon/main: -Wformat in info message

Normally the types are equal, but that's not true e.g.
on 32-bit systems and macOS.

5 years agomeson: turn implicit-function warnings into hard errors
Vladimír Čunát [Tue, 25 Feb 2020 10:24:22 +0000 (11:24 +0100)] 
meson: turn implicit-function warnings into hard errors

I just saw a case with bad luajit includes that linked successfully even
with some of the macros getting this warning.

5 years agodaemon/bindings/net: avoid -Wunused-variable on non-Linux
Vladimír Čunát [Wed, 26 Feb 2020 14:50:07 +0000 (15:50 +0100)] 
daemon/bindings/net: avoid -Wunused-variable on non-Linux

5 years agoMerge !951: NEWS: I forgot to re-classify the last change obs-knot-dns-deve-jq0xxt/deployments/663 obs-knot-dns-deve-jq0xxt/deployments/665 obs-knot-dns-deve-jq0xxt/deployments/667 obs-knot-resolver-es11k1/deployments/664 obs-knot-resolver-es11k1/deployments/666 obs-knot-resolver-es11k1/deployments/668
Vladimír Čunát [Fri, 6 Mar 2020 08:15:48 +0000 (09:15 +0100)] 
Merge !951: NEWS: I forgot to re-classify the last change

5 years agoNEWS: I forgot to re-classify the last change
Vladimír Čunát [Fri, 6 Mar 2020 08:14:22 +0000 (09:14 +0100)] 
NEWS: I forgot to re-classify the last change

5 years agoMerge !949: FreeBSD-related improvements
Vladimír Čunát [Fri, 6 Mar 2020 08:10:14 +0000 (09:10 +0100)] 
Merge !949: FreeBSD-related improvements

Fixes #549

5 years agolib/cache: ignore EINVAL from space pre-allocation
Vladimír Čunát [Wed, 4 Mar 2020 12:55:15 +0000 (13:55 +0100)] 
lib/cache: ignore EINVAL from space pre-allocation

5 years agodaemon/io: extend logging for TCP Fast Open failure
Vladimír Čunát [Wed, 4 Mar 2020 12:47:02 +0000 (13:47 +0100)] 
daemon/io: extend logging for TCP Fast Open failure

In FreeBSD it's disabled by default, causing this error.
I tried disabling it on Linux via sysctl, but that didn't seem
to cause any errors.

5 years agoMerge !950: Fix spelling in module-prefill description obs-knot-dns-deve-jq0xxt/deployments/661 obs-knot-resolver-es11k1/deployments/662
Vladimír Čunát [Thu, 5 Mar 2020 17:47:32 +0000 (18:47 +0100)] 
Merge !950: Fix spelling in module-prefill description

5 years agoFix spelling error in module-prefill description
Peter Keresztes Schmidt [Thu, 5 Mar 2020 15:11:56 +0000 (16:11 +0100)] 
Fix spelling error in module-prefill description

5 years agoMerge !948: README.md: fix broken readthedocs link obs-knot-dns-deve-jq0xxt/deployments/655 obs-knot-dns-deve-jq0xxt/deployments/657 obs-knot-dns-deve-jq0xxt/deployments/659 obs-knot-resolver-es11k1/deployments/656 obs-knot-resolver-es11k1/deployments/658 obs-knot-resolver-es11k1/deployments/660
Vladimír Čunát [Mon, 2 Mar 2020 13:22:53 +0000 (14:22 +0100)] 
Merge !948: README.md: fix broken readthedocs link

5 years agoREADME.md: fix broken readthedocs link
Vladimír Čunát [Mon, 2 Mar 2020 13:10:32 +0000 (14:10 +0100)] 
README.md: fix broken readthedocs link

The nice restructuring had these side effects, unfortunately.

5 years agoMerge branch 'gc-cpu-usage' into 'master'
Tomas Krizek [Mon, 2 Mar 2020 11:02:12 +0000 (12:02 +0100)] 
Merge branch 'gc-cpu-usage' into 'master'

gc: don't re-open cache so often

See merge request knot/knot-resolver!946

5 years agogc: make the log more readable
Vladimír Čunát [Fri, 28 Feb 2020 14:37:23 +0000 (15:37 +0100)] 
gc: make the log more readable

One iteration of GC produces five lines of log (without -DDEBUG);
separating those chunks seems much nicer.

5 years agogc: make state in kr_cache_gc() explicit
Vladimír Čunát [Fri, 28 Feb 2020 14:02:27 +0000 (15:02 +0100)] 
gc: make state in kr_cache_gc() explicit

It really is nicer to work with.
Additionally re-open cache after any GC errors.

5 years agogc: don't re-open cache so often
Vladimír Čunát [Mon, 24 Feb 2020 17:32:26 +0000 (18:32 +0100)] 
gc: don't re-open cache so often

Re-opening the cache causes fsync - every interval (1s by default).
Normally that isn't noticeable, but on encrypted ZFS it causes
high CPU consumption (even when "idle").

grahamc first reported this and Mic92 tested the patch helps. Thanks!
https://gitter.im/CZ-NIC/knot-resolver?at=5e4ea2343ca8a67fb808e349

5 years agoMerge branch 'spdx-cleanup' into 'master' obs-knot-dns-deve-jq0xxt/deployments/645 obs-knot-dns-deve-jq0xxt/deployments/647 obs-knot-dns-deve-jq0xxt/deployments/649 obs-knot-dns-deve-jq0xxt/deployments/651 obs-knot-dns-deve-jq0xxt/deployments/653 obs-knot-resolver-es11k1/deployments/646 obs-knot-resolver-es11k1/deployments/648 obs-knot-resolver-es11k1/deployments/650 obs-knot-resolver-es11k1/deployments/652 obs-knot-resolver-es11k1/deployments/654
Tomas Krizek [Wed, 26 Feb 2020 13:51:51 +0000 (14:51 +0100)] 
Merge branch 'spdx-cleanup' into 'master'

spdx cleanup: fix installation and pkgtests

See merge request knot/knot-resolver!945

5 years agospdx cleanup: fix installation and pkgtests obs-knot-resolver-bs4hbr/deployments/644
Tomas Krizek [Wed, 26 Feb 2020 09:47:12 +0000 (10:47 +0100)] 
spdx cleanup: fix installation and pkgtests

5 years agoMerge !942: license cleanup obs-knot-dns-deve-jq0xxt/deployments/642 obs-knot-resolver-es11k1/deployments/643
Vladimír Čunát [Tue, 25 Feb 2020 08:42:17 +0000 (09:42 +0100)] 
Merge !942: license cleanup

5 years agoautogenerate AUTHORS file to get rid of outdated data
Petr Špaček [Mon, 17 Feb 2020 08:56:48 +0000 (09:56 +0100)] 
autogenerate AUTHORS file to get rid of outdated data

The file can be re-generated using scripts/update-authors.sh.
File .mailmap is used for name canonicalization and fresh list of
authors replaces the old one in AUTHORS file automatically.
Gitlab CI checks its content before release (on branches named release-*).

Marek Vavruša is listed in .mailmap file twice intentionally,
once as CZ.NIC employee and second time as external contributor.

5 years agohttp: document source of bootstrap/bootswatch theme
Petr Špaček [Fri, 21 Feb 2020 15:27:41 +0000 (16:27 +0100)] 
http: document source of bootstrap/bootswatch theme

Source is
git+https://github.com/twbs/bootstrap.git@a78dc3aed640a35914361b837ce24573a0515e19#yeti/bootstrap.min.css
but our version has minor modifications:
- removed link to font file
- minor font and line height adjustments
- added SPDX header

Diffing minimized CSS file is a mess so use something like
$ awk '{gsub(/{|}|;/,"&\n"); print}'
to get something more legible.

5 years agohttp: machine readable license for selectize.js
Petr Špaček [Thu, 20 Feb 2020 14:04:31 +0000 (15:04 +0100)] 
http: machine readable license for selectize.js

5 years agohttp: update selectize.js to match upstream version 0.12.6
Petr Špaček [Thu, 20 Feb 2020 13:51:04 +0000 (14:51 +0100)] 
http: update selectize.js to match upstream version 0.12.6

Originally we used version 0.12.0 but the files in our repo did not
exactly match files in the upstream repo and I could not confirm
if the changes were meaningful or just artifact of source minimization
process.

To remove uncertainity I've updated selectize.js to latest upstream version
0.12.6, did not do any extra CSS minimization, and removed unused file
selectize.min.css.

As far as I can tell it seems to work.

Source:
git+https://github.com/selectize/selectize.js.git@eb0fca364f9bd6864ae197ea58c853f2717052a9

5 years agomark bundled content with SPDX file
Petr Špaček [Tue, 18 Feb 2020 15:43:02 +0000 (16:43 +0100)] 
mark bundled content with SPDX file

The SPDX file contains hand-written metadata about source URL, version,
authors, and license.

There are two missing pieces in HTTP module:
- bootswatch theme - I could not find what theme we ship, maybe it is
  based on one of bootswatch themes but heavily modified
- selectize.js source does not match respective files in upstream but
  contains minor changes

I will deal with these in later commits.

5 years agolicense: add note that some files might have different license
Petr Špaček [Mon, 17 Feb 2020 14:00:32 +0000 (15:00 +0100)] 
license: add note that some files might have different license

5 years agotag license files according to Linux Kernel license identifier syntax
Petr Špaček [Mon, 17 Feb 2020 09:14:44 +0000 (10:14 +0100)] 
tag license files according to Linux Kernel license identifier syntax

https://www.kernel.org/doc/html/latest/process/license-rules.html#license-identifier-syntax

5 years agotreewide: machine readable license for all the rest
Petr Špaček [Fri, 14 Feb 2020 14:25:09 +0000 (15:25 +0100)] 
treewide: machine readable license for all the rest

These files did not have GNU GPL v3 boilderplate in them so
I've added machine readable tag with appropriate license.

5 years agotreewide: machine readable license for GNU GPLv3+ source code
Petr Špaček [Fri, 14 Feb 2020 10:08:59 +0000 (11:08 +0100)] 
treewide: machine readable license for GNU GPLv3+ source code

Long GNU GPLv3 boilderplate was automatically replaced
with machine readable tag.

5 years agocontrib/licenses: machine readable license
Petr Špaček [Fri, 14 Feb 2020 08:15:09 +0000 (09:15 +0100)] 
contrib/licenses: machine readable license

5 years agocontrib/ucw: machine readable license
Petr Špaček [Fri, 14 Feb 2020 08:42:01 +0000 (09:42 +0100)] 
contrib/ucw: machine readable license

5 years agocontrib/murmurhash3: machine readable license
Petr Špaček [Fri, 14 Feb 2020 08:08:02 +0000 (09:08 +0100)] 
contrib/murmurhash3: machine readable license