-
Notifications
You must be signed in to change notification settings - Fork 9
Encrypt SQLite databases from mozStorageService #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: enterprise-main
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| nsresult GetKeyForFile(nsIFile* aFile, nsCString& keyString) { | ||
| nsAutoCString telemetryFilename; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird naming here.
security/keystore/KeyStorage.sys.mjs
Outdated
| } | ||
|
|
||
| try { | ||
| pk11token.login(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we don't actually want this (force pp login dialog?), so this couldn't land without @beurdouche 's follow up patches.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not on enterprise, no, but this wouldn't do anything here, because the token is already unlocked. I can remove it for this PR, but release needs some way to unlock the token once, for fetching the keys, and then possibly re-locking it once they are loaded.
|
I think this wants tests as well. For Foxfooding we can deal with some flakyness but causing all SQLite databases to get corrupted will probably get old soon for the poor testers 😄 |
4366c03 to
6c41571
Compare
6c41571 to
904029f
Compare
904029f to
8afd65b
Compare
Encrypt SQLite database whose connections are created in mozStorageService. Cloned and
ATTACHed connections are also affected. The mechanism is behind a newsecurity.storage.keystore.enabled. The keys for the connections are stored, encrypted by the SDR, in a newbikeshed/keystore.enc.