-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Guidelines for client side data storage
yan edited this page Mar 11, 2021
·
1 revision
When storing sensitive data in the browser, follow these rules:
- Private keys, auth tokens / cookies, and passwords / passphrases should be stored encrypted using OSCrypt. They should never be in logging messages.
- URLs related to browsing activity should never be stored or logged without sanitization to remove credentials, sensitive params, etc. It is safest to only store hostname if needed.
- Hostnames / sanitized URLs, including in logs, can be stored in plaintext, but must be cleared from disk when the user clears browser history, including if they set the browser to automatically clear history on exit.
- PII such as email addresses require a privacy review ticket at https://github.com/brave/security assigned to Brave's Data Protection Officer.
In addition:
- None of the above should be sent to a server without clear user consent and showing the user a link to the applicable privacy policy.
- None of the above should be stored from incognito, including Tor, sessions.