Open
Description
I’m using mask_fields,
but it only masks the first half of the string.
so I’d like to propose a new feature
currently, mask_fields
only masks the first half of a string. To enable full masking, regex-based masking, and other custom policies, we want to support user-defined masking functions.
Proposal
- Configure via a dotted-path string (e.g.,
"custom_app.utils.full_mask"
). - If
mask_callable
is not provided, fall back to the default mask function, preserving the existingmask_fields
behavior for backward compatibility.
Benefits
- Flexible masking strategies: full, pattern-based(regex...), or any custom logic.
any feedback is welcome!