Personally Identifiable Information (PII), Traces and MessageLogging

MSDN talks about how credit card information can be accidentally logged during a trace . But the same article explains that “known” personally identifiable information is not recorded.

What would I like to know if there is a way to “flag” DataContract elements as PII in order to use the built-in .net feature to filter PII from traces and logs? I think the answer is no, because the user names and passwords that I suspect are part of the authentication steps, not part of the data contracts that follow authentication.

Despite this, is there any built-in .net attribute, I can annotate the data contract data or serializable class members, which means "hey, this is a secret security attribute, be careful!"

+4
source share
1 answer

I got the following blog explaining how to add the [PII] attribute to a data contract

http://blogs.msdn.com/b/martijnh/archive/2008/08/18/suppressing-personal-identifiable-information-pii-in-wcf-log-files.aspx

+4
source

Source: https://habr.com/ru/post/1435694/


All Articles