Page MenuHomePhabricator

[Tunnelbroker] invalidate bad Web Push tokens
ClosedPublic

Authored by kamil on Jul 30 2024, 6:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 10:39 AM
Unknown Object (File)
Thu, Dec 19, 10:39 AM
Unknown Object (File)
Thu, Dec 19, 10:39 AM
Unknown Object (File)
Sat, Nov 30, 12:55 PM
Unknown Object (File)
Nov 21 2024, 1:37 AM
Unknown Object (File)
Nov 21 2024, 1:37 AM
Unknown Object (File)
Nov 12 2024, 5:07 PM
Unknown Object (File)
Nov 9 2024, 11:36 PM
Subscribers

Details

Summary

ENG-8498.

Based on keyserver error codes.
Here is library mapping of status to errors used in this diff.

Depends on D12911

Test Plan

Manually malform device token for web device in DDB (url in JSON), try sending notif to this device and verify that flag was flipped and the message was sent to the device (both online and offline device).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Jul 30 2024, 6:18 AM
bartek added inline comments.
services/tunnelbroker/src/websockets/session.rs
519–537 ↗(On Diff #42969)

maybe doing sth like

use notifs::web_push::error::Error as NotifError;
use web_push::WebPushError;

locally here in this function, it could make these lines shorter

This revision is now accepted and ready to land.Jul 30 2024, 7:53 AM