Display
and Debug
don't honor @sensitive
for individual fields
#1833
Labels
Display
and Debug
don't honor @sensitive
for individual fields
#1833
As discussed in #1743 (comment), the current
@sensitive
implementation only respects the trait when logging the structure containing the sensitive field, but not when logging the field itself.A possible fix to this issue, is to newtype
@sensitive
shapes in the generated code, overriding theirDisplay
andDebug
implementations through theSensitive
type.The text was updated successfully, but these errors were encountered: