Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

fix: floor pytest at 9.0.3 across every service (#701)

Beenu Arora4aa7e33994c1
diff --git a/services/actions/pyproject.toml b/services/actions/pyproject.toml
index c1c339add..fd3512b42 100644
--- a/services/actions/pyproject.toml
+++ b/services/actions/pyproject.toml
@@ -21,8 +21,11 @@ python-dateutil = "^2.8.2"
cryptography = ">=42,<51"
[tool.poetry.group.dev.dependencies]
-pytest = ">=7.4,<10.0"
-pytest-asyncio = ">=0.23,<1.5"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
+pytest-asyncio = ">=1.0,<2.0"
[build-system]
requires = ["poetry-core"]
diff --git a/services/agents/poetry.lock b/services/agents/poetry.lock
index efe37a4db..03ccee7b2 100644
--- a/services/agents/poetry.lock
+++ b/services/agents/poetry.lock
@@ -5858,4 +5858,4 @@ cffi = ["cffi (>=1.17,<2.0) ; platform_python_implementation != \"PyPy\" and pyt
[metadata]
lock-version = "2.1"
python-versions = "^3.11"
-content-hash = "be49432f329c1cb289dc4b67fbf9ab7a9581b2caa0fa167d4614c26414608c5c"
+content-hash = "2cd5ec1ae7d768f1eab8e6969e9593a400e2e07d48f034a8c2e29d2b58458808"
diff --git a/services/agents/pyproject.toml b/services/agents/pyproject.toml
index 1e115ad80..a48056cb2 100644
--- a/services/agents/pyproject.toml
+++ b/services/agents/pyproject.toml
@@ -57,8 +57,11 @@ cryptography = ">=46,<51"
jsonschema = ">=4.21,<5.0"
[tool.poetry.group.dev.dependencies]
-pytest = ">=7.4,<10.0"
-pytest-asyncio = ">=0.23,<1.5"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
+pytest-asyncio = ">=1.0,<2.0"
respx = ">=0.22,<0.24"
[tool.pytest.ini_options]
diff --git a/services/api/pyproject.toml b/services/api/pyproject.toml
index 5ee85a3c6..6e9f5c4f3 100644
--- a/services/api/pyproject.toml
+++ b/services/api/pyproject.toml
@@ -56,8 +56,11 @@ weasyprint = ">=62,<71" # WS-G2: server-side PDF generation from print-
croniter = ">=2.0,<7.0"
[tool.poetry.group.dev.dependencies]
-pytest = ">=8.2,<10.0"
-pytest-asyncio = ">=0.23.6,<1.5.0"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
+pytest-asyncio = ">=1.0,<2.0"
pytest-cov = ">=5,<8"
httpx = ">=0.27,<0.29"
ruff = ">=0.4.4,<0.17.0"
diff --git a/services/connectors/pyproject.toml b/services/connectors/pyproject.toml
index c2b4c6ab4..e12e4e263 100644
--- a/services/connectors/pyproject.toml
+++ b/services/connectors/pyproject.toml
@@ -30,8 +30,11 @@ asyncpg = "^0.29.0"
cryptography = ">=44.0.1,<51"
[tool.poetry.group.dev.dependencies]
-pytest = "^7.4.0"
-pytest-asyncio = "^0.23.0"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
+pytest-asyncio = ">=1.0,<2.0"
respx = "^0.20.0"
# Phase 2.2 — coverage floor for CI gate.
diff --git a/services/fusion/pyproject.toml b/services/fusion/pyproject.toml
index f48ec21ce..4ffba6ac9 100644
--- a/services/fusion/pyproject.toml
+++ b/services/fusion/pyproject.toml
@@ -28,8 +28,11 @@ numpy = "^1.26.0"
clickhouse-driver = "^0.2.6"
[tool.poetry.group.dev.dependencies]
-pytest = "^7.4.0"
-pytest-asyncio = "^0.23.0"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
+pytest-asyncio = ">=1.0,<2.0"
pytest-cov = "^4.1.0"
black = ">=26.3.1,<27"
ruff = "^0.2.0"
diff --git a/services/mesh/pyproject.toml b/services/mesh/pyproject.toml
index 89987f70a..f196d72ad 100644
--- a/services/mesh/pyproject.toml
+++ b/services/mesh/pyproject.toml
@@ -15,7 +15,10 @@ cryptography = ">=42,<51"
httpx = ">=0.27,<0.29"
[tool.poetry.group.dev.dependencies]
-pytest = ">=8.2,<10.0"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
[build-system]
requires = ["poetry-core"]
diff --git a/services/osquery-tls/pyproject.toml b/services/osquery-tls/pyproject.toml
index 049811c73..4bddedb14 100644
--- a/services/osquery-tls/pyproject.toml
+++ b/services/osquery-tls/pyproject.toml
@@ -23,8 +23,11 @@ prometheus-client = ">=0.20,<0.26"
cryptography = ">=44.0.1,<51"
[tool.poetry.group.dev.dependencies]
-pytest = "^8.2.0"
-pytest-asyncio = ">=0.23.6,<1.4.0"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
+pytest-asyncio = ">=1.0,<2.0"
pytest-cov = "^5.0.0"
httpx = ">=0.27,<0.29"
ruff = "^0.4.4"
diff --git a/services/slack-bot/poetry.lock b/services/slack-bot/poetry.lock
index 6fbf26671..794d5ad02 100644
--- a/services/slack-bot/poetry.lock
+++ b/services/slack-bot/poetry.lock
@@ -1126,44 +1126,61 @@ gcp-secret-manager = ["google-cloud-secret-manager (>=2.23.1)"]
toml = ["tomli (>=2.0.1)"]
yaml = ["pyyaml (>=6.0.1)"]
+[[package]]
+name = "pygments"
+version = "2.21.0"
+description = "Pygments is a syntax highlighting package written in Python."
+optional = false
+python-versions = ">=3.9"
+groups = ["dev"]
+files = [
+ {file = "pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9"},
+ {file = "pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c"},
+]
+
+[package.extras]
+windows-terminal = ["colorama (>=0.4.6)"]
+
[[package]]
name = "pytest"
-version = "7.4.4"
+version = "9.1.1"
description = "pytest: simple powerful testing with Python"
optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.10"
groups = ["dev"]
files = [
- {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"},
- {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"},
+ {file = "pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c"},
+ {file = "pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313"},
]
[package.dependencies]
-colorama = {version = "*", markers = "sys_platform == \"win32\""}
-iniconfig = "*"
-packaging = "*"
-pluggy = ">=0.12,<2.0"
+colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""}
+iniconfig = ">=1.0.1"
+packaging = ">=22"
+pluggy = ">=1.5,<2"
+pygments = ">=2.7.2"
[package.extras]
-testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
+dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"]
[[package]]
name = "pytest-asyncio"
-version = "0.23.8"
+version = "1.4.0"
description = "Pytest support for asyncio"
optional = false
-python-versions = ">=3.8"
+python-versions = ">=3.10"
groups = ["dev"]
files = [
- {file = "pytest_asyncio-0.23.8-py3-none-any.whl", hash = "sha256:50265d892689a5faefb84df80819d1ecef566eb3549cf915dfb33569359d1ce2"},
- {file = "pytest_asyncio-0.23.8.tar.gz", hash = "sha256:759b10b33a6dc61cce40a8bd5205e302978bbbcc00e279a8b61d9a6a3c82e4d3"},
+ {file = "pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1"},
+ {file = "pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42"},
]
[package.dependencies]
-pytest = ">=7.0.0,<9"
+pytest = ">=8.4,<10"
+typing-extensions = {version = ">=4.12", markers = "python_version < \"3.13\""}
[package.extras]
-docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1.0)"]
+docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1)", "sphinx-tabs (>=3.5)"]
testing = ["coverage (>=6.2)", "hypothesis (>=5.7.1)"]
[[package]]
@@ -1798,4 +1815,4 @@ propcache = ">=0.2.1"
[metadata]
lock-version = "2.1"
python-versions = "^3.11"
-content-hash = "dab06e26cca73ea97e61f0b57460f71f563b91c9512fa22aa72c2fd93af8af72"
+content-hash = "cedba0aec73fdeeadf7254d0e8efbaf4d035eb91f833fd50a6786f7c833e1b41"
diff --git a/services/slack-bot/pyproject.toml b/services/slack-bot/pyproject.toml
index d206afd48..c5bf03baa 100644
--- a/services/slack-bot/pyproject.toml
+++ b/services/slack-bot/pyproject.toml
@@ -28,8 +28,11 @@ structlog = ">=24.1,<26.0"
asyncpg = ">=0.29,<0.31"
[tool.poetry.group.dev.dependencies]
-pytest = "^7.4.0"
-pytest-asyncio = "^0.23.0"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
+pytest-asyncio = ">=1.0,<2.0"
respx = "^0.21.1"
[build-system]
diff --git a/services/teams-bot/poetry.lock b/services/teams-bot/poetry.lock
index d5bf8a1d7..c82ad07f5 100644
--- a/services/teams-bot/poetry.lock
+++ b/services/teams-bot/poetry.lock
@@ -453,44 +453,61 @@ gcp-secret-manager = ["google-cloud-secret-manager (>=2.23.1)"]
toml = ["tomli (>=2.0.1)"]
yaml = ["pyyaml (>=6.0.1)"]
+[[package]]
+name = "pygments"
+version = "2.21.0"
+description = "Pygments is a syntax highlighting package written in Python."
+optional = false
+python-versions = ">=3.9"
+groups = ["dev"]
+files = [
+ {file = "pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9"},
+ {file = "pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c"},
+]
+
+[package.extras]
+windows-terminal = ["colorama (>=0.4.6)"]
+
[[package]]
name = "pytest"
-version = "7.4.4"
+version = "9.1.1"
description = "pytest: simple powerful testing with Python"
optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.10"
groups = ["dev"]
files = [
- {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"},
- {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"},
+ {file = "pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c"},
+ {file = "pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313"},
]
[package.dependencies]
-colorama = {version = "*", markers = "sys_platform == \"win32\""}
-iniconfig = "*"
-packaging = "*"
-pluggy = ">=0.12,<2.0"
+colorama = {version = ">=0.4", markers = "sys_platform == \"win32\""}
+iniconfig = ">=1.0.1"
+packaging = ">=22"
+pluggy = ">=1.5,<2"
+pygments = ">=2.7.2"
[package.extras]
-testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
+dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"]
[[package]]
name = "pytest-asyncio"
-version = "0.23.8"
+version = "1.4.0"
description = "Pytest support for asyncio"
optional = false
-python-versions = ">=3.8"
+python-versions = ">=3.10"
groups = ["dev"]
files = [
- {file = "pytest_asyncio-0.23.8-py3-none-any.whl", hash = "sha256:50265d892689a5faefb84df80819d1ecef566eb3549cf915dfb33569359d1ce2"},
- {file = "pytest_asyncio-0.23.8.tar.gz", hash = "sha256:759b10b33a6dc61cce40a8bd5205e302978bbbcc00e279a8b61d9a6a3c82e4d3"},
+ {file = "pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1"},
+ {file = "pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42"},
]
[package.dependencies]
-pytest = ">=7.0.0,<9"
+pytest = ">=8.4,<10"
+typing-extensions = {version = ">=4.12", markers = "python_version < \"3.13\""}
[package.extras]
-docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1.0)"]
+docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1)", "sphinx-tabs (>=3.5)"]
testing = ["coverage (>=6.2)", "hypothesis (>=5.7.1)"]
[[package]]
@@ -952,4 +969,4 @@ files = [
[metadata]
lock-version = "2.1"
python-versions = "^3.11"
-content-hash = "6eb17366b9d2cc91a61cebb05aa04f87aaa64fffa81f1509937d5ede3de5b252"
+content-hash = "f37ac073a59ea007bc27a95c4b0f4e37de7f8a23d404c7296081dcb8968e45f0"
diff --git a/services/teams-bot/pyproject.toml b/services/teams-bot/pyproject.toml
index fc5673d38..d57205cd1 100644
--- a/services/teams-bot/pyproject.toml
+++ b/services/teams-bot/pyproject.toml
@@ -19,8 +19,11 @@ httpx = ">=0.27,<0.29"
structlog = ">=24.1,<26.0"
[tool.poetry.group.dev.dependencies]
-pytest = "^7.4.0"
-pytest-asyncio = "^0.23.0"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
+pytest-asyncio = ">=1.0,<2.0"
respx = "^0.21.1"
[build-system]
diff --git a/services/threatintel/pyproject.toml b/services/threatintel/pyproject.toml
index 6b2e89e33..da5ec53a5 100644
--- a/services/threatintel/pyproject.toml
+++ b/services/threatintel/pyproject.toml
@@ -26,8 +26,11 @@ aiokafka = "^0.10.0"
mmh3 = "^4.1.0"
[tool.poetry.group.dev.dependencies]
-pytest = "^7.4.0"
-pytest-asyncio = "^0.23.0"
+# Floored at 9.0.3 for GHSA advisory coverage; the caret pins excluded it.
+# pytest-asyncio is widened to match — 0.23 predates pytest 9 and the two
+# resolve together or not at all.
+pytest = ">=9.0.3,<10.0"
+pytest-asyncio = ">=1.0,<2.0"
[build-system]
requires = ["poetry-core"]