-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Bump webpush from 0.3 to 1.1.0 #18457
Conversation
WebPush changed content encoding from aesgcm to aes128gcm, so the code needs a few changes.
toot-relay, PushToFCM, toot-relay-fcm, and webpush-fcm-relay are all hardcoded to the aesgcm algorithm. This would break compatibility with the official apps, Toot! on iOS, Subway Tooter, and Fedi for Pleroma and Mastodon. |
😩
In the meantime, I guess I can try making a |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has merge conflicts that must be resolved before it can be merged. |
@Gargron are these still hardcoded? I just noticed that PushPad have forked the Webpush gem and have upgraded it to include the OpenSSL 3.0 changes, and more: https://github.com/pushpad/web-push (I've opened a PR for migrating to web-push: #26496 |
This removes the need for pulling the gem from a commit in a fork of the GitHub repository, in favour of using a gem that is maintained and published on rubygems. This may have similar issues to mastodon#18457 with regards to compatibility, however it does include the same OpenSSL 3 fix from Claire's fork
If it is possible, a backward compatible solution would be to use |
Has there been any more thought to an upgrade path on this? Seems worth nudging things towards standards where possible ... could leave some legacy support in place basically forever, or until sufficient client support/upgrades happened. |
I plan to do it in some weeks and open a PR :) |
Excellent, will look for it. |
Here it is: #33528 |
Closing in favor of #33528 |
WebPush changed content encoding from
aesgcm
toaes128gcm
, so the code needs a few changes. (See zaru/webpush#75)The encryption algorithm remain the same, and as far as I know, the content encoding for
aesgcm
is being deprecated in favor ofaes128gcm
. I've also seen reports that push notifications usingaesgcm
do not work on Microsoft Edge, but I haven't tried that out myself. I suppose this may break compatibility with older web push servers, so this may need some additional testing.