Task · MDE-0021

Avoid false MAC redaction in structured data logs

Description

PR #733 P3.9 remains in core/otel_data_logs.py:70-110 and emit filtering. The bare 12-hex alternative is applied to every string attribute and the body, so legitimate names or IDs such as a store label ending in twelve hex characters are irreversibly replaced. Preserve default identifier scrubbing while applying the bare form only where the key or context makes a MAC plausible, and expose a bounded redaction marker if operators need to distinguish redacted from absent.

Acceptance Criteria

Definition of Done

Implementation Plan

Wave 1 L6: make bare-MAC redaction context-sensitive while retaining delimiter-form scrubbing; root integrates and finalizes.

Final Summary

Implemented and verified in 7327153. MAC redaction is context-aware without weakening separated-form protection; full gates passed.

References

View the source file on GitHub