summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/app.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-08-09 05:21:43 +0200
committerChristophe Besson <cbesson@gmail.com>2026-08-09 05:21:43 +0200
commita01088d2a1679467124ae230ffda4d39fb3d83a2 (patch)
treeba227b6485c4528fbd4fc082d368ec85fc53cfdc /packages/meshbay-hub/src/meshbay_hub/app.py
parent95e045272243043ed9a207115f7737a0e3eb1ccc (diff)
downloadmeshbay-a01088d2a1679467124ae230ffda4d39fb3d83a2.tar.gz
feat(hub): add CSAM hash matching module — 5.8
CSAMChecker: loads blake3 hash database from file (NCMEC/IWF format). check_content_hash(): used before serving public content. /v1/admin/csam/status: hash count + DB path. /v1/admin/csam/check: admin-only hash check (no hash logged). Hash database NOT included — hub operators must obtain access from NCMEC (US) or IWF (EU). Instructions in csam.py header. 59/59 tests. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/app.py')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/app.py b/packages/meshbay-hub/src/meshbay_hub/app.py
index dcb255b..1c494fa 100644
--- a/packages/meshbay-hub/src/meshbay_hub/app.py
+++ b/packages/meshbay-hub/src/meshbay_hub/app.py
@@ -27,6 +27,7 @@ from meshbay_hub.api.groups import router as groups_router
from meshbay_hub.api.revocation import router as revocation_router
from meshbay_hub.api.moderation import router as moderation_router
from meshbay_hub.api.federation import router as federation_router
+from meshbay_hub.csam import csam_router
from meshbay_hub.api.relay import router as relay_router
from meshbay_hub.api.webapp import router as webapp_router
from meshbay_hub.api.middleware import limiter
@@ -72,6 +73,7 @@ def create_app(cfg: HubConfig | None = None) -> FastAPI:
app.include_router(revocation_router)
app.include_router(moderation_router)
app.include_router(federation_router)
+ app.include_router(csam_router)
app.include_router(relay_router)
app.include_router(webapp_router)