]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Vladimír Čunát [Sat, 6 May 2023 09:17:22 +0000 (11:17 +0200)]
doc comments: fix two cases of "@param is not found"
Vladimír Čunát [Fri, 28 Apr 2023 09:19:33 +0000 (11:19 +0200)]
lib/rules: add API for loading a zonefile
Two main use cases are actual RPZ file
and also the /local-data/records string (plain RRsets).
The RPZ semantics isn't very close to the specs,
but I believe the practical usability is already better
than our old RPZ implementation, thanks to following CNAMEs.
Vladimír Čunát [Fri, 21 Apr 2023 09:56:46 +0000 (11:56 +0200)]
lib/rules: allow setting TTL in the trivial zones
(internally at least, not in api.h yet)
Vladimír Čunát [Fri, 21 Apr 2023 09:42:35 +0000 (11:42 +0200)]
lib/rules: move more declarations to impl.h
Vladimír Čunát [Mon, 17 Apr 2023 10:14:21 +0000 (12:14 +0200)]
lib/rules: implement NODATA zones
They're a bit weird but RPZ has something close to them.
Vladimír Čunát [Thu, 9 Feb 2023 09:58:13 +0000 (10:58 +0100)]
lib/rules: add NXDOMAIN (pseudo-)zones
It's questionable which SOA owner to use, but some users will surely
prefer NXDOMAINs to empty zones.
Vladimír Čunát [Wed, 4 Jan 2023 10:57:44 +0000 (11:57 +0100)]
ci lint:scan-build: adjust the error count
Merge from master resulted in decrease by one; no idea why.
Vladimír Čunát [Mon, 4 Jul 2022 11:35:50 +0000 (13:35 +0200)]
lib/rules: add usable tagging
Vladimír Čunát [Sun, 3 Jul 2022 13:15:40 +0000 (15:15 +0200)]
lib/rules: add basic view capability
Example:
assert(require('ffi').C.kr_view_insert_action(
'127.0.0.0/24', 'policy.DENY_MSG("message")'
) == 0)
Vladimír Čunát [Sat, 2 Jul 2022 10:49:38 +0000 (12:49 +0200)]
lib/cache: add a "<" search in addition to "<="
Vladimír Čunát [Fri, 1 Jul 2022 14:58:42 +0000 (16:58 +0200)]
lib/rules: refactor kr_rule_local_data_answer() a bit
Vladimír Čunát [Thu, 30 Jun 2022 12:25:21 +0000 (14:25 +0200)]
lib/rules: implement redirect zones
Also switch the localhost rule there, finishing migration
of all special names from the policy module.
Vladimír Čunát [Mon, 8 May 2023 08:25:15 +0000 (10:25 +0200)]
hints: cleanup unused parts of code
Vladimír Čunát [Sat, 11 Jun 2022 07:44:11 +0000 (09:44 +0200)]
hints: implement PTR and imperfect deletion (no .get)
Vladimír Čunát [Sat, 11 Jun 2022 07:37:24 +0000 (09:37 +0200)]
lib/rules: add deletion prototype, commit transactions
Vladimír Čunát [Mon, 7 Feb 2022 12:29:50 +0000 (13:29 +0100)]
hints: implement .use_nodata(true) and .ttl
fixes modules/dns64 test
Vladimír Čunát [Fri, 11 Feb 2022 10:44:00 +0000 (11:44 +0100)]
make policy.PASS also affect the new-policy rules
Vladimír Čunát [Wed, 22 Jul 2020 16:43:04 +0000 (18:43 +0200)]
new policy engine - prototype
Picked up old work, rebase-squashed after many months;
then fixed up a little as needed in this newer version.
(and later many minor fixes got squashed in)
Vladimír Čunát [Wed, 22 Jul 2020 13:53:11 +0000 (15:53 +0200)]
lib/cache: improve comments
See NEWS for 4.0.0: "always send DO+CD flags upstream".
Vladimír Čunát [Wed, 22 Jul 2020 11:25:51 +0000 (13:25 +0200)]
lib/cache pkt_append(): drop unnecessary argument
We already had rank stored in there, in particular
entry2answer() always stored it.
Vladimír Čunát [Wed, 22 Jul 2020 08:29:16 +0000 (10:29 +0200)]
lib/cache: simplify passing qry/req parameters
- kr_layer_t isn't really useful in the inner functions
(it's mainly useful through ->state when returning from layer)
- kr_query seems a little more suitable to pass than kr_request
Vladimír Čunát [Wed, 11 Jan 2023 10:57:04 +0000 (11:57 +0100)]
ci: reduce exceptions specific to manager branch
Vladimír Čunát [Fri, 9 Jun 2023 17:12:39 +0000 (19:12 +0200)]
Create branch 6.0 by merging master and manager
Aleš Mrázek [Fri, 9 Jun 2023 12:26:57 +0000 (14:26 +0200)]
Merge branch 'manager-datamodel-improvements' into 'manager'
manager: datamodel improvements
See merge request knot/knot-resolver!1313
Aleš Mrázek [Fri, 2 Jun 2023 13:31:33 +0000 (15:31 +0200)]
manager: forward config example
Aleš Mrázek [Fri, 2 Jun 2023 13:30:35 +0000 (15:30 +0200)]
manager: datamodel: forward: allow list for pin_sha256
Aleš Mrázek [Thu, 1 Jun 2023 13:02:40 +0000 (15:02 +0200)]
manager: poetry: setuptools added to build requirements
Aleš Mrázek [Wed, 31 May 2023 13:32:22 +0000 (15:32 +0200)]
manager: code formatting
Aleš Mrázek [Fri, 26 May 2023 09:46:15 +0000 (11:46 +0200)]
manager: datamodel: forward render to Lua
Aleš Mrázek [Fri, 5 May 2023 14:19:46 +0000 (16:19 +0200)]
manager: datamodel: local-data/rpz: schema and template
Aleš Mrázek [Wed, 3 May 2023 12:53:36 +0000 (14:53 +0200)]
manager: datamodel: local-data template and macros
Aleš Mrázek [Wed, 3 May 2023 10:30:45 +0000 (12:30 +0200)]
manager: datamodel: use 'boolean' macro in datamodel
Aleš Mrázek [Wed, 3 May 2023 09:12:37 +0000 (11:12 +0200)]
manager: datamodel: templates: macro for boolean values
Aleš Mrázek [Fri, 28 Apr 2023 15:18:59 +0000 (17:18 +0200)]
manager: datamodel: ListOrItem custom generic type
Aleš Mrázek [Fri, 28 Apr 2023 15:17:23 +0000 (17:17 +0200)]
manager: utils: modeling: support for custom generic types
Aleš Mrázek [Wed, 19 Apr 2023 13:47:12 +0000 (15:47 +0200)]
manager: datamodel: all Union[List[T], T] removed
Aleš Mrázek [Wed, 12 Apr 2023 10:26:01 +0000 (12:26 +0200)]
manager: datamodel: local_data render to Lua
Aleš Mrázek [Tue, 11 Apr 2023 14:26:25 +0000 (16:26 +0200)]
manager: datamodel: views render to Lua
Aleš Mrázek [Tue, 11 Apr 2023 13:31:26 +0000 (15:31 +0200)]
manager: poetry: cmd for running manager with 'new-policy' kresd
Aleš Mrázek [Thu, 6 Apr 2023 13:28:50 +0000 (15:28 +0200)]
manager: datamodel: template/macros for local_data_schema
Aleš Mrázek [Wed, 5 Apr 2023 11:21:11 +0000 (13:21 +0200)]
manager: datamodel: template: macro for get_tagset
Aleš Mrázek [Fri, 31 Mar 2023 13:05:15 +0000 (15:05 +0200)]
manager: datamodel: template: view macros
Aleš Mrázek [Fri, 31 Mar 2023 12:56:46 +0000 (14:56 +0200)]
manager: datamodel: template: macro for TAGS_ASSIGN
Aleš Mrázek [Fri, 31 Mar 2023 11:13:52 +0000 (13:13 +0200)]
manager: datamodel: tsig removed from view_schema
Aleš Mrázek [Fri, 31 Mar 2023 09:25:56 +0000 (11:25 +0200)]
manager: datamodel: current valid config added to design notes
Aleš Mrázek [Thu, 30 Mar 2023 21:16:09 +0000 (23:16 +0200)]
manager: datamodel: view_schema update
Aleš Mrázek [Fri, 24 Mar 2023 14:37:01 +0000 (15:37 +0100)]
manager: datamodel: options: 'qname_minimisation' renamed to 'minimize'
Aleš Mrázek [Fri, 24 Mar 2023 14:35:12 +0000 (15:35 +0100)]
manager: datamodel: minor repairs/changes
Aleš Mrázek [Wed, 1 Mar 2023 13:11:07 +0000 (14:11 +0100)]
manager: datamodel: forward: options added
Aleš Mrázek [Wed, 1 Mar 2023 13:07:14 +0000 (14:07 +0100)]
manager: datamodel: stub-zones removed from configuration
Aleš Mrázek [Tue, 21 Feb 2023 16:15:17 +0000 (17:15 +0100)]
manager: configurable cache garbage collector
Aleš Mrázek [Mon, 20 Feb 2023 18:55:47 +0000 (19:55 +0100)]
manager: datamodel: local-data schema added
Aleš Mrázek [Thu, 16 Feb 2023 12:50:30 +0000 (13:50 +0100)]
manager: datamodel: forward schema update
Aleš Mrázek [Thu, 16 Feb 2023 09:22:12 +0000 (10:22 +0100)]
manager: datamodel: types: alias for union of list and single element
Aleš Mrázek [Thu, 16 Feb 2023 09:10:48 +0000 (10:10 +0100)]
manager: datamodel: tags added to views
Vladimír Čunát [Wed, 22 Jun 2022 14:34:41 +0000 (16:34 +0200)]
manager: datamodel: add notes from my brainstorming (WIP)
Aleš Mrázek [Wed, 22 Jun 2022 14:09:25 +0000 (16:09 +0200)]
manager: datamodel: changes in stub and forward zone schemas
Vladimír Čunát [Thu, 8 Jun 2023 06:09:15 +0000 (08:09 +0200)]
Merge !1404: tests/dnstap: let Go handle its transitive dependencies
Oto Šťáva [Wed, 7 Jun 2023 13:04:10 +0000 (15:04 +0200)]
tests/dnstap: let Go handle its transitive dependencies
Dependabot reported that we have some vulnerable dependencies. The
problem is that the ones it wants to bump to do not support older Go
versions, which we need to use due to some distros not having the most
recent Go packages available.
The `go.sum` file contains the outdated ones (because I tried with an
older Go), but as far as I can tell, from Go docs and other places, it
is actually not a lockfile, so newer Go should update the packages
regardless of what is in `go.sum`.
Vladimír Čunát [Wed, 7 Jun 2023 11:36:57 +0000 (13:36 +0200)]
Merge !1403: tests, ci: fix and reintroduce dnstap tests + nits
Oto Šťáva [Wed, 7 Jun 2023 06:15:41 +0000 (08:15 +0200)]
tests/pytests: adapt to new pylint
New version of pylint removed the disabled `bad-continuation` check. It
also added a parens check that we were violating in
`test_random_close.py`, which is now fixed as well.
Oto Šťáva [Wed, 7 Jun 2023 06:09:56 +0000 (08:09 +0200)]
ci/images/README: add KNOT_BRANCH explanation
Oto Šťáva [Tue, 6 Jun 2023 12:50:20 +0000 (14:50 +0200)]
ci: reintroduce Go tests into the CI
Aleš Mrázek [Tue, 6 Jun 2023 14:42:01 +0000 (16:42 +0200)]
Merge branch 'manager-docs' into 'manager'
manager: some parts of documentation for version 6
See merge request knot/knot-resolver!1377
Oto Šťáva [Tue, 6 Jun 2023 08:10:53 +0000 (10:10 +0200)]
tests/dnstap: fix for Go 1.19 (and possibly others)
Aleš Mrázek [Mon, 5 Jun 2023 13:33:21 +0000 (15:33 +0200)]
manager: ignore false positive pylint errors
Vasek Sraier [Mon, 6 Mar 2023 19:00:44 +0000 (20:00 +0100)]
doc: deployment
Vasek Sraier [Mon, 6 Mar 2023 10:56:55 +0000 (11:56 +0100)]
doc: deployment: manual and fixes
Vasek Sraier [Sun, 5 Mar 2023 22:35:00 +0000 (23:35 +0100)]
doc: deployment systemd and general structuring
Vasek Sraier [Fri, 3 Mar 2023 15:05:26 +0000 (16:05 +0100)]
doc: docker deployment
Aleš Mrázek [Wed, 1 Mar 2023 15:19:52 +0000 (16:19 +0100)]
Delete gettingstarted-intro.rst
Aleš Mrázek [Wed, 1 Mar 2023 15:16:04 +0000 (16:16 +0100)]
doc/README.md: update about requirements and building
Vladimír Čunát [Mon, 27 Feb 2023 12:23:44 +0000 (13:23 +0100)]
doc/architecture-gc.rst: describe how GC operates
The current code is really simple, so a whole summary fits easily.
Aleš Mrázek [Tue, 14 Feb 2023 23:40:24 +0000 (00:40 +0100)]
doc: gettingstarted-config: config examples added
Aleš Mrázek [Tue, 14 Feb 2023 01:11:03 +0000 (02:11 +0100)]
doc: gettingstarted: minor modifications
- startup: link to Usage without the manager
- config: json-schema mention moved to config-overview
Vasek Sraier [Mon, 13 Feb 2023 22:04:47 +0000 (23:04 +0100)]
doc: initial drafts of internal architecture explainers
Vasek Sraier [Mon, 13 Feb 2023 13:11:02 +0000 (14:11 +0100)]
docs: attempt at improving overall structure of the documentation (reorg, no new text)
Aleš Mrázek [Sun, 12 Feb 2023 19:30:02 +0000 (20:30 +0100)]
doc: legacy chapter removed
- legacy approach moved to Use Cases chapter
- legacy approach renamed to Usage without the manager
Aleš Mrázek [Fri, 10 Feb 2023 22:05:05 +0000 (23:05 +0100)]
doc: gettingstarted: some updates and changes
Aleš Mrázek [Fri, 10 Feb 2023 21:59:40 +0000 (22:59 +0100)]
doc: main page intro update
Aleš Mrázek [Tue, 31 Jan 2023 14:04:54 +0000 (15:04 +0100)]
doc: legacy chapter created
Aleš Mrázek [Wed, 25 Jan 2023 13:07:54 +0000 (14:07 +0100)]
doc: gettingstarted: some updates
- installation: link to build from source
- startup: link to run without systemd
Aleš Mrázek [Wed, 25 Jan 2023 12:23:28 +0000 (13:23 +0100)]
doc: gettingstarted: config section update
Added example of network interfaces configuration.
Aleš Mrázek [Mon, 23 Jan 2023 19:05:49 +0000 (20:05 +0100)]
doc: upgrading-to-6 moved to developers chapter
Vasek Sraier [Sun, 22 Jan 2023 08:53:34 +0000 (09:53 +0100)]
DROP: automatic installation to gitlab pages instead of manual
Aleš Mrázek [Tue, 30 May 2023 13:58:41 +0000 (15:58 +0200)]
Merge branch 'manager-python3.11' into 'manager'
manager: python and poetry upgrade
See merge request knot/knot-resolver!1400
Aleš Mrázek [Fri, 19 May 2023 14:12:58 +0000 (16:12 +0200)]
manager: lint: satisfy newer pylint
Aleš Mrázek [Fri, 19 May 2023 14:07:38 +0000 (16:07 +0200)]
ci/images/manager: upgrade to fedora38 with python3.11
Aleš Mrázek [Thu, 18 May 2023 23:56:12 +0000 (01:56 +0200)]
manager: ci: unit tests for python3.11
Aleš Mrázek [Thu, 18 May 2023 23:53:45 +0000 (01:53 +0200)]
manager: poetry: python3.11
Vladimír Čunát [Tue, 30 May 2023 07:19:19 +0000 (09:19 +0200)]
Merge !1401: lib/cache pkt_renew(): fix an edge-case bug
Vladimír Čunát [Mon, 29 May 2023 11:59:00 +0000 (13:59 +0200)]
lib/cache pkt_renew(): fix an edge-case bug
It could happen that this condition didn't get triggered,
but the structures weren't completely clear. In particular,
the current section could be past KNOT_ANSWER already.
Let's be more conservative here; pkt_recycle() shouldn't be expensive.
I'm not sure why I only ran into this on the new-policy branch,
but it really seems like bug here on master already.
Vladimír Čunát [Mon, 29 May 2023 08:02:15 +0000 (10:02 +0200)]
Merge !1395: systemd/knot-resolver.service.in tweaks
Vladimír Čunát [Thu, 30 Mar 2023 12:25:43 +0000 (14:25 +0200)]
systemd/knot-resolver.service.in: generalize paths
I can't see why not. Also avoid unnecessary /usr/bin/env
kresd doesn't work well without `ninja install` anyway.
bindir: maybe we should install the python binaries into sbin instead.
We're also being slightly inconsistent - allowing to override some
directories by meson but not respecting it for the python stuff.
Vasek Sraier [Mon, 6 Mar 2023 18:23:57 +0000 (19:23 +0100)]
manager: update systemd service file with knot-resolver script and kresctl reload
Vasek Sraier [Mon, 6 Mar 2023 10:20:58 +0000 (11:20 +0100)]
manager: knot-resolver command
Vladimír Čunát [Mon, 22 May 2023 12:35:37 +0000 (14:35 +0200)]
Merge !1399: Initial v6 alpha release 6.0.0a1
Jakub Ružička [Thu, 18 May 2023 11:12:47 +0000 (13:12 +0200)]
Initial v6 alpha release 6.0.0a1
6.0.x versions are dedicated to v6 alpha cycle.
Jakub Ružička [Thu, 18 May 2023 11:25:23 +0000 (13:25 +0200)]
NEWS: add 6.0.0 alpha entry
Also sync NEWS with latest release 5.6.0 for consistency.
Vladimír Čunát [Wed, 10 May 2023 09:54:21 +0000 (11:54 +0200)]
Merge !1397: hints docs: explain root hints better