]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
4 years agomanager: improve handling of max-workers configuration
Vasek Sraier [Fri, 5 Aug 2022 13:43:38 +0000 (15:43 +0200)] 
manager: improve handling of max-workers configuration

- changed default to 10*#cpus or 256 if not possible
- fixed bug that would prevent us from running the limiting number of workers

closes #753

4 years agoMerge branch 'master' into manager
Vasek Sraier [Tue, 2 Aug 2022 10:48:48 +0000 (12:48 +0200)] 
Merge branch 'master' into manager

4 years agoMerge branch 'manager-integration-without-submodule' into 'manager'
Vaclav Sraier [Tue, 2 Aug 2022 10:03:12 +0000 (12:03 +0200)] 
Merge branch 'manager-integration-without-submodule' into 'manager'

manager: packaging

See merge request knot/knot-resolver!1248

4 years agodistro: drop tomas.krizek
Vladimír Čunát [Mon, 1 Aug 2022 12:32:52 +0000 (14:32 +0200)] 
distro: drop tomas.krizek

The address won't work anymore, and Jakub says this field isn't needed.

4 years agolib/utils: drop long unused parts
Vladimír Čunát [Fri, 1 Jul 2022 08:33:59 +0000 (10:33 +0200)] 
lib/utils: drop long unused parts

4 years agodrop unused #include lines
Vladimír Čunát [Fri, 1 Jul 2022 07:52:29 +0000 (09:52 +0200)] 
drop unused #include lines

4 years agomodules/dnstap nit: silence a lint:tidy warning
Vladimír Čunát [Wed, 1 Dec 2021 10:36:10 +0000 (11:36 +0100)] 
modules/dnstap nit: silence a lint:tidy warning

https://gitlab.nic.cz/knot/knot-resolver/-/jobs/635837#L219

4 years agoci: packaging - removed ubuntu 21.10 (EOL soon) and Debian 10 (failing, ignoring...
Vasek Sraier [Sun, 31 Jul 2022 15:00:36 +0000 (17:00 +0200)] 
ci: packaging - removed ubuntu 21.10 (EOL soon) and Debian 10 (failing, ignoring for now)

4 years agodeb packaging: reenable PIE in hardening options
Vladimír Čunát [Mon, 25 Jul 2022 11:35:15 +0000 (13:35 +0200)] 
deb packaging: reenable PIE in hardening options

Downstream did this years ago:
https://salsa.debian.org/dns-team/knot-resolver/-/commit/1f3428a62aa59f269e95abf51836db2112ef4d29
otherwise we have issues with building python parts.

4 years agoci: use apkg from PyPI, not manually from git
Vasek Sraier [Thu, 21 Jul 2022 16:50:08 +0000 (18:50 +0200)] 
ci: use apkg from PyPI, not manually from git

4 years agorpm packaging: opensuse dependencies
Vasek Sraier [Mon, 18 Jul 2022 09:01:15 +0000 (11:01 +0200)] 
rpm packaging: opensuse dependencies

4 years agoci pkgtest: added more distros and removed old ones
Vasek Sraier [Mon, 18 Jul 2022 08:38:08 +0000 (10:38 +0200)] 
ci pkgtest: added more distros and removed old ones

4 years agomanager: supervisord plugin for creating PIPE to stdout
Vasek Sraier [Tue, 12 Jul 2022 13:46:27 +0000 (15:46 +0200)] 
manager: supervisord plugin for creating PIPE to stdout

4 years agomanager: supervisord plugins: using sd_notify to report state upstream
Vasek Sraier [Tue, 12 Jul 2022 11:33:51 +0000 (13:33 +0200)] 
manager: supervisord plugins: using sd_notify to report state upstream

4 years agopackaging: systemd service Type=notify did not work with supervisord
Vasek Sraier [Tue, 12 Jul 2022 10:56:03 +0000 (12:56 +0200)] 
packaging: systemd service Type=notify did not work with supervisord

4 years agopackaging: default package config update
Vasek Sraier [Mon, 11 Jul 2022 09:52:09 +0000 (11:52 +0200)] 
packaging: default package config update

4 years agodependencies: added supervisord to proper dependencies (moved from dev dependencies)
Vasek Sraier [Mon, 11 Jul 2022 09:22:10 +0000 (11:22 +0200)] 
dependencies: added supervisord to proper dependencies (moved from dev dependencies)

4 years agopackaging: missing supervisord dependendency in rocky
Vasek Sraier [Mon, 11 Jul 2022 09:13:11 +0000 (11:13 +0200)] 
packaging: missing supervisord dependendency in rocky

4 years agopackaging: rpm python install directory shenanigans
Vasek Sraier [Mon, 11 Jul 2022 08:50:31 +0000 (10:50 +0200)] 
packaging: rpm python install directory shenanigans

4 years agomanager: fix bug in ignore pattern for black in pyproject.toml
Vasek Sraier [Mon, 4 Jul 2022 16:24:25 +0000 (18:24 +0200)] 
manager: fix bug in ignore pattern for black in pyproject.toml

4 years agopackaging: manually add rocky dependencies
Vasek Sraier [Mon, 4 Jul 2022 14:45:33 +0000 (16:45 +0200)] 
packaging: manually add rocky dependencies

4 years agomanager packaging tests: added a test checking existance of dependencies
Vasek Sraier [Tue, 17 May 2022 09:34:46 +0000 (11:34 +0200)] 
manager packaging tests: added a test checking existance of dependencies

4 years agoWIP: packaing tests using apkg's new test feature
Vasek Sraier [Tue, 17 May 2022 09:34:46 +0000 (11:34 +0200)] 
WIP: packaing tests using apkg's new test feature

4 years agomanager: explicitely crash on old Python versions
Vasek Sraier [Thu, 9 Jun 2022 21:21:41 +0000 (23:21 +0200)] 
manager: explicitely crash on old Python versions

4 years agomanager: replaced Click with argparse to "solve" issues with encoding
Vasek Sraier [Thu, 9 Jun 2022 20:12:38 +0000 (22:12 +0200)] 
manager: replaced Click with argparse to "solve" issues with encoding

Click is refusing to run in environments with misconfigured locale and default encoding.
https://click.palletsprojects.com/en/8.1.x/unicode-support/
Refusing to run might make sense for CLI utility, but not for a service which is not properly interactive.

4 years agomanager's service file: prefixed all commands with /usr/bin/env to ensure absolute...
Vasek Sraier [Thu, 21 Apr 2022 21:44:07 +0000 (23:44 +0200)] 
manager's service file: prefixed all commands with /usr/bin/env to ensure absolute path

4 years agopackaging: listed kresctl in rpm .spec file
Vasek Sraier [Thu, 21 Apr 2022 21:09:05 +0000 (23:09 +0200)] 
packaging: listed kresctl in rpm .spec file

4 years agoci: added basic manager tests to pkgtests
Vasek Sraier [Thu, 21 Apr 2022 20:53:23 +0000 (22:53 +0200)] 
ci: added basic manager tests to pkgtests

4 years agomanager: improved logging of subprocess controller selection
Vasek Sraier [Sun, 17 Apr 2022 15:11:39 +0000 (17:11 +0200)] 
manager: improved logging of subprocess controller selection

4 years agomanager's packaging fixes & better systemd integration
Vasek Sraier [Mon, 11 Apr 2022 18:00:39 +0000 (20:00 +0200)] 
manager's packaging fixes & better systemd integration

- implemented sd_notify and changed manager service type to "notify"
- fixed release configuration
- renamed knot-resolver-manager.service to knot-resolver.service

4 years agomanager: add simple packaging tests
Vasek Sraier [Sun, 10 Apr 2022 19:41:17 +0000 (21:41 +0200)] 
manager: add simple packaging tests

4 years agomanager: added placeholder for manager's future CLI interface
Vasek Sraier [Sun, 10 Apr 2022 18:40:14 +0000 (20:40 +0200)] 
manager: added placeholder for manager's future CLI interface

4 years agomanager: fix packaging script
Vasek Sraier [Fri, 8 Apr 2022 13:11:02 +0000 (15:11 +0200)] 
manager: fix packaging script

4 years agodistro: add knot-resolver-manager rpm packaging
Jakub Ružička [Wed, 10 Nov 2021 11:32:20 +0000 (12:32 +0100)] 
distro: add knot-resolver-manager rpm packaging

4 years agodistro: add knot-resolver-manager deb packaging
Jakub Ružička [Mon, 25 Oct 2021 12:16:37 +0000 (14:16 +0200)] 
distro: add knot-resolver-manager deb packaging

4 years agoMerge !1325: ci/pkgtest: remove Ubuntu 21.10 obs-knot-resolver-es11k1/deployments/2211 obs-knot-resolver-es11k1/deployments/2212 obs-knot-resolver-es11k1/deployments/2213 obs-knot-resolver-es11k1/deployments/2214 obs-knot-resolver-es11k1/deployments/2215 obs-knot-resolver-es11k1/deployments/2216 obs-knot-resolver-es11k1/deployments/2217 obs-knot-resolver-es11k1/deployments/2218 obs-knot-resolver-es11k1/deployments/2219 obs-knot-resolver-es11k1/deployments/2220 obs-knot-resolver-es11k1/deployments/2221 obs-knot-resolver-es11k1/deployments/2222
Vladimír Čunát [Wed, 27 Jul 2022 09:36:11 +0000 (11:36 +0200)] 
Merge !1325: ci/pkgtest: remove Ubuntu 21.10

4 years agoRevert "ci/pkgtest: switch bad LXC builds to manual start"
Vladimír Čunát [Tue, 26 Jul 2022 16:40:29 +0000 (18:40 +0200)] 
Revert "ci/pkgtest: switch bad LXC builds to manual start"

This reverts commit ac3e7ac72cc347e01660d074dff94edfad2ba9a0.
They have been fixed and seem reliable now.

4 years agoci/pkgtest: remove Ubuntu 21.10
Vladimír Čunát [Tue, 26 Jul 2022 16:26:12 +0000 (18:26 +0200)] 
ci/pkgtest: remove Ubuntu 21.10

It broke down and it isn't relevant anymore.

4 years agoMerge !1309: support (lib)knot 3.2 obs-knot-resolver-es11k1/deployments/2210
Vladimír Čunát [Tue, 26 Jul 2022 16:58:14 +0000 (18:58 +0200)] 
Merge !1309: support (lib)knot 3.2

4 years agoci: add job build-knot32
Vladimír Čunát [Fri, 17 Jun 2022 07:12:20 +0000 (09:12 +0200)] 
ci: add job build-knot32

That way we get at least basic testing before 3.2 is made default in CI.

4 years agoNEWS: now the support for libknot 3.2 should be complete
Vladimír Čunát [Wed, 15 Jun 2022 15:44:38 +0000 (17:44 +0200)] 
NEWS: now the support for libknot 3.2 should be complete

4 years agodaemon: adapt XDP to libknot 3.2
Vladimír Čunát [Wed, 15 Jun 2022 07:30:02 +0000 (09:30 +0200)] 
daemon: adapt XDP to libknot 3.2

4 years agoadapt to libknot 3.2 lower-casing knot_pkt_qname()
Vladimír Čunát [Wed, 15 Jun 2022 08:46:19 +0000 (10:46 +0200)] 
adapt to libknot 3.2 lower-casing knot_pkt_qname()

Our strategy was (and remains) that the in-header QNAME is overwritten
in-place, so most of our code was already (correctly) assuming that
knot_pkt_qname() returns lower-case only.  That simplifies this commit.

4 years agolua bindings: support libknot 3.2
Vladimír Čunát [Wed, 15 Jun 2022 07:26:46 +0000 (09:26 +0200)] 
lua bindings: support libknot 3.2

4 years agoMerge branch 'manager-utils-modeling' into 'manager'
Aleš Mrázek [Mon, 18 Jul 2022 10:55:25 +0000 (12:55 +0200)] 
Merge branch 'manager-utils-modeling' into 'manager'

manager: utils: modeling utils improvements

See merge request knot/knot-resolver!1320

4 years agomanager: utils: modeling: info about '-'/_'' conversion added to README
Aleš Mrázek [Thu, 14 Jul 2022 14:04:21 +0000 (16:04 +0200)] 
manager: utils: modeling: info about '-'/_'' conversion added to README

4 years agomanager: utils: modeling: BaseCustomType renamed to BaseValueType
Aleš Mrázek [Thu, 14 Jul 2022 11:44:11 +0000 (13:44 +0200)] 
manager: utils: modeling: BaseCustomType renamed to BaseValueType

4 years agomanager: tests: utils: directory for modeling tests
Aleš Mrázek [Wed, 13 Jul 2022 10:42:37 +0000 (12:42 +0200)] 
manager: tests: utils: directory for modeling tests

4 years agomanager: utils: modeling: docstrings updates
Aleš Mrázek [Wed, 13 Jul 2022 10:39:43 +0000 (12:39 +0200)] 
manager: utils: modeling: docstrings updates
-

4 years agoMerge !1317: ci/pkgtest: switch bad LXC builds to manual start obs-knot-resolver-es11k1/deployments/2197 obs-knot-resolver-es11k1/deployments/2198 obs-knot-resolver-es11k1/deployments/2199 obs-knot-resolver-es11k1/deployments/2200 obs-knot-resolver-es11k1/deployments/2201 obs-knot-resolver-es11k1/deployments/2202 obs-knot-resolver-es11k1/deployments/2203 obs-knot-resolver-es11k1/deployments/2204 obs-knot-resolver-es11k1/deployments/2205 obs-knot-resolver-es11k1/deployments/2206 obs-knot-resolver-es11k1/deployments/2207 obs-knot-resolver-es11k1/deployments/2208 obs-knot-resolver-es11k1/deployments/2209
Vladimír Čunát [Wed, 13 Jul 2022 09:34:03 +0000 (11:34 +0200)] 
Merge !1317: ci/pkgtest: switch bad LXC builds to manual start

4 years agomanager: utils: modeling: raise ValueError instead of DataValidationError in custom...
Aleš Mrázek [Wed, 13 Jul 2022 09:29:09 +0000 (11:29 +0200)] 
manager: utils: modeling: raise ValueError instead of DataValidationError in custom types

4 years agoci/pkgtest: switch bad LXC builds to manual start
Vladimír Čunát [Mon, 27 Jun 2022 08:37:13 +0000 (10:37 +0200)] 
ci/pkgtest: switch bad LXC builds to manual start

We've been unable to progress with these failures for some time,
and it's not good to have them red in CI all the time.
Manual start should allow easier testing of future fixes,
without doing the futile runs automatically.

4 years agoMerge !1321: Redirect webserv.lua stdout and stderr to /dev/null
Vladimír Čunát [Wed, 13 Jul 2022 09:04:50 +0000 (11:04 +0200)] 
Merge !1321: Redirect webserv.lua stdout and stderr to /dev/null

Fixes #758

4 years agoRedirect webserv.lua stdout and stderr to /dev/null
Héctor Molinero Fernández [Tue, 12 Jul 2022 19:29:26 +0000 (21:29 +0200)] 
Redirect webserv.lua stdout and stderr to /dev/null

Fixes a regression on Meson 0.57.0 that produces a timeout in config.ta_bootstrap test.

4 years agomanager: utils: modeling: naming improvements
Aleš Mrázek [Wed, 13 Jul 2022 08:39:39 +0000 (10:39 +0200)] 
manager: utils: modeling: naming improvements

4 years agomanager: utils: modeling: README update
Aleš Mrázek [Wed, 13 Jul 2022 08:23:10 +0000 (10:23 +0200)] 
manager: utils: modeling: README update

4 years agoMerge !1322: ci: confine docker and macOS jobs to main repository
Vladimír Čunát [Wed, 13 Jul 2022 07:26:03 +0000 (09:26 +0200)] 
Merge !1322: ci: confine docker and macOS jobs to main repository

4 years agoci: confine docker and macOS jobs to main repository
Oto Šťáva [Wed, 13 Jul 2022 06:21:48 +0000 (08:21 +0200)] 
ci: confine docker and macOS jobs to main repository

Some of our CI jobs use project-specific GitLab runners (e.g. requiring
the `dind` tag). The jobs then fail when someone forks the repository
and opens a merge request. This commit confines those jobs to the
`knot/knot-resolver` repository.

4 years agomanager: utils: modeling: simple documentation
Aleš Mrázek [Mon, 11 Jul 2022 09:49:56 +0000 (11:49 +0200)] 
manager: utils: modeling: simple documentation

4 years agomanager: utils: modeling: rename _PREVIOUS_SCHEMA to _LAYER
Aleš Mrázek [Mon, 11 Jul 2022 09:04:09 +0000 (11:04 +0200)] 
manager: utils: modeling: rename _PREVIOUS_SCHEMA  to _LAYER

4 years agoutils: modeling utils moved to separate directory
Aleš Mrázek [Fri, 8 Jul 2022 20:11:03 +0000 (22:11 +0200)] 
utils: modeling utils moved to separate directory

4 years agoMerge branch 'manager-supervisord-inversion-of-control' into 'manager'
Aleš Mrázek [Fri, 8 Jul 2022 13:19:54 +0000 (15:19 +0200)] 
Merge branch 'manager-supervisord-inversion-of-control' into 'manager'

manager: inverted process tree with supervisord

See merge request knot/knot-resolver!1319

4 years agomanager: tests: datamodel: 'id' removed from tests
Aleš Mrázek [Fri, 8 Jul 2022 13:15:03 +0000 (15:15 +0200)] 
manager: tests: datamodel: 'id' removed from tests

4 years agomanager: supervisord stops with non-zero exit code whenever manager enters FATAL...
Vasek Sraier [Thu, 7 Jul 2022 22:00:57 +0000 (00:00 +0200)] 
manager: supervisord stops with non-zero exit code whenever manager enters FATAL state

4 years agomanager: improved logging, no exceptions on shutdown -> now it looks almost as before...
Vasek Sraier [Thu, 7 Jul 2022 14:21:46 +0000 (16:21 +0200)] 
manager: improved logging, no exceptions on shutdown -> now it looks almost as before trying to invert the process tree

4 years agomanager: initial support for inverted process tree (manager running under a subproces...
Vasek Sraier [Thu, 7 Jul 2022 10:53:36 +0000 (12:53 +0200)] 
manager: initial support for inverted process tree (manager running under a subprocess manager started by manager)

4 years agoMerge !1315: hints.add_hosts(): respect comments anywhere in a line obs-knot-resolver-es11k1/deployments/2191 obs-knot-resolver-es11k1/deployments/2192 obs-knot-resolver-es11k1/deployments/2193 obs-knot-resolver-es11k1/deployments/2194 obs-knot-resolver-es11k1/deployments/2195 obs-knot-resolver-es11k1/deployments/2196
Vladimír Čunát [Thu, 7 Jul 2022 17:22:24 +0000 (19:22 +0200)] 
Merge !1315: hints.add_hosts(): respect comments anywhere in a line

4 years agohints.add_hosts(): respect comments anywhere in a line
Vladimír Čunát [Fri, 24 Jun 2022 07:29:38 +0000 (09:29 +0200)] 
hints.add_hosts(): respect comments anywhere in a line

4 years agohints tests: simple check of comment parsing
Vladimír Čunát [Fri, 24 Jun 2022 07:26:31 +0000 (09:26 +0200)] 
hints tests: simple check of comment parsing

4 years agoMerge branch 'manager-remove-systemd-support' into 'manager'
Aleš Mrázek [Thu, 7 Jul 2022 07:04:10 +0000 (09:04 +0200)] 
Merge branch 'manager-remove-systemd-support' into 'manager'

Remove systemd backend support

See merge request knot/knot-resolver!1318

4 years agomanager: datamodel: watchdog section removed
Aleš Mrázek [Thu, 7 Jul 2022 06:48:40 +0000 (08:48 +0200)] 
manager: datamodel: watchdog section removed

4 years agomanager: reorganization of manager startup and subprocess controller selection
Vasek Sraier [Tue, 5 Jul 2022 09:56:01 +0000 (11:56 +0200)] 
manager: reorganization of manager startup and subprocess controller selection

4 years agomanager: updated poethepoet to prevent exceptions when stopping dev run
Vasek Sraier [Tue, 5 Jul 2022 09:55:21 +0000 (11:55 +0200)] 
manager: updated poethepoet to prevent exceptions when stopping dev run

4 years agomanager: datamodel: supervisor section removed
Aleš Mrázek [Mon, 4 Jul 2022 16:24:58 +0000 (18:24 +0200)] 
manager: datamodel: supervisor section removed
- watchdog moved to top-level

4 years agofix manager's gitlab CI config usage of removed features
Vasek Sraier [Mon, 4 Jul 2022 12:03:41 +0000 (14:03 +0200)] 
fix manager's gitlab CI config usage of removed features

4 years agomanager: remove systemd support
Vasek Sraier [Fri, 24 Jun 2022 15:20:00 +0000 (17:20 +0200)] 
manager: remove systemd support

Why? Because it is dangerous to use. You'd have to run manager with root privileges
to be able to spawn systemd services via DBus. There is an option to do the same
with session instances of systemd, but that is unpackageable and pretty much unusable
in production. We will therefore rely on supervisord, as it's support got much better
recently.

4 years agoMerge branch 'manager-supervisord-improvements' into 'manager'
Vaclav Sraier [Mon, 4 Jul 2022 15:28:19 +0000 (17:28 +0200)] 
Merge branch 'manager-supervisord-improvements' into 'manager'

supervisord improvements

See merge request knot/knot-resolver!1280

4 years agoMerge !1314: daemon/tls: fix a double-free for some cases of policy.TLS_FORWARD obs-knot-resolver-es11k1/deployments/2183 obs-knot-resolver-es11k1/deployments/2184 obs-knot-resolver-es11k1/deployments/2185 obs-knot-resolver-es11k1/deployments/2186 obs-knot-resolver-es11k1/deployments/2187 obs-knot-resolver-es11k1/deployments/2188 obs-knot-resolver-es11k1/deployments/2189 obs-knot-resolver-es11k1/deployments/2190
Vladimír Čunát [Wed, 29 Jun 2022 08:53:40 +0000 (10:53 +0200)] 
Merge !1314: daemon/tls: fix a double-free for some cases of policy.TLS_FORWARD

4 years agodaemon/tls: fix a double-free for some cases of policy.TLS_FORWARD
Oto Šťáva [Thu, 23 Jun 2022 08:14:58 +0000 (10:14 +0200)] 
daemon/tls: fix a double-free for some cases of policy.TLS_FORWARD

The double-free may have happened in some cases when the upstream
resolver was stopped while answering a forwarded query. I was reliably
reproducing it by running resperf on two kresd instances with one forwarded
to the other, and killing the upstream one.

4 years agoMerge !1310: modules/priming: downgrade logs to 'info' level obs-knot-resolver-es11k1/deployments/2181 obs-knot-resolver-es11k1/deployments/2182
Vladimír Čunát [Mon, 27 Jun 2022 08:36:29 +0000 (10:36 +0200)] 
Merge !1310: modules/priming: downgrade logs to 'info' level

4 years agomodules/priming: downgrade logs to 'info' level
Vladimír Čunát [Thu, 16 Jun 2022 08:15:31 +0000 (10:15 +0200)] 
modules/priming: downgrade logs to 'info' level

When kresd starts without working internet connection, these would spam
logs by default every 10 seconds, which doesn't seem useful.

4 years agomodules/priming: don't warn against unloading it
Vladimír Čunát [Thu, 16 Jun 2022 08:12:22 +0000 (10:12 +0200)] 
modules/priming: don't warn against unloading it

I can't see sufficient motivation here.  The cache will be slightly
less ready, but it's not often that you need to contact a root server.

Most importantly, kresd must work well anyway, even with empty cache.
Also, the compiled-in address set of root servers should be quite
accurate - the NS set has never changed, and the last address change
was five years ago with just one of 26 records changing.

4 years agoMerge !1316: nit: daemon/http: remove dead code
Vladimír Čunát [Mon, 27 Jun 2022 07:31:48 +0000 (09:31 +0200)] 
Merge !1316: nit: daemon/http: remove dead code

4 years agonit: daemon/http: remove dead code
Oto Šťáva [Mon, 27 Jun 2022 05:37:58 +0000 (07:37 +0200)] 
nit: daemon/http: remove dead code

4 years agomanager: optimized supervisord process startup by using custom version of XML-RPC API
Vasek Sraier [Fri, 24 Jun 2022 15:34:49 +0000 (17:34 +0200)] 
manager: optimized supervisord process startup by using custom version of XML-RPC API

4 years agomanager: fix bad config schema definition
Vasek Sraier [Sat, 18 Jun 2022 22:14:35 +0000 (00:14 +0200)] 
manager: fix bad config schema definition

4 years agomanager: more startup logging and small supervisord detection optimization
Vasek Sraier [Sat, 18 Jun 2022 21:55:50 +0000 (23:55 +0200)] 
manager: more startup logging and small supervisord detection optimization

4 years agomanager: bug fix: utility function to spawn subprocesses did not unblock signals...
Vasek Sraier [Sat, 18 Jun 2022 21:16:05 +0000 (23:16 +0200)] 
manager: bug fix: utility function to spawn subprocesses did not unblock signals, so spawned processes could not be stopped properly

4 years agoconfigured build system for native C extensions
Vasek Sraier [Fri, 17 Jun 2022 22:42:08 +0000 (00:42 +0200)] 
configured build system for native C extensions

4 years agomade supervisord sd_notify() plugin properly functional + supervisord config changes
Vasek Sraier [Fri, 17 Jun 2022 13:03:43 +0000 (15:03 +0200)] 
made supervisord sd_notify() plugin properly functional + supervisord config changes

- X-SUPERVISORD-TYPE=notify in a process's environment should make the process behave similarly to Type=notify systemd service units
- startsec with the above means time, after which it will get killed without ready notification

4 years agomanager: experimental implementation of supervisord extension to support sd_notify()
Vasek Sraier [Wed, 25 May 2022 13:03:14 +0000 (15:03 +0200)] 
manager: experimental implementation of supervisord extension to support sd_notify()

contains:
- python module written in C, because Python does not support socket auxiliary messages like SCM_CREDENTIALS
- XML-RPC extension for supervisord, which actually does not do anything except for injecting code into supervisord internals

4 years agochanged supervisord controller so that we don't need to be rewriting config with...
Vasek Sraier [Sat, 26 Mar 2022 21:56:53 +0000 (22:56 +0100)] 
changed supervisord controller so that we don't need to be rewriting config with every change

4 years agomanager: add time since startup to logs
Vasek Sraier [Sat, 26 Mar 2022 21:56:09 +0000 (22:56 +0100)] 
manager: add time since startup to logs

4 years agoMerge !1311: daemon/http: improve URI checks obs-knot-resolver-es11k1/deployments/2177 obs-knot-resolver-es11k1/deployments/2178 obs-knot-resolver-es11k1/deployments/2179 obs-knot-resolver-es11k1/deployments/2180
Vladimír Čunát [Thu, 23 Jun 2022 07:39:54 +0000 (09:39 +0200)] 
Merge !1311: daemon/http: improve URI checks

Fixes #746

4 years agoMerge branch 'manager-datamodel-policy' into 'manager'
Aleš Mrázek [Tue, 21 Jun 2022 09:55:34 +0000 (11:55 +0200)] 
Merge branch 'manager-datamodel-policy' into 'manager'

manager: datamodel: policy improvements

See merge request knot/knot-resolver!1312

4 years agomanager: datamodel: policy: action validation refactored
Aleš Mrázek [Tue, 21 Jun 2022 09:45:04 +0000 (11:45 +0200)] 
manager: datamodel: policy: action validation refactored

4 years agomanager: datamodel: removed 'Dict' from policy sections
Aleš Mrázek [Mon, 20 Jun 2022 20:35:58 +0000 (22:35 +0200)] 
manager: datamodel:  removed 'Dict' from policy sections
- related to #702

4 years agomanager: datamodel: slices: actions validation
Aleš Mrázek [Fri, 17 Jun 2022 22:12:31 +0000 (00:12 +0200)] 
manager: datamodel: slices: actions validation

4 years agodaemon/http: improve URI checks obs-knot-resolver-bs4hbr/deployments/2173
Oto Šťáva [Fri, 17 Jun 2022 08:57:58 +0000 (10:57 +0200)] 
daemon/http: improve URI checks

The `check_uri()` function now only checks that the endpoint is either
`/doh` or `/dns-query`. Parameter checks were moved into
`process_uri_path()` so that the check only takes place for GET
requests. POST requests now do not care about parameters at all.

4 years agomanager: datamodel: policy: forward action validation
Aleš Mrázek [Wed, 15 Jun 2022 12:54:33 +0000 (14:54 +0200)] 
manager: datamodel: policy: forward action validation