v0.4.0 — Structured audit logging
Added
- Structured audit logging via the shared
mecmcp-auditcrate (audit-v0.1.5). One event per tool call with caller attribution, target devices, outcome, and execution duration. Previously the server contained only anAUDIT_TARGETconstant with no active logging. - Change-set lifecycle auditing.
create_panos_change_set,approve_panos_change_set, andapply_panos_change_seteach emit an audit event. The approval event carries both the change-set id and the fingerprint digest, providing independent evidence that a second principal reviewed the exact digest later applied. Previouslymutation-state.json— a file the server itself rewrites — was the only record of approval. - New CLI flags for audit configuration:
--audit-format— choosejson(default, machine-parseable) orpretty(human-readable).--audit-log-file— write audit events to a file path.--audit-journald— emit audit events to systemd journal.--audit-redact— HMAC-pseudonymise declared fields (device names, caller identity) so the log can be shipped to a SIEM without leaking operational identifiers.--audit-hmac-key-file— path to the HMAC key for redaction; required when--audit-redactis enabled.
- Structured
Attribution(Human/Agent,on_behalf_of,change_ref) carried through the audit path and included in every logged event.
See CHANGELOG.md for complete details.