Default PhoenixReplay.Sanitizer.
- Replaces the value of any key whose name contains
password,token,secret,api_key,private_key,credential,card_number,credit_cardorone_timewith"[FILTERED]". Keys are kept so recorded templates still find them. - In params, which include what users type into form controls, also
filters keys that have
cvv,cvc,csc,ssn,pinorotpas a word of their own, such ascard_cvvorpinCodebut notshipping. Assigns keep them: an assign named:pinor:otp_appis usually not a secret, and a filtered one can break the replay. - Recurses into maps, lists, tuples and structs, and compacts
Ecto.ChangesetandPhoenix.HTML.Formruntime metadata.
Opaque standard-library structs such as MapSet and DateTime, and
URI, are kept as they are: no key in them tells a secret apart.
LiveView internals that cannot be replayed never reach a sanitizer.