diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-09 05:21:43 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-09 05:21:43 +0200 |
| commit | a01088d2a1679467124ae230ffda4d39fb3d83a2 (patch) | |
| tree | ba227b6485c4528fbd4fc082d368ec85fc53cfdc /packages/meshbay-hub/src/meshbay_hub/app.py | |
| parent | 95e045272243043ed9a207115f7737a0e3eb1ccc (diff) | |
| download | meshbay-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.py | 2 |
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) |