Page MenuHomePhabricator

[native] handle invalid CSAT in Backup authenticated API
ClosedPublic

Authored by kamil on Nov 28 2024, 4:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 27, 8:02 PM
Unknown Object (File)
Fri, Dec 27, 6:57 PM
Unknown Object (File)
Thu, Dec 26, 5:51 AM
Unknown Object (File)
Thu, Dec 26, 5:51 AM
Unknown Object (File)
Thu, Dec 26, 5:45 AM
Unknown Object (File)
Tue, Dec 24, 5:47 AM
Unknown Object (File)
Tue, Dec 17, 8:11 AM
Unknown Object (File)
Mon, Dec 16, 2:15 PM
Subscribers

Details

Summary

This is implementation on ENG-9604#comment-0ef625dd.

Similar to D14024.

We need to keep this in mind to handle this also in the future, when working on User Data restore, for now we download only User Keys which are unauthenticated, and there is no code for User Data yet.

Depends on D14060

Test Plan
  1. Backup upload works
  2. Mock CSAT with random string -> logged out on backup upload attempt

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.Nov 28 2024, 5:09 AM

Nice, thanks!

shared/backup_client/src/lib.rs
99–108 ↗(On Diff #46105)

The original version with single match probably didn't work because of incompatible types, a .into() would probably work. But this is also okay, let it stay as is

This revision is now accepted and ready to land.Nov 28 2024, 10:34 AM