Commit graph

535 commits

Author SHA1 Message Date
irl
061705a5e4 fix: fix incorrect attribute on group creation
created -> added
2024-12-06 14:48:07 +00:00
irl
675a7341eb feat: database migration to hold onion cert metadata 2024-12-06 14:47:12 +00:00
irl
e5976c4739 feat: expand onion service api 2024-12-06 13:34:44 +00:00
acute
c1b385ed99 docs: document docker container
Closes: #66
2024-12-05 16:21:02 +00:00
Ana Custura
348a4b5cf0 feat: add automation last_run_start, next_run, enabled in the automation collector 2024-12-05 08:45:16 +00:00
Ana Custura
3922082a56 feat: remove sudo from installed packages 2024-12-04 16:14:20 +00:00
Ana Custura
4dd0c4ed22 feat: add prometheus flask metrics 2024-12-04 16:14:20 +00:00
Ana Custura
c50d341c26 feat: move from gunicorn to waitress
Waitress, unlike unicorn, is multi-threaded. As it does not do access logs
by default, the app needs to be wrapped in TransLogger before being passed to
Waitress.

To make the switch, a custom registry is now also used instead of the global REGISTRY
as the default registry for the app. As part of this change, the default
prometheus metrics are then also registered with this new registry.

Closes: #72
2024-12-04 16:14:01 +00:00
irl
ffe097b24f lint: line breaks 2024-12-03 16:13:00 +00:00
irl
173eea2625 feat: metrics collectors don't depend on database being ready
also adds new "database_collector" metric to show current collector status
2024-12-03 14:55:53 +00:00
Ana Custura
3c3a1485e7 feat: simplify dockerfile to use the frontend makefile 2024-12-03 11:39:12 +00:00
Ana Custura
0867b13f8f feat: run with gunicorn instead of flask
Each worker now uses its own registry instead of the global REGISTRY
to avoid duplicate metric registration, since metrics are served
from the database.
2024-12-03 10:40:09 +00:00
Ana Custura
45823b02e4 docs: update new options for config in the example file 2024-12-02 18:56:21 +00:00
Ana Custura
3fae2365bf docs: add instructions on setting up a development environment 2024-12-02 18:56:21 +00:00
Ana Custura
33243b77ba feat: remove cron and crontab from the docker image
Change is required to transition to podman in the future.
2024-12-02 18:49:20 +00:00
irl
ad44101cfc ci: install docs requirements from file 2024-12-02 12:32:05 +00:00
irl
143ed1f43a docs: some reorganisation of documentation 2024-12-02 00:29:45 +00:00
irl
24cac76f70 feat: create new onion services via api 2024-12-02 00:29:45 +00:00
irl
192dacf760 fix: remove unsafe default list for list_resources 2024-12-01 14:10:21 +00:00
irl
cdbf152f40 fix: revert use of dt.UTC to dt.tz.UTC
some instance still on python 3.9
2024-11-29 18:53:46 +00:00
irl
905bdd1a58 feat(cli): mark block_ooni job as safe 2024-11-29 18:44:29 +00:00
irl
d854d52ab9 feat(block): tweak blocky timing, mark job safe 2024-11-29 18:43:56 +00:00
irl
8449a5a8c8 feat(api): dont list proxies destroyed over 24 hours ago 2024-11-29 18:39:08 +00:00
irl
1bc2960278 fix: don't create missing proxies for hotspare
* also fixes setting creation time for pools
* improves logging in proxy creation pipeline
2024-11-29 16:08:33 +00:00
irl
b91e078e22 fix: initialise new terraform state to avoid NOT NULL constraint violation 2024-11-29 15:36:50 +00:00
irl
0b3254f99c ci: install sphinx to build docs 2024-11-18 10:17:49 +00:00
irl
d551074a02 docs: remove json schemas 2024-11-18 10:10:30 +00:00
irl
be111b9dde lint: resolve mypy issues in app.cli.db 2024-11-18 09:56:48 +00:00
irl
c4e2ed364e ci: remove sphinx theme and plugins not used 2024-11-16 19:58:17 +00:00
irl
3b223f2c1a lint: app.api passes pylint 2024-11-16 19:57:10 +00:00
irl
3610707495 lint: app.cli.db passes pylint 2024-11-16 19:47:41 +00:00
irl
9674cb4293 feat: remove block_bridge_dnsc
no longer used
2024-11-16 19:38:57 +00:00
irl
5c0170bdef fix: do not rotate hotspare proxies on max age
closes: #42
2024-11-16 19:26:23 +00:00
irl
d9b62a373d docs: fix build after removal of json schemas 2024-11-16 19:26:23 +00:00
90575b076e fix: extend timeout for blocky, fix db query 2024-11-16 13:27:29 +00:00
779d5cb8d2 feat: new block plugin for blocky 2024-11-16 13:17:39 +00:00
acfa81e3ba ci: remove pylint plugin for sqlalchemy
hopefully no longer required since using new Mapped types
2024-11-16 13:17:27 +00:00
irl
cce5c307ee lint: ignore "circular import" that isn't real 2024-11-10 21:54:56 +00:00
irl
2c96ade33d lint: remove pydantic plugin for pylint
we've already remove pydantic
2024-11-10 21:54:42 +00:00
irl
04f5a0345b feat: adds onions list to api 2024-11-10 21:41:54 +00:00
irl
2ca4ddffb0 fix: import Origin at time of use in models.base
was previously removed to prevent circ import
2024-11-10 18:28:35 +00:00
irl
75b2c1adf0 refactor: moving more models to mapped_column 2024-11-10 15:13:29 +00:00
irl
ea020d6edd ci: re-add types-requests 2024-11-10 13:39:08 +00:00
irl
ae905c6d80 feat: initial api implementation 2024-11-10 13:38:51 +00:00
a482d5bba8 feat: upgrade python version and install frontend in container 2024-11-09 17:12:34 +00:00
3be3a45606 fix: sqlite fix for migration 2024-11-09 14:29:44 +00:00
ae1ac4ef54 deps: update tf module pins 2024-11-09 13:53:42 +00:00
84f700b742 deps: update tf module pins 2024-11-09 13:39:12 +00:00
75ea0b22d7 feat: add settings as a bridge distribution method 2024-11-09 13:07:40 +00:00
9caf1deb74 fix: switch hcloud instances to CX22 (CX11 doesn't exist anymore) 2024-11-09 13:07:08 +00:00