Add host correlation and assurance coverage
This commit is contained in:
parent
8194d13734
commit
b40ac4252c
36 changed files with 944 additions and 23 deletions
|
|
@ -510,6 +510,15 @@ def _render_timelines(views: list[dict], width: int) -> list[str]:
|
|||
sigs = ", ".join(inc.get("signatures") or [])
|
||||
if sigs:
|
||||
lines.append(f" signatures: {_clip(sigs, max(20, width - 15))}")
|
||||
correlations = inc.get("correlations") or []
|
||||
for corr in correlations:
|
||||
lines.append(
|
||||
f" correlation sid={corr.get('sid', '?')} "
|
||||
f"{corr.get('severity', '?')} {corr.get('signature', '?')}"
|
||||
)
|
||||
lines.append(
|
||||
f" {_clip(corr.get('summary', ''), max(20, width - 4))}"
|
||||
)
|
||||
timeline = view.get("timeline") or []
|
||||
if not timeline:
|
||||
lines.append(" No timeline rows.")
|
||||
|
|
@ -566,6 +575,7 @@ def _render_integrity(report: dict, width: int) -> list[str]:
|
|||
pacman = anchors.get("pacman") or {}
|
||||
footprint = report.get("sentinel_footprint") or {}
|
||||
reconciliation = report.get("reconciliation") or {}
|
||||
hash_chain = report.get("hash_chain") or {}
|
||||
lines = [
|
||||
f"Overall: {report.get('status', 'unknown')}",
|
||||
f"Generated: {report.get('generated_at', '?')}",
|
||||
|
|
@ -588,6 +598,9 @@ def _render_integrity(report: dict, width: int) -> list[str]:
|
|||
f" Package DB: {pkgdb.get('status', 'unknown')} prefix={pkgdb.get('fingerprint_prefix', '')}",
|
||||
f" Pacman keyring:{' present' if pacman.get('keyring_present') else ' missing'}",
|
||||
f" SigLevel: {pacman.get('siglevel_status', 'unknown')}",
|
||||
f" Hash chain: {'present' if hash_chain.get('exists') else 'missing'} "
|
||||
f"count={hash_chain.get('count', 0)}",
|
||||
f" {_clip(hash_chain.get('path', '?'), max(20, width - 17))}",
|
||||
"",
|
||||
"Sentinel footprint:",
|
||||
f" Present: {footprint.get('present', 0)}/{footprint.get('configured', 0)}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue