Skip to content

miniproto.security

Public helpers for redacting sensitive values before diagnostic output.

  • REDACTED — Public attribute miniproto.security.redaction.REDACTED.
  • is_sensitive_key — Return whether a mapping key is recognized as sensitive.
  • redact_mapping — Return a recursively sanitized copy of a mapping.
  • redact_text — Mask recognized key=value and key: value secrets in text.
  • redact_value — Replace a value with the fixed redaction marker.
  • safe_repr — Return a representation after recursively redacting supported secret shapes.