feat(ttp): E.3.4 API handlers wired to repo (rollups + Navigator)

Five GET rollup endpoints (techniques, by-identity, by-attacker,
by-campaign, by-session) and the Navigator export (fleet +
per-identity) now call into the TTPMixin methods. Rule catalogue
endpoint still returns [] — backed by the RuleStore which lands
at E.3.5/E.3.6.
This commit is contained in:
2026-05-01 08:06:53 -04:00
parent fee697694d
commit 89ce893792
7 changed files with 37 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ from fastapi import APIRouter, Depends
from decnet.telemetry import traced as _traced
from decnet.web.db.models import TechniqueRollupRow
from decnet.web.dependencies import require_viewer
from decnet.web.dependencies import repo, require_viewer
router = APIRouter()
@@ -30,5 +30,5 @@ async def api_list_techniques(
user: dict[str, Any] = Depends(require_viewer),
) -> list[TechniqueRollupRow]:
"""Distinct techniques observed across the fleet, with counts and
last-seen timestamps. Empty list at contract phase."""
return []
last-seen timestamps."""
return await repo.list_distinct_techniques()