Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-01-10 | https: T5902: remove virtual-host configuration | Christian Breunig | |
We have not seen the adoption of the https virtual-host CLI option. What it did? * Create multiple webservers each listening on a different IP/port (but in the same VRF) * All webservers shared one common document root * All webservers shared the same SSL certificates * All webservers could have had individual allow-client configurations * API could be enabled for a particular virtual-host but was always enabled on the default host This configuration tried to provide a full webserver via the CLI but VyOS is a router and the Webserver is there for an API or to serve files for a local-ui. Changes Remove support for virtual-hosts as it's an incomplete and thus mostly useless "thing". Migrate all allow-client statements to one top-level allow statement. (cherry picked from commit d0d3071e99eb65edb888c26ef2fdc9e038438887) | |||
2023-12-20 | https api: T5844: allow the server to start without API keys | Daniil Baturin | |
and use only PAM auth and JWT (cherry picked from commit 495bf4732439ebd55edfbf6050af8b2064993d86) | |||
2023-12-01 | http-api: T5782: use single config-mode script for https and http-api | John Estabrook | |
2023-12-01 | http-api: T5768: remove auxiliary http-api.conf | John Estabrook | |
2023-11-21 | T5767: HTTPS API add reboot and poweroff endpoints | Viacheslav Hletenko | |
Add ability to reboot and poweroff the system via API curl -k --location --request POST 'https://vyos/reboot' \ --form data='{"op": "reboot", "path": ["now"]}' \ --form key='apikey' curl -k --location --request POST 'https://vyos/poweroff' \ --form data='{"op": "poweroff", "path": ["now"]}' \ --form key='apikey' (cherry picked from commit 36f3c329c2df0e78f2f5da933d9729a872fb2a11) | |||
2023-11-20 | http: T5762: api: make API socket backend communication the one and only default | Christian Breunig | |
Why: Smoketests fail as they can not establish IPv6 connection to uvicorn backend server. https://github.com/vyos/vyos-1x/pull/2481 added a bunch of new smoketests. While debugging those failing, it was uncovered, that uvicorn only listens on IPv4 connections vyos@vyos# netstat -tulnp | grep 8080 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN - As the CLI already has an option to move the API communication from an IP to a UNIX domain socket, the best idea is to make this the default way of communication, as we never directly talk to the API server but rather use the NGINX reverse proxy. (cherry picked from commit f5e43b1361fb59a9c260739bdb28729d5119507c) | |||
2023-10-10 | http-api: T2612: reload server within configsession for api self-config | John Estabrook | |
(cherry picked from commit 93d2ea7d635c7aa5acf3000654393ea48b7c6405) | |||
2023-10-10 | http-api: T2612: send response before reconfiguring api server | John Estabrook | |
(cherry picked from commit 7d597a6dca15cb592230b349ef7ef565f258cf43) | |||
2023-06-20 | http-api: T5305: configure operations should not be defined async | John Estabrook | |
2023-06-10 | http-api: T5248: add endpoint /configure-section | John Estabrook | |
2023-06-10 | http-api: T5263: add base model for generalization | John Estabrook | |
2023-06-10 | http-api: T5263: factor out function _configure_op for generalization | John Estabrook | |
2023-06-10 | http-api: T5263: consistent string formatting | John Estabrook | |
2023-06-10 | http-api: T5263: simplify form errors | John Estabrook | |
2023-06-10 | http-api: T5263: path validator should provide message | John Estabrook | |
2023-04-23 | http-api: T5175: check value of attribute for FastAPI>=0.91.0 | John Estabrook | |
FastAPI v0.92.0 (starlette v0.24.0) sets default attribute Request._form; check for value == None instead of existence when overriding Request class. | |||
2023-02-14 | http-api: T5006: add explicit async to retrieve/configure methods | John Estabrook | |
2023-01-09 | container: T4880: add REST API endpoint for add/delelete/show images | John Estabrook | |
2022-11-06 | graphql: T4803: allow 'Authorization' header in CORS middleware | John Estabrook | |
2022-10-25 | graphql: T4574: set byte length of shared secret from CLI | John Estabrook | |
2022-10-25 | graphql: T4574: set token expiration time in claims | John Estabrook | |
2022-10-25 | graphql: T4574: add context to read token in queries/mutations | John Estabrook | |
2022-10-25 | graphql: T4574: read config and generate schema with/without key auth | John Estabrook | |
2022-10-21 | graphql: T4768: change name of api child node from 'gql' to 'graphql' | John Estabrook | |
2022-10-14 | http-api: T4749: transition to config_dict | John Estabrook | |
2022-08-22 | graphql: T3993: add missing sys.exit() | John Estabrook | |
2022-07-24 | graphql: T3993: disable introspection unless set in CLI | John Estabrook | |
2022-05-26 | http-api: T4442: Add action reset | Viacheslav Hletenko | |
Add action 'reset' (op-mode) for HTTP-API http://localhost/reset curl --unix-socket /run/api.sock -X POST -Fkey=mykey \ -Fdata='{"op": "reset", "path": ["ip", "bgp", "192.0.2.14"]}' \ http://localhost/reset | |||
2022-04-07 | http api: T4347: return complete and consistent error codes | John Estabrook | |
2022-03-27 | graphql: T3993: add unsettable gql option; this is not exposed by CLI | John Estabrook | |
2021-12-15 | http-api: T4076: allow setting CORS option 'Access-Control-Allow-Origin' | John Estabrook | |
2021-12-13 | http-api: T4071: allow API to bind to unix domain socket | John Estabrook | |
2021-11-15 | graphql: T3993: move schema generation to bindings.py; clean up for linting | John Estabrook | |
2021-08-06 | http-api: T2768: example using GraphQL for high-level config operations | John Estabrook | |
2021-08-06 | Revert "http-api: T2768: example using GraphQL for high-level config operations" | John Estabrook | |
This reverts commit a2b959c50c96698da173b9c4720369a51442cc5c. | |||
2021-08-06 | http-api: T2768: example using GraphQL for high-level config operations | John Estabrook | |
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. | |||
2020-10-21 | http-api: T3007: use ConfigSession config load script, not backend load | 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-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-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-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-03 | T1801: move escaping of backslashes into configtree | John Estabrook | |