Improve the logging with PII information - as in rejectDeferredRealize
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.
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.
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"
Moving to November to take pressure off finishing this month, per conversation with Si and Curtis.
Also, the PII information is removed from the Error string but it is still present in the call stack
This is covered by #3755
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
@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!
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).
Moving to Feb - work in privacy domain is a must for GA.