Page MenuHomePhabricator

[identity] Verify lastPrimarySignature for singleton lists
ClosedPublic

Authored by bartek on Sep 2 2024, 11:25 PM.
Tags
None
Referenced Files
F3197040: D13222.id43844.diff
Sat, Nov 9, 7:10 AM
Unknown Object (File)
Thu, Nov 7, 4:24 PM
Unknown Object (File)
Sun, Nov 3, 5:39 AM
Unknown Object (File)
Sun, Nov 3, 5:36 AM
Unknown Object (File)
Sun, Nov 3, 5:36 AM
Unknown Object (File)
Sun, Nov 3, 5:25 AM
Unknown Object (File)
Tue, Oct 29, 9:57 AM
Unknown Object (File)
Tue, Oct 22, 6:30 PM
Subscribers

Details

Summary

Required for ENG-8212.
In case of backup restore, the singleton device list will also have lastPrimarySignature, which wasn't accepted before for singleton device lists.

Test Plan

Existing tests still pass.
Tested manually with lastPrimarySignature being present:

  • Passes with no last primary signature provided and none expected (previous behavior unchanged)
  • Fails if signature provided but none expected
  • Fails no signature is provided but one is expected
  • Passes if valid signature is provided and it's expected (previous signing key provided)
  • Fails if signature verification fails for given signing public key

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Sep 3 2024, 12:04 AM
This revision is now accepted and ready to land.Sep 6 2024, 5:43 AM