Commit Graph

21 Commits

Author SHA1 Message Date
msramalho
7bef0b3921 Merge branch 'main' into dev 2025-03-17 18:03:51 +00:00
Michael Plunkett
7e48f706df Add pre-commit with GiHub Action (#56)
* Update pyproject.toml

* add pre-commit

* Create .pre-commit-config.yaml

* Comment out ruff

* Update .pre-commit-config.yaml

* General formatting

* Create format-and-fail.yml

* Update ci.yml

* Add pre-commit to dev dependencies

* Update pyproject.toml
2025-02-26 10:42:28 -06:00
msramalho
eec4c09441 adds celery -O fair configuration 2025-02-24 18:44:35 +00:00
msramalho
0869f55c0c attempt to curb zombie celery processes 2025-02-20 10:25:38 +00:00
msramalho
b3de99aaa0 adds celery logging rotation 2025-02-20 10:17:07 +00:00
msramalho
8f67457d9c temp fix see https://github.com/bellingcat/auto-archiver/issues/203 2025-02-15 23:13:25 +00:00
msramalho
a3b1adb28d documents and simplifies how .env and .user-groups are passed to the images 2025-02-13 00:06:24 +00:00
msramalho
f587a17a93 introduces low/high priority queue and custom concurrency 2025-02-12 13:24:11 +00:00
msramalho
4f9d447ec7 optimizing compose and logging 2025-02-11 23:30:45 +00:00
msramalho
37ebba73bf separate images, no more .env 2025-02-10 23:49:08 +00:00
msramalho
c2dff5c121 refactors from pipenv to poetry 2025-02-10 22:39:02 +00:00
msramalho
f8c45e2d92 major refactor of structure for worker V web: docker/app/secrets/envs/... 2025-02-10 00:41:50 +00:00
msramalho
5494825286 minor docker comments 2025-02-08 15:18:15 +00:00
msramalho
ea8e06dfee refactoring with app_factory 2024-10-18 16:35:12 +01:00
msramalho
f2a14abb17 adds health check and new env logic 2024-10-17 13:09:50 +01:00
msramalho
3432d35af6 isolating api methods, introducing first tests 2024-10-17 11:27:35 +01:00
msramalho
a648b90406 simplifies Bearer keys to a single one 2024-02-21 13:52:35 +00:00
Lilia Kai
61a5d9a8d7 Remove basic auth and rename methods
All our clients are now using bearer auth so we can remove basic.

Also renamed methods to be more distinct about the differences between
them. Everything goes through bearer auth but in some cases we are
authenticating a user and other times it's either a server or a
particular api key.
2024-02-14 08:29:54 -10:00
Lilia Kai
e37b848ef5 Refactor auth methods
De duplicate some common codepaths. Also, for routes accepting basic
authentication, allow bearer auth as an alternative. This allows
clients to switch to bearer auth opportunistically, but we won't
have to coordinate deployments.

Basic auth should be deprecated since we don't really use a
user/password auth scheme.
2024-01-31 12:38:37 -10:00
msramalho
bbab27ff3c simplifies dev compose and removes bad redis command - was no longer working since other containers try to use credentials 2023-09-15 01:04:37 +01:00
Lilia Kai
43144330a7 Move dev configs to their own file 2023-09-06 15:01:46 +02:00