Closed Bug 929066 Opened 12 years ago Closed 12 years ago

Handle minor clock skew when generating BrowserID certificates and assertions

Categories

(Firefox for Android Graveyard :: Android Sync, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 29

People

(Reporter: nalexander, Assigned: rnewman)

References

Details

(Whiteboard: [qa+])

Attachments

(2 files)

A little clock skew (single-digit seconds) is very common between my laptop, Android device, and the multiple servers involved with generating an FxAccount certificate and exchanging for a token server token. This ticket is a stop-gap; we will probably need to do more before we go to production. I've filed tickets for the relevant servers at [1] and [2]. [1] https://github.com/mozilla/picl-idp/issues/233 [2] https://github.com/mozilla/picl-oldsync/issues/3
Comment on attachment 819879 [details] [review] Stop-gap allowing for local clock skew. This patch is a truly terrible idea. As written, it generates certificates 20 seconds in the past, and assertions 10 seconds in the past. This works when we generate both locally, which is common in testing. In the wild, we will *never* generate certificates... so this introduces a 10 second or so window of instability. Live and learn.
Attachment #819879 - Flags: review?(rnewman)
Attached file Proposed patch. v1
Untested. Thoughts?
Attachment #8362029 - Flags: feedback?(nalexander)
Assignee: nalexander → rnewman
Status: NEW → ASSIGNED
https://hg.mozilla.org/services/services-central/rev/07195f5c3eb3 If this worked, incidence of timing-related auth failures should be reduced. Nick, please let me know when you try a build!
Whiteboard: [fixed in services][qa+]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in services][qa+] → [qa+]
Target Milestone: --- → Firefox 29
Depends on: 962668
Blocks: 962668
No longer depends on: 962668
Comment on attachment 8362029 [details] [review] Proposed patch. v1 This landed a while back. And is good!
Attachment #8362029 - Flags: review+
Attachment #8362029 - Flags: feedback?(nalexander)
Attachment #8362029 - Flags: feedback+
Product: Android Background Services → Firefox for Android
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: