Closed
Bug 966353
Opened 9 years ago
Closed 8 years ago
What should we do if CryptoUtils.computeHAWK fails?
Categories
(Firefox :: Sync, defect, P2)
Firefox
Sync
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jedp, Unassigned)
References
Details
computeHAWK is used to compute the HAWK auth header for both services/sync/modules/browserid_identity.js and services/common/rest.js. Investigate possible failure modes and how those modules should respond to an error
Updated•9 years ago
|
Jed, What failure modes do you forsee here? Or maybe just logging is necessary?
Flags: needinfo?(jparsons)
Priority: -- → P2
Reporter | ||
Comment 2•9 years ago
|
||
In Bug 957863 Comment 31, :rnewman asked whether CryptoUtils.computeHAWK could fail. Since I didn't have an immediate answer, I found it a good question, and felt it deserved further thought. So I opened this bug. I cannot, however, see what special cases could induce this to fail. CryptoUtils.computeHAWK already checks for the more likely errors and throws if necessary. And we are not, as far as I can see, doing anything that would be likely to cause an out-of-memory eviction mid-process on b2g. (The same goes for the rest of our crypto operations, in particular pbkdf2.) In the end, I came to the same conclusion as you may have, namely that some verbose logging might be useful in case of error, but for now I don't see much else to do.
Flags: needinfo?(jparsons)
Comment 3•9 years ago
|
||
Part of the question is: if computeHAWK throws, do we do the right thing? That should be easy to test by making computeHAWK always throw. If there are no pernicious failure modes, and all throws are handled correctly, then thumbs up.
Comment 4•9 years ago
|
||
I had computeHAWK throw, and it put the browser in the "signin to reconnect to Sync" state, which is what I expected to happen. FxA already does some logging when its use of computeHAWK throws: 1394153287954 FirefoxAccounts ERROR HAWK.signCertificate error: {} I don't think this should be a Fx29 blocker anymore though.
Reporter | ||
Updated•9 years ago
|
Assignee: jed+bmo → nobody
Comment 6•8 years ago
|
||
It sounds like this is working more-or-less as intended and we can just close it out.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Updated•5 years ago
|
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•