]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
3 years agodatamodel: templates: moved to 'templates' dir
Aleš [Thu, 25 Nov 2021 23:05:44 +0000 (00:05 +0100)] 
datamodel: templates: moved to 'templates' dir
- dir path added to jinja2 loader

3 years agodatamodel: replacement of some List with Dict
Aleš [Wed, 24 Nov 2021 14:53:25 +0000 (15:53 +0100)] 
datamodel: replacement of some List with Dict
- in some cases with keys this is advantageous
- implemented __hash__ method for 'DomainName ' custom type
- changes in lua_template.j2

3 years agodatamodel: policy: schema for custom answer
Aleš [Wed, 24 Nov 2021 13:35:01 +0000 (14:35 +0100)] 
datamodel: policy: schema for custom answer

3 years agodatamodel: policy: use Dict instead of List
Aleš [Tue, 23 Nov 2021 15:13:28 +0000 (16:13 +0100)] 
datamodel: policy: use Dict instead of List

3 years agodatamodel: policy: section created
Aleš [Mon, 22 Nov 2021 18:11:50 +0000 (19:11 +0100)] 
datamodel: policy: section created

3 years agodatamodel: forward_zone: section created
Aleš [Fri, 19 Nov 2021 15:10:33 +0000 (16:10 +0100)] 
datamodel: forward_zone: section created

3 years agodatamodel: stub_zones: section created
Aleš [Thu, 18 Nov 2021 16:35:54 +0000 (17:35 +0100)] 
datamodel: stub_zones:  section created

3 years agodatamodel: views: section created
Aleš [Thu, 18 Nov 2021 16:21:22 +0000 (17:21 +0100)] 
datamodel: views: section created

3 years agoutils: modelling: json schema includes attribute descriptions
Vasek Sraier [Thu, 9 Dec 2021 16:10:49 +0000 (17:10 +0100)] 
utils: modelling: json schema includes attribute descriptions

related to #17

3 years agomanager: configurable logging
Vasek Sraier [Wed, 1 Dec 2021 16:48:08 +0000 (17:48 +0100)] 
manager: configurable logging

- on startup, we are logging into a memory buffer (flushed to stderr in case of an error)
- after loading the first configuration file, we reconfigure logging such that it follows the config

closes #25

3 years agoMerge branch 'deny-some-config-changes' into 'master'
Vaclav Sraier [Tue, 23 Nov 2021 12:45:45 +0000 (13:45 +0100)] 
Merge branch 'deny-some-config-changes' into 'master'

block dangerous dynamic configuration changes & fix relative path resolution

Closes #26 and #27

See merge request knot/knot-resolver-manager!15

3 years agoci: attempt to fix tests not running due to problems with imports
Vasek Sraier [Thu, 18 Nov 2021 21:33:05 +0000 (22:33 +0100)] 
ci: attempt to fix tests not running due to problems with imports

3 years agotests: unit: fixed broken tests after refactoring of Path object
Vasek Sraier [Tue, 23 Nov 2021 12:06:02 +0000 (13:06 +0100)] 
tests: unit: fixed broken tests after refactoring of Path object

3 years agorepository cleanup
Vasek Sraier [Thu, 18 Nov 2021 16:44:03 +0000 (17:44 +0100)] 
repository cleanup

- unified all tests under tests/ directory
- removed unused distro/

3 years agomanager: dbus: fix systemd property WorkingDirectory for GC
Vasek Sraier [Tue, 23 Nov 2021 12:04:32 +0000 (13:04 +0100)] 
manager: dbus: fix systemd property WorkingDirectory for GC

3 years agoMerge branch 'manager-logging-level' into 'master'
Aleš Mrázek [Thu, 18 Nov 2021 11:36:36 +0000 (12:36 +0100)] 
Merge branch 'manager-logging-level' into 'master'

manager: logging levels unification

Closes #24

See merge request knot/knot-resolver-manager!14

3 years agomanager: block dynamic changes of API address
Vasek Sraier [Tue, 23 Nov 2021 12:04:14 +0000 (13:04 +0100)] 
manager: block dynamic changes of API address

3 years agodatamodel: types: added new custom types
Aleš [Tue, 16 Nov 2021 10:10:34 +0000 (11:10 +0100)] 
datamodel: types: added new custom types
- DomainName
- IPAddressPort

3 years agomanager: logging levels unification
Aleš Mrázek [Thu, 18 Nov 2021 11:36:36 +0000 (12:36 +0100)] 
manager: logging levels unification

3 years agomanager: fixed handling of rundir configuration during initialization
Vasek Sraier [Tue, 23 Nov 2021 11:46:01 +0000 (12:46 +0100)] 
manager: fixed handling of rundir configuration during initialization

fixes #26

3 years agoMerge branch 'datamodel-network' into 'master'
Aleš Mrázek [Mon, 15 Nov 2021 12:02:38 +0000 (13:02 +0100)] 
Merge branch 'datamodel-network' into 'master'

datamodel: network: section completed

See merge request knot/knot-resolver-manager!13

3 years agomanager initialization: verify rundir existance and block changes
Vasek Sraier [Thu, 18 Nov 2021 17:46:36 +0000 (18:46 +0100)] 
manager initialization: verify rundir existance and block changes

related to #26 and #27

3 years agopackaging: unified package creation script, CI for Fedora
Vasek Sraier [Sun, 14 Nov 2021 00:48:56 +0000 (01:48 +0100)] 
packaging: unified package creation script, CI for Fedora

3 years agodatamodel: network: section completed
Aleš Mrázek [Mon, 15 Nov 2021 12:02:38 +0000 (13:02 +0100)] 
datamodel: network: section completed

3 years agoscripts: scripts to build fedora package
Vasek Sraier [Thu, 11 Nov 2021 23:19:53 +0000 (00:19 +0100)] 
scripts: scripts to build fedora package

3 years agodependencies: downgraded requirements of typing extensions
Vasek Sraier [Thu, 11 Nov 2021 23:14:13 +0000 (00:14 +0100)] 
dependencies: downgraded requirements of typing extensions

3 years agomanager: systemd: improved error message
Vasek Sraier [Fri, 5 Nov 2021 12:33:15 +0000 (13:33 +0100)] 
manager: systemd: improved error message

3 years agofix formatting
Vasek Sraier [Fri, 5 Nov 2021 12:27:14 +0000 (13:27 +0100)] 
fix formatting

3 years agoconfig: fixed default config listen address
Vasek Sraier [Fri, 5 Nov 2021 12:20:20 +0000 (13:20 +0100)] 
config: fixed default config listen address

3 years agomanager: systemd: when we fail to start service, log the properties
Vasek Sraier [Fri, 5 Nov 2021 12:10:08 +0000 (13:10 +0100)] 
manager: systemd: when we fail to start service, log the properties

3 years agoconstants: replaced static executable paths with $PATH lookup
Vasek Sraier [Fri, 5 Nov 2021 12:00:13 +0000 (13:00 +0100)] 
constants: replaced static executable paths with $PATH lookup

3 years agoconfig: created separate dev config
Vasek Sraier [Fri, 5 Nov 2021 11:34:52 +0000 (12:34 +0100)] 
config: created separate dev config

3 years agodefault config: updated to match Debian
Vasek Sraier [Fri, 5 Nov 2021 11:27:31 +0000 (12:27 +0100)] 
default config: updated to match Debian

3 years agopackaging: fixed default systemd service file
Vasek Sraier [Fri, 5 Nov 2021 11:17:11 +0000 (12:17 +0100)] 
packaging: fixed default systemd service file

3 years agofixed code issues reported by static analysis
Vasek Sraier [Wed, 3 Nov 2021 12:43:58 +0000 (13:43 +0100)] 
fixed code issues reported by static analysis

3 years agojson schema: added default values and doc strings
Vasek Sraier [Wed, 3 Nov 2021 12:41:02 +0000 (13:41 +0100)] 
json schema: added default values and doc strings

3 years agotooling: disabled duplicate code warning for imports
Vasek Sraier [Wed, 3 Nov 2021 11:14:53 +0000 (12:14 +0100)] 
tooling: disabled duplicate code warning for imports

3 years agobug fix of systemd startup
Vasek Sraier [Wed, 3 Nov 2021 11:06:36 +0000 (12:06 +0100)] 
bug fix of systemd startup

Cache service was not being loaded as running due to a name mismatch.

3 years agoweb: added convenience JSON schema viewer redirect
Vasek Sraier [Wed, 3 Nov 2021 11:03:20 +0000 (12:03 +0100)] 
web: added convenience JSON schema viewer redirect

3 years agobug fixes
Vasek Sraier [Wed, 3 Nov 2021 11:02:27 +0000 (12:02 +0100)] 
bug fixes

- fixed failure to start on python 3.9
- fixed issues with starting with supervisord

3 years agoreadme: typo fix
Vasek Sraier [Fri, 29 Oct 2021 09:25:55 +0000 (11:25 +0200)] 
readme: typo fix

3 years agoreadme: added short description of knot resolver
Vasek Sraier [Fri, 29 Oct 2021 09:23:13 +0000 (11:23 +0200)] 
readme: added short description of knot resolver

3 years agoci: fixed artefacts path
Vasek Sraier [Thu, 28 Oct 2021 16:45:11 +0000 (18:45 +0200)] 
ci: fixed artefacts path

3 years agoci: include srcpkgs
Vasek Sraier [Thu, 28 Oct 2021 16:33:39 +0000 (18:33 +0200)] 
ci: include srcpkgs

3 years agoproject management: fix issues with updated type checker, moved more config to pyproj...
Vasek Sraier [Thu, 28 Oct 2021 14:22:09 +0000 (16:22 +0200)] 
project management: fix issues with updated type checker, moved more config to pyproject.toml

3 years agoci: debian packaging
Vasek Sraier [Thu, 28 Oct 2021 13:54:56 +0000 (15:54 +0200)] 
ci: debian packaging

3 years agosetup.py generation script: removed upper bounds from dependency versions
Vasek Sraier [Thu, 28 Oct 2021 08:43:30 +0000 (10:43 +0200)] 
setup.py generation script: removed upper bounds from dependency versions

3 years agodependencies: added typing_extensions to project dependencies
Vasek Sraier [Wed, 27 Oct 2021 21:37:01 +0000 (23:37 +0200)] 
dependencies: added typing_extensions to project dependencies

3 years agoutils: modelling: fix type processing between different python versions
Vasek Sraier [Wed, 27 Oct 2021 15:14:35 +0000 (17:14 +0200)] 
utils: modelling: fix type processing between different python versions

3 years agoadded autogenerated setup.py
Vasek Sraier [Wed, 27 Oct 2021 09:57:06 +0000 (11:57 +0200)] 
added autogenerated setup.py

3 years agosystemd: changed the default name of garbage collector service due to collision with...
Vasek Sraier [Fri, 22 Oct 2021 16:30:31 +0000 (18:30 +0200)] 
systemd: changed the default name of garbage collector service due to collision with existing unit

3 years agogeneral config handling overhaul
Vasek Sraier [Fri, 22 Oct 2021 16:09:08 +0000 (18:09 +0200)] 
general config handling overhaul

* separated config storage from kres_manager.py into config_store.py
* changed constants.py into a list of functions based on config, instead of actual constants
* each subprocess gets its own configuration file, which stays on the disk as long as the process is running
* properly changing working directory on startup
* split config changes into 2 stop process - verification and application
* allowed for any part of the system to verify config changes
* removed support for systemd non-transient services

3 years agopoetry: removed obsolete dependencies, updated packages
Vasek Sraier [Fri, 22 Oct 2021 12:10:54 +0000 (14:10 +0200)] 
poetry: removed obsolete dependencies, updated packages

3 years agosimple custom implementation of dataclasses in order to prevent dependence on the...
Vasek Sraier [Fri, 22 Oct 2021 12:09:25 +0000 (14:09 +0200)] 
simple custom implementation of dataclasses in order to prevent dependence on the backport library

3 years agofixed tests
Vasek Sraier [Mon, 18 Oct 2021 11:42:45 +0000 (13:42 +0200)] 
fixed tests

3 years agoutils: modelling: added basic support for generating JSON schema
Vasek Sraier [Mon, 18 Oct 2021 11:36:19 +0000 (13:36 +0200)] 
utils: modelling: added basic support for generating JSON schema

3 years agokres manager: removed left over variables
Vasek Sraier [Sun, 10 Oct 2021 18:53:36 +0000 (20:53 +0200)] 
kres manager: removed left over variables

3 years agotypo fix
Vasek Sraier [Tue, 5 Oct 2021 22:15:51 +0000 (00:15 +0200)] 
typo fix

3 years agofix: formatting and linter errors caused by the previous commit
Vasek Sraier [Sun, 3 Oct 2021 13:07:58 +0000 (15:07 +0200)] 
fix: formatting and linter errors caused by the previous commit

3 years agocli client: added static hints + bug fix of id assignment
Vasek Sraier [Sun, 3 Oct 2021 13:02:50 +0000 (15:02 +0200)] 
cli client: added static hints   + bug fix of id assignment

3 years agodirectory structure: removed unused config directory
Vasek Sraier [Fri, 1 Oct 2021 21:00:19 +0000 (23:00 +0200)] 
directory structure: removed unused config directory

3 years agoserver: dynamic configuration of listen address and log level, refactoring of startup
Vasek Sraier [Fri, 1 Oct 2021 20:39:16 +0000 (22:39 +0200)] 
server: dynamic configuration of listen address and log level, refactoring of startup

3 years agodatamodel: static-hints section added
Aleš [Fri, 1 Oct 2021 12:12:40 +0000 (14:12 +0200)] 
datamodel: static-hints section added

3 years agodatamodel: logging section added
Aleš [Thu, 30 Sep 2021 10:12:10 +0000 (12:12 +0200)] 
datamodel: logging section added

3 years agodatamodel: cache section added
Aleš [Wed, 29 Sep 2021 20:08:10 +0000 (22:08 +0200)] 
datamodel: cache section added

3 years agonaming: tests: datamodel: names corresponding to schema modules
Aleš [Wed, 22 Sep 2021 15:07:36 +0000 (17:07 +0200)] 
naming: tests: datamodel: names corresponding to schema modules

3 years agotests: datamodel: removed unnecessary tests
Aleš [Wed, 22 Sep 2021 15:01:02 +0000 (17:01 +0200)] 
tests: datamodel: removed unnecessary tests

3 years agonaming: datamodel: added '_schema' suffix to modules names
Aleš [Wed, 22 Sep 2021 14:53:34 +0000 (16:53 +0200)] 
naming: datamodel: added '_schema' suffix to modules names

3 years agonaming: added 'Schema' suffix to all classes derived from 'SchemaNode'
Aleš [Wed, 22 Sep 2021 14:42:16 +0000 (16:42 +0200)] 
naming: added 'Schema' suffix to all classes derived from 'SchemaNode'

3 years agoMerge branch 'configuration-datamodel' into 'master'
Vaclav Sraier [Wed, 22 Sep 2021 10:57:42 +0000 (12:57 +0200)] 
Merge branch 'configuration-datamodel' into 'master'

Modelling and configuration schema improvements

Closes #21

See merge request knot/knot-resolver-manager!12

3 years agointegration test: terminate the manager when it fails to start in time
Vasek Sraier [Thu, 9 Sep 2021 13:19:48 +0000 (15:19 +0200)] 
integration test: terminate the manager when it fails to start in time

3 years agofixup! utils: modelling: SchemaNode documentation
Vasek Sraier [Wed, 22 Sep 2021 10:48:28 +0000 (12:48 +0200)] 
fixup! utils: modelling: SchemaNode documentation

3 years agoutils: modelling: SchemaNode documentation
Vasek Sraier [Wed, 22 Sep 2021 10:44:33 +0000 (12:44 +0200)] 
utils: modelling: SchemaNode documentation

3 years agoMerge branch 'unified_schema_node' into 'configuration-datamodel'
Aleš Mrázek [Wed, 22 Sep 2021 09:13:49 +0000 (11:13 +0200)] 
Merge branch 'unified_schema_node' into 'configuration-datamodel'

Unified data modeling tools

See merge request knot/knot-resolver-manager!11

3 years agodatamodel: server: webmgmt subsection added
Aleš [Tue, 14 Sep 2021 10:41:27 +0000 (12:41 +0200)] 
datamodel: server: webmgmt subsection added

3 years agodatamodel: lua template works with 'listen', config file fix
Aleš [Wed, 22 Sep 2021 09:03:40 +0000 (11:03 +0200)] 
datamodel: lua template works with 'listen', config file fix

3 years agodatamodel: types: interface and port combination added to Listen
Aleš [Mon, 13 Sep 2021 14:41:58 +0000 (16:41 +0200)] 
datamodel: types:  interface and port combination added to Listen

3 years agoutils: modelling: improved error messages
Vasek Sraier [Wed, 22 Sep 2021 08:51:10 +0000 (10:51 +0200)] 
utils: modelling: improved error messages

3 years agoutils: modelling: self object in transformation functions cannot be accessed
Vasek Sraier [Wed, 22 Sep 2021 08:46:14 +0000 (10:46 +0200)] 
utils: modelling: self object in transformation functions cannot be accessed

3 years agodatamodel: edit schema nodes to work with new modelling utils
Aleš [Wed, 22 Sep 2021 08:17:50 +0000 (10:17 +0200)] 
datamodel: edit schema nodes to work with new modelling utils

3 years agoutils: modelling: matching types in obj type validation
Aleš [Tue, 21 Sep 2021 23:37:41 +0000 (01:37 +0200)] 
utils: modelling: matching types in obj type validation
- when obj and expected type match during type validation, full obj is returned

3 years agodatamodel: types: SizeUnit: added method to return value in bytes
Aleš [Tue, 21 Sep 2021 18:58:34 +0000 (20:58 +0200)] 
datamodel: types: SizeUnit: added method to return value in bytes

3 years agoutils: modelling: error message when both transformation function and default value...
Vasek Sraier [Tue, 21 Sep 2021 14:12:06 +0000 (16:12 +0200)] 
utils: modelling: error message when both transformation function and default value set at the same time

After a discussion, we decided that this situation does not make any sense and we don't
know, how the program should behave. Therefore, we just disallow it.

3 years agotests: datamodel: dns64, dnssec defaults/conversion check
Aleš [Tue, 21 Sep 2021 10:40:35 +0000 (12:40 +0200)] 
tests: datamodel: dns64, dnssec defaults/conversion check

3 years agoutils: modelling: default fields assigned before everything else, conversion function...
Vasek Sraier [Tue, 21 Sep 2021 07:59:13 +0000 (09:59 +0200)] 
utils: modelling: default fields assigned before everything else, conversion functions called last

3 years agoutils: modelling: move conversion from between '-' and '_' to _ parsing step (from...
Vasek Sraier [Mon, 20 Sep 2021 12:29:53 +0000 (14:29 +0200)] 
utils: modelling: move conversion from between '-' and '_' to _ parsing step (from modelling)

3 years agotests: utils: rewrite tests for new modeling utils
Aleš [Mon, 20 Sep 2021 11:36:28 +0000 (13:36 +0200)] 
tests: utils: rewrite tests for new modeling utils

3 years agoutils: separation of modelling and parsing tools, transition of the whole project
Vasek Sraier [Mon, 20 Sep 2021 10:34:00 +0000 (12:34 +0200)] 
utils: separation of modelling and parsing tools, transition of the whole project

3 years agoutils: renamed data_parser_validator module to modelling
Vasek Sraier [Thu, 16 Sep 2021 20:13:25 +0000 (22:13 +0200)] 
utils: renamed data_parser_validator module to modelling

3 years agoutils: unified data modeling tools into one SchemaNode class
Vasek Sraier [Thu, 16 Sep 2021 13:29:30 +0000 (15:29 +0200)] 
utils: unified data modeling tools into one SchemaNode class

3 years agosystemd: resetting failed kresd units on startup
Vasek Sraier [Sun, 5 Sep 2021 18:41:55 +0000 (20:41 +0200)] 
systemd: resetting failed kresd units on startup

fix #16

3 years agodatamodel: empty '_validate' methods removed
Aleš [Mon, 13 Sep 2021 10:47:11 +0000 (12:47 +0200)] 
datamodel: empty '_validate' methods removed

3 years agoMerge branch 'data-parser-and-validator-reimplementation' into 'master'
Aleš Mrázek [Fri, 3 Sep 2021 12:11:52 +0000 (14:11 +0200)] 
Merge branch 'data-parser-and-validator-reimplementation' into 'master'

utils: data parser and validator reimplementation

Closes #13

See merge request knot/knot-resolver-manager!8

3 years agoutils: validator: implementation of '_validate' method is not required
Aleš [Mon, 13 Sep 2021 10:40:19 +0000 (12:40 +0200)] 
utils: validator: implementation of  '_validate' method is not required

3 years agoMerge branch 'failed_worker_notifications' into 'master'
Vaclav Sraier [Sat, 21 Aug 2021 14:29:25 +0000 (14:29 +0000)] 
Merge branch 'failed_worker_notifications' into 'master'

Failed worker notifications

See merge request knot/knot-resolver-manager!5

3 years agoutils: data parser and validator reimplementation
Aleš Mrázek [Fri, 3 Sep 2021 12:11:51 +0000 (14:11 +0200)] 
utils: data parser and validator reimplementation

3 years agodatamodel: dns64: change of prefix type
Aleš [Mon, 13 Sep 2021 10:19:38 +0000 (12:19 +0200)] 
datamodel: dns64: change of prefix type

3 years agoRevert "systemd: termination notifications; pretty ids improvement"
Vasek Sraier [Wed, 21 Jul 2021 21:00:59 +0000 (23:00 +0200)] 
Revert "systemd: termination notifications; pretty ids improvement"

This reverts commit 0e36c7ff19c680ee9a0098745e7f9fe9c4920a67. Integration tests fail
and I don't know why. The commit is moved onto a separate branch and the work on it
will continue there, until it works properly.

3 years agoFailed worker notifications
Vaclav Sraier [Sat, 21 Aug 2021 14:29:25 +0000 (14:29 +0000)] 
Failed worker notifications

3 years agoutils: parser/validator: passing of custom values from one first tree to another
Vasek Sraier [Mon, 13 Sep 2021 09:20:21 +0000 (11:20 +0200)] 
utils: parser/validator: passing of custom values from one first tree to another