Open Bug 1230038 Opened 10 years ago Updated 1 year ago

Eventually remove old push crypto

Categories

(Core :: DOM: Push Subscriptions, task, P3)

task

Tracking

()

People

(Reporter: mt, Unassigned)

References

Details

(Whiteboard: btpp-backlog)

Bug 1225968 added new and improved push crypto. The old crypto is still in place for compatibility reasons, but can be eventually be removed. This bug tracks that.
Whiteboard: btpp-backlog
Priority: -- → P3

:jrconlin recently shared a graph here with the line for "aesgcm128 traffic seen by the push server" sitting comfortably at zero. I believe this bug is now actionable.

Since I've been in "remove unnecessary stuff from push crypto libraries" mode recently, I thought I'd have a quick go at removing this. Removing the old crypto code seems straightforward enough, and is a nice little cleanup. The problem is tests: we have a small number of tests that currently hard-code test data using aesgcm128 format. Before we can remove support for it, we'll need to re-generate appropriate test data using a newer encoding. Specifically:

  • The helpers in dom/push/test/webpush.js
  • The fixtures in testing/xpcshell/moz-http2/moz-http2.js
  • Some fixtures in dom/push/test/xpcshell/test_notification_data.js

Unfortunately, tracking down what the underlying raw data should be and figuring out how to re-encrypt it with a newer scheme would take me far beyond the little timebox I set myself for this diversion. I'd be happy to push my work-in-progress patch if anyone felt like diving in, but I won't push it here by default because it doesn't seem worth having a half-done patch lying around indefinitely.

Severity: normal → S3
Type: defect → task
You need to log in before you can comment on or make changes to this bug.