-
Notifications
You must be signed in to change notification settings - Fork 24
Implement coi monitor audit subcommand #185
Copy link
Copy link
Open
Description
Summary
The coi monitor audit subcommand is referenced in documentation but is not implemented. The code in internal/cli/monitor.go has the command commented out with a TODO: Implement or remove note (lines 148-162).
Currently, users must manually read JSONL audit log files:
cat ~/.coi/audit/<container-name>.jsonl
cat ~/.coi/audit/<container-name>.jsonl | grep '"level":"high"'Proposed Feature
Implement coi monitor audit as a proper subcommand with:
- Container filtering:
coi monitor audit <container-name>orcoi monitor audit --container <name> - Severity filtering:
--level critical,highto filter by threat level - Export:
--export report.jsonto export filtered events to a file - Formatted output: Human-readable table format by default,
--jsonfor raw output - Time filtering:
--since 1hor--since 2026-03-01to limit time range
Context
- The function
monitorAuditCommandexists but is unused (//nolint:unused) - Audit logs are stored at
~/.coi/audit/<container-name>.jsonland~/.coi/audit/<container-name>-nft.jsonl - README and wiki have been updated to use
catcommands as a workaround until this is implemented
References
internal/cli/monitor.go:148-196- commented out command and basic implementation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels