FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Improve the logging with PII information - as in rejectDeferredRealize

Open agarwal-navin opened this issue 6 years ago • 8 comments

Right now, we omit the entire error message if it containsPII. We need to preserve the part of the error thats not PII.

Also, the PII information is removed from the Error string but it is still present in the call stack. It should be removed from the call stack as well.

agarwal-navin avatar Apr 23 '20 23:04 agarwal-navin

I think the origin of the error should generate an additional non-PII message for the logger to use and put it in the error object as an extra field.

curtisman avatar Aug 10 '20 23:08 curtisman

Riffing on Curtis's comment, to avoid duplication maybe the PII is what goes in a separate field on the error object, and it's always removed before logging. I think we can upgrade the CustomErrorWithProps class to support this kind of thing safely.

Then we really can say definitively "NEVER put PII in the error message"

markfields avatar Oct 09 '20 23:10 markfields

Moving to November to take pressure off finishing this month, per conversation with Si and Curtis.

markfields avatar Oct 13 '20 21:10 markfields

Also, the PII information is removed from the Error string but it is still present in the call stack

This is covered by #3755

markfields avatar Oct 19 '20 22:10 markfields

Information added to the remote channel context telemetry regarding the data store being loaded in can also be potential PII and would need to be stripped out prior to 3P objects being loaded in https://github.com/microsoft/FluidFramework/pull/4451

sumedhb1995 avatar Nov 23 '20 17:11 sumedhb1995

@chensixx - FYI I'll take this one from here, this topic has been coming up a bunch recently and I have several things in mind to do here. I'll put you on the PR though since we had discussed this area together!

markfields avatar Nov 30 '20 20:11 markfields

Another item to consider similar to #3755 that was duped in here, is when the error.message may contain PII (e.g. potentially IP addresses from network errors).

ChumpChief avatar Jan 25 '21 20:01 ChumpChief

Moving to Feb - work in privacy domain is a must for GA.

vladsud avatar Jan 26 '21 06:01 vladsud