Verify audit chain
verify_audit_chainVerifies the HMAC-SHA256 signature chain of audit events in mcpg_audit.events. Returns status, count of events checked, and the first invalid event ID if the chain is broken.
Instructions
Verify the HMAC-SHA256 signature chain of persisted audit events in mcpg_audit.events. Returns an object with verified (bool), events_checked (int), the first_event_id and last_event_id covered by the walk, and (on failure) error and first_invalid_id pointing at where the chain broke.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||