Skip to content

Add an option to LogMasked to log text when showFirst and showLast are set and value has length <= showFirst + showLast #229

@aline-almeida-planet

Description

@aline-almeida-planet

Is your feature request related to a problem? Please describe.
Smaller sensitive fields get logged in full

Describe the solution you'd like
add an option to LogMasked, so that when masking a string with ShowFirst and ShowLast, but the string has smaller length, completely masksthe content.
eg. ShowFirst = 6 and ShowLast = 4

  • applied to "123456aaaaaaa1234" will produce "123456***1234"
  • applied to "1234561234" will produce "***"
  • applied to "1234" will produce "***"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions