Consider a scenario where a company operates a service which is HIPAA compliant. This service requires storing patient emails which may contain personally identifiable information (PII). This PII is redacted and encrypted when the email is stored at rest.
One day a problem occurs—the system crashes for certain emails, in a way that cannot be reproduced with the redacted emails.
To debug this problem engineers require the original email text.
What is the right procedure to expose it in a controlled manner? Is it even allowed?