Commit graph

41 commits

Author SHA1 Message Date
Luc Didry
38cc06e972
🐛 — Fix recurring tasks with gunicorn 2025-02-18 14:57:49 +01:00
Luc Didry
fd0c68cd4c
— Add missing dependency for fastapi-utils 2025-02-17 11:03:01 +01:00
Luc Didry
c98cd9c017
— No need cron tasks for DB cleaning anymore (fix #74 and #75) 2025-02-17 10:46:01 +01:00
Luc Didry
1853b4fead
💚 — Fix tests in CI 2024-11-28 16:51:28 +01:00
Luc Didry
868e91b866
🔨 — Update hatch 2024-11-28 15:51:32 +01:00
Luc Didry
04e33a8d24
🛂 — Allow to use a LDAP server for authentication (fix #64) 2024-11-28 15:37:07 +01:00
Luc Didry
5b999184d0
— Add a setting to set a reschedule delay if check failed (fix #67)
BREAKING CHANGE: `mo` is no longer accepted for declaring a duration in month in the configuration
You need to use `M`, `month` or `months`

Bonus:  - Allow to choose a frequency smaller than a minute
2024-11-27 16:26:56 +01:00
Luc Didry
6c3c44f5be
— Add Apprise as notification way (fix #50) 2024-09-04 17:21:04 +02:00
Luc Didry
7998333fc1
⬆ — Update httpx min version 2024-09-04 15:03:40 +02:00
Luc Didry
1c6abce9b9
— Add new check types: json-contains, json-has and json-is (fix #57) 2024-08-29 17:11:37 +02:00
Luc Didry
353d12240f
📌 — Fix httpx max version to avoid a test bug
Stacktrace of the test bug:
```
ImportError while loading conftest '/home/luc/tmp/framasoft/argos/tests/conftest.py'.
tests/conftest.py:6: in <module>
    from fastapi.testclient import TestClient
venv/lib/python3.12/site-packages/fastapi/testclient.py:1: in <module>
    from starlette.testclient import TestClient as TestClient  # noqa
venv/lib/python3.12/site-packages/starlette/testclient.py:362: in <module>
    class TestClient(httpx.Client):
venv/lib/python3.12/site-packages/starlette/testclient.py:444: in TestClient
    url: httpx._types.URLTypes,
E   AttributeError: module 'httpx._types' has no attribute 'URLTypes'
```
2024-08-27 14:23:59 +02:00
Luc Didry
5bd4d9909a
— Add mypy test 2024-07-04 13:33:54 +02:00
Luc Didry
09a858794d
— Add built-in authentication for human interface
Built-in user management is provided too
2024-06-21 13:40:47 +02:00
Luc Didry
907cd5878f
📝 — New documentation URL: doc is now on https://argos-monitoring.framasoft.org/ 2024-06-18 09:04:32 +02:00
Luc Didry
e363e6be4a
📝 — Document better how to deploy with gunicorn (fix #45) 2024-06-10 11:12:03 +02:00
Luc Didry
013ee48cf5 🔀 Merge branch 'fix-11' into 'main'
📝 — Improve documentation (fix #11)

Closes #11

See merge request framasoft/framaspace/argos!41
2024-04-10 15:24:35 +00:00
01b5cf06de
build: move to hatch for packaging 2024-04-08 08:37:15 +02:00
4e15c80559 [packaging] Add the license in the PyPI classifiers 2024-04-05 13:19:26 +02:00
107c8a70c8 release: update external links in the packaging file 2024-04-05 13:19:26 +02:00
1948658900 build: use make test rather than make tests
Mainly to match with other projects semantics.
2024-04-05 13:19:26 +02:00
b105555d77 chore: list Luc in the maintainers. 2024-04-05 11:09:42 +02:00
Luc Didry
2064d94fb9
📝 — Improve documentation (fix #11)
Extra:
- put psycopg2-binary in standard dependencies
2024-04-04 10:56:54 +02:00
Luc Didry
24e7778fa5
🎨 — Use a POST request for automatic refresh 2024-04-02 12:40:23 +02:00
Luc Didry
ce5019aaba
📝 — Improve documentation (fix #21) 2024-03-25 13:56:45 +01:00
08c3d8fc20 chore: reorder the pyproject.toml imports 2023-12-16 22:20:36 +01:00
Luc Didry
de1f0cc22a
— Implement mail alerts. Fix #15 2023-12-14 16:25:46 +01:00
Luc Didry
e10f4e9c2d Use Pylint 2023-12-14 15:20:33 +01:00
Luc Didry
61c3dd3fa7 🚨👷 — Add djlint in CI + fix djlint warnings 2023-11-22 15:54:37 +01:00
6e408e1cf7 Allow defining db pool size and max overflow in the settings 2023-11-16 17:08:05 +01:00
33becdd753 Accept all HTTP returned status for the SSL check.
Fixes #7
2023-10-30 15:53:23 +01:00
336c4e783b Add some more documentation 2023-10-20 01:09:38 +02:00
77adbe46eb 📝 Start a documentation 2023-10-19 22:46:01 +02:00
a9f823fbfa 🌱 Let's start with the Gitlab CI 2023-10-18 23:17:23 +02:00
9885a5809a Add an 'argos server clean' command that needs to be run periodically to clean the db 2023-10-18 21:45:10 +02:00
31edb95cb8 Don't let the agents fail. Retry on error 2023-10-18 17:28:27 +02:00
75a8af37f0 Added a few more template files 2023-10-18 02:23:36 +02:00
de3e94333a Add pydantic-settings to pyproject.toml 2023-10-17 23:55:51 +02:00
62ef133b36 Add Jinja2 dependency to pyproject.toml 2023-10-17 23:52:49 +02:00
d35be89f4b Support !include filename in the yaml files.
- run isort on the codebase
2023-10-10 11:45:33 +02:00
cdfb1e30ac Add authorization headers
- Service endpoints now require an authentication
- Changed the location of the commands, which are now in `commands.py`
- There is now only one "argos" command which can start the server or an agent.
2023-10-10 11:30:16 +02:00
42ec15c6f4 Working SSL checks, refactoring of the codebase.
- Start implementing some tests using pytest
- Packaged using pyproject.toml
- Implemented SSL checks using httpx
- Checks can now run partially on the server, to access the configuration and determine the severity of the error if any
- Used black to format all the files
- Added an utility to convert strings like "3d" and "3w" to days
- The internal representation of SSL thresholds is now a list of tuples
- Models were lacking some relationship between Tasks and Results
2023-10-09 19:33:58 +02:00