Commit Graph

4 Commits

Author SHA1 Message Date
pulse-triage[bot]
0771be9b27 Keep audit CSV text literal without rewriting signed evidence
Project untrusted CSV text after original event signature verification. Preserve JSON, scoped selection, metadata and export limits; cover all text columns, real signature verdicts, repeat exports and the authenticated HTTP route.

Change-source: pulse-maintainer
2026-10-27 17:46:37 +00:00
pulse-triage[bot]
5cf7d82c6a Bound synchronous audit exports and summaries
Limit the actual query to 10001 rows and refuse selections over 10000 before verification or encoding. Preserve complete accepted results, selectors, signatures and access boundaries, and explain how to narrow a refused selection.

Change-source: pulse-maintainer
2026-10-26 16:06:56 +00:00
rcourtman
d06ed2edb3 refactor: Add testability improvements to core packages
hostagent/commands.go:
- Extract execCommandContext as mockable variable

hostagent/proxmox_setup.go:
- Convert stateFilePath constants to variables (testable)
- Extract runCommand and lookPath as mockable functions
- Add duplicate comment (minor cleanup needed)

notifications/notifications.go:
- Add GetQueueStats() method for interface compliance
- Used by NotificationMonitor interface

updates/manager.go:
- Add AddSSEClient, RemoveSSEClient, GetSSECachedStatus methods
- Enables interface-based SSE client management

pkg/audit/export.go:
- Minor testability improvements

go.mod/go.sum:
- Add stretchr/objx v0.5.2 (test mocking dependency)
2026-01-19 19:25:38 +00:00
rcourtman
d0ba203203 feat(audit): add comprehensive audit logging system
- Add SQLite-backed audit logger for persistent audit trails
- Implement cryptographic signing for tamper detection
- Add audit log export functionality
- Add webhook notifications for audit events
2026-01-12 15:20:33 +00:00