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:
@@ -11,7 +11,7 @@ from fastapi import APIRouter, Depends
|
||||
|
||||
from decnet.telemetry import traced as _traced
|
||||
from decnet.web.db.models import IdentityTechniqueRow
|
||||
from decnet.web.dependencies import require_viewer
|
||||
from decnet.web.dependencies import repo, require_viewer
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@@ -31,5 +31,5 @@ async def api_ttp_by_attacker(
|
||||
attacker_uuid: str,
|
||||
user: dict[str, Any] = Depends(require_viewer),
|
||||
) -> list[IdentityTechniqueRow]:
|
||||
"""Per-Attacker (per-IP) TTP rows. Empty at contract phase."""
|
||||
return []
|
||||
"""Per-Attacker (per-IP) TTP rows."""
|
||||
return await repo.list_techniques_by_attacker(attacker_uuid)
|
||||
|
||||
Reference in New Issue
Block a user