Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-12 | http-api: T3616: update for strict content-type check in FastAPI 0.65.2 | John Estabrook | |
FastAPI 0.65.2 checks content-type request header before assuming JSON, closing a well-known loophole. This requires a modification of the code providing backwards compatibility of multipart forms. | |||
2021-03-26 | http api: T3412: use FastAPI as web framework; support application/json | John Estabrook | |
Replace the Flask micro-framework with FastAPI, in order to support extensions to the API and OpenAPI 3.* generation. This change will remain backwards compatible with previous versions. Notably, the multipart forms version of requests remain supported; in addition application/json requests are now natively supported. | |||
2021-03-25 | configd: T3426: add support for script arguments to vyos-configd | John Estabrook | |
2021-03-23 | configd: T3426: check script name against include_set, not exclude_set | John Estabrook | |
If the script name is mangled, for any reason (e.g. missing support for script arguments) checking against the exclude_set will yield a false positive; check against the include_set, even if this is a longer search. | |||
2021-03-22 | configd: T3302: check vyos-config-status to determine if in boot session | John Estabrook | |
2021-03-16 | configd: T3411: revise redirect to capture stdout from subprocesses | John Estabrook | |
2021-03-16 | configd: T3411: revert to using explicit_print on ConfigError | John Estabrook | |
2021-02-25 | configd: T3302: set mode correctly on open for redirect | John Estabrook | |
2021-02-23 | configd: T3302: redirect script stdout/err to file on boot | John Estabrook | |
2021-02-17 | configd: T3302: redirect stdout/stderr from scripts to console | John Estabrook | |
2020-11-03 | T2465: Fixing permissions on socket so DHCP works | kroy | |
2020-10-21 | http-api: T3007: use ConfigSession config load script, not backend load | John Estabrook | |
2020-10-08 | configd: T2931: workaround for suspected zmq bug | John Estabrook | |
2020-10-02 | configd: T2952: synchronize received messages in case of client timeout | John Estabrook | |
2020-10-02 | configd: T2582: catch config initialization errors | John Estabrook | |
2020-10-02 | configd: T2582: remove unused variables | John Estabrook | |
2020-09-25 | dns: forwarding: T2921: migrate to get_config_dict() | Christian Poessinger | |
2020-09-16 | configd: T2885: fix output of error string to config session | John Estabrook | |
2020-09-15 | configd: T2885: print commit errors to config session terminal | John Estabrook | |
2020-08-31 | configd: T2582: add config daemon and supporting files | John Estabrook | |
2020-07-22 | http-api: remove unneeded check for VyOSError | John Estabrook | |
The only calls to config (return_value, return_values, exists) do not throw VyOSError; remove unneeded except. | |||
2020-06-11 | vyos-hostsd: T2583: partial rewrite | Jernej Jakob | |
- update copyright date - validate incoming JSON data against a schema with voluptuous - add usage help describing internal messages syntax at top of vyos-hostsd - move socket and state file to directory /run/vyos-hostsd - replace jinja2 rendering with vyos.template - move all templates out of the executable into dedicated data/templates dirs - move recursor.conf forward-zones-recurse to forward-zones-file - generate lua-config-file for pdns-recursor with addNTA - support adding custom forward zones for pdns-recursor with optional added NTA and/or recursion-desired - move search_domains from set_host_name to separate add/delete/get commands - unify functions to support abstracting them in the future - track number of internal changes in "changes" variable saved in state file (informational in apply function) - do not apply changes immediately, add apply function that applies all changes (to not reload pdns-recursor excessively for a large set of changes, users must call the apply function once at the end) - add pdns_rec_control function that supports sending arbitrary commands to rec_control (fix pdns-recursor process name that caused the old function to think pdns-recursor was never running) - create /run/powerdns if it doesn't exist (on boot vyos-hostsd starts before pdns-recursor but we need to put our generated conf files there) - abstract specific command functions (add_*/del_*) into general functions to manipulate various types of data in the state variable - add command types: - forward_zones (generate custom forward zones for pdns-recursor) - search_domains (move from set_host_name as dhcp client needs to change them too) - name_server_tags_recursor (to set tags whose nameservers are added to pdns-recursor) - name_server_tags_system (to set tags whose nameservers and search domains are added to /etc/resolv.conf) - change hosts data format to make more sense (move tag from within each host dict to the key for a list of host dicts) - do not remove state file when shut down cleanly, to not lose state when restarting vyos-hostsd service that's then impossible to restore without restarting the whole router - a reboot will remove the state file as it lives in a tmpfs (/run) - remove too verbose info log on every received message - set mode of socket to 770 to secure it against processes not in hostsd group | |||
2020-05-28 | dhcp: T2465: T2483: fix DNS resolution (pdns restatt) | kroy-the-rabbit | |
2020-05-19 | T2465: Permissions on vyos-hostsd socket incorrect | kroy-the-rabbit | |
The DHCP server is unable to apply entries to the hosts file because the permissions on the socket are getting created wrong. ``` $ ls -al /run/vyos-hostsd.sock srwxrwxrwx 1 root vyattacfg 0 May 20 01:38 /run/vyos-hostsd.sock ``` This gives it the correct permissions so that the nobody/nobody user/group can change it. | |||
2020-05-06 | http api: T2395: add waitress as production WSGI server | John Estabrook | |
2020-05-06 | http api: T2395: replace bottle with flask as microframework | John Estabrook | |
2020-05-06 | http api: use decorator to get command data from request | John Estabrook | |
2020-05-06 | http api: catch appropriate errors | John Estabrook | |
2020-05-06 | http api: function names should be consistent | John Estabrook | |
2020-05-03 | Merge pull request #352 from maplewf/current | Daniil Baturin | |
[T2311] name servers via cmdline can't take effect | |||
2020-04-22 | http api: T2096: form of show/generate should be consistent with other cmds | John Estabrook | |
2020-04-20 | http api: T2292: handle SIGTERM from systemd restart; raise SIGINT | John Estabrook | |
2020-04-18 | [T2311] name servers via cmdline can't take effect | Maple Wang | |
Please refer to https://phabricator.vyos.net/T2311 | |||
2020-03-11 | http api: T2096: Added show and generate | Matthias Fetzer | |
2020-02-14 | http api: T2040: reload Config in route definition | John Estabrook | |
2019-12-19 | vyos-hostsd: T1885: Fixed crash if stdout PIPE connection lost | zsdc | |
In case if stdout PIPE were lost (for example, after systemd-journald restart), using print() will raise the exception. This patch replaces print() to logging function, which is not sensitive to this problem. This makes vyos-hostd resistant to stdout disconnection, but of course, all logs after stdout disconnection will be lost. | |||
2019-12-03 | T1801: move escaping of backslashes into configtree | John Estabrook | |
2019-11-17 | dns: T1786: add proper processing of 'system disable-dhcp-nameservers' | zdc | |
2019-11-17 | T1801: escape isolated backslashes before passing to ConfigTree() | John Estabrook | |
2019-11-05 | T1774: fix error output | John Estabrook | |
2019-10-27 | T1773, T1774: add a show config operation with JSON and raw options. | Daniil Baturin | |
2019-10-23 | [HTTP API] Add endpoints for config file and image management. | Daniil Baturin | |
2019-10-23 | [HTTP API] Use a decorator for functions that require authentication. | Daniil Baturin | |
2019-09-29 | [vyos-hostsd] T1701 Fix check for delete domain-name and domain-search | DmitriyEshenko | |
2019-09-19 | T1638: generated hosts file fix for proper FQDN resolution | kroy | |
2019-08-26 | T1598: add a vyos-hostsd operation for retrieving name servers by tag. | Daniil Baturin | |
2019-08-21 | T1598: clean up vyos-hostsd state dump on clean shutdown. | Daniil Baturin | |
2019-08-21 | T1598: improve autogenerated file comments. | Daniil Baturin | |
2019-08-20 | T1598: initial implementation of the hosts keeper daemon. | Daniil Baturin | |
2019-08-05 | T1431: add showConfig operation to the HTTP API. | Daniil Baturin | |