- Created `StellaOps.TestKit.Tests` project for unit tests related to determinism. - Implemented `DeterminismManifestTests` to validate deterministic output for canonical bytes and strings, file read/write operations, and error handling for invalid schema versions. - Added `SbomDeterminismTests` to ensure identical inputs produce consistent SBOMs across SPDX 3.0.1 and CycloneDX 1.6/1.7 formats, including parallel execution tests. - Updated project references in `StellaOps.Integration.Determinism` to include the new determinism testing library.
48 lines
1.4 KiB
Markdown
48 lines
1.4 KiB
Markdown
# Timeline forensics
|
|
|
|
Purpose
|
|
- Provide an append-only event ledger for audit, replay, and incident analysis.
|
|
- Support deterministic exports for offline review.
|
|
|
|
Event model
|
|
- event_id (ULID)
|
|
- tenant
|
|
- timestamp (UTC ISO-8601)
|
|
- category (scanner, policy, runtime, evidence, notify)
|
|
- details (JSON payload)
|
|
- trace_id for correlation
|
|
|
|
Event kinds
|
|
- scan.completed
|
|
- policy.verdict
|
|
- attestation.verified
|
|
- evidence.ingested
|
|
- notify.sent
|
|
- runtime.alert
|
|
- redaction_notice (compensating event)
|
|
|
|
APIs
|
|
- GET /api/v1/timeline/events with filters for tenant, category, time window, trace_id.
|
|
- GET /api/v1/timeline/events/{id} for a single event.
|
|
- GET /api/v1/timeline/export for NDJSON exports.
|
|
- Headers: X-Stella-Tenant, optional X-Stella-TraceId, If-None-Match.
|
|
|
|
Query guidance
|
|
- Use category plus trace_id to track scan to policy to notify flow.
|
|
- Use tenant and timestamp ranges for SLA audits.
|
|
- CLI parity: stella timeline list mirrors the API.
|
|
|
|
Retention and redaction
|
|
- Append-only storage; no deletes.
|
|
- Redactions use redaction_notice events that reference the superseded event.
|
|
- Retention is tenant-configurable and exported weekly to cold storage.
|
|
|
|
Offline posture
|
|
- Offline kits include timeline exports for compliance review.
|
|
- Exports include stable ordering and manifest hashes.
|
|
|
|
Related references
|
|
- security/forensics-and-evidence-locker.md
|
|
- observability.md
|
|
- docs/forensics/timeline.md
|