Page MenuHomePhabricator

[identity] Verify lastPrimarySignature for singleton lists
ClosedPublic

Authored by bartek on Sep 2 2024, 11:25 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Tue, Oct 22, 6:30 PM
Unknown Object (File)
Tue, Oct 22, 6:29 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
Lint Not Applicable
Unit
Tests Not Applicable

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