Page MenuHomePhabricator

[identity] Verify lastPrimarySignature for singleton lists
ClosedPublic

Authored by bartek on Mon, Sep 2, 11:25 PM.
Tags
None
Referenced Files
F2711332: D13222.id.diff
Sun, Sep 15, 10:48 PM
F2711305: D13222.id43844.diff
Sun, Sep 15, 10:36 PM
F2708753: D13222.id43984.diff
Sun, Sep 15, 4:37 PM
F2708662: D13222.diff
Sun, Sep 15, 3:34 PM
F2707562: D13222.id43984.diff
Sun, Sep 15, 12:09 PM
F2706430: D13222.id43844.diff
Sun, Sep 15, 7:53 AM
Unknown Object (File)
Sat, Sep 14, 6:28 PM
Unknown Object (File)
Sat, Sep 14, 1:08 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.Tue, Sep 3, 12:04 AM
This revision is now accepted and ready to land.Fri, Sep 6, 5:43 AM