miniproto.security
miniproto.security
Section titled “miniproto.security”Public helpers for redacting sensitive values before diagnostic output.
Public objects
Section titled “Public objects”REDACTED— Public attributeminiproto.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 recognizedkey=valueandkey: valuesecrets in text.redact_value— Replace a value with the fixed redaction marker.safe_repr— Return a representation after recursively redacting supported secret shapes.