Skip to content

ability to store more than one public key per recipient #3332

@tomholub

Description

@tomholub

Right now the extension will store only one public key per recipient email address.

For a smooth user experience with key rotations we need to add the ability to store more than one public key per recipient in the extension. That, combined with the WKD improvements in #3017 and #3018 will allow for a smooth experience during key rotation.

I haven't investigated exactly how the email-to-pubkey relationship is handled on the storage level, it could be a unique index on IDBDatabase. Maybe the index could be simiply dropped without migration. And then the following will need to be updated:

  • Store method used to retrieve one public key for one recipient should start to return an array of public keys
  • all code that uses that method downstream should start expecting that too
  • when the called from compose window, additional code needs to be added to decide which of the retrieved keys to use (some may be expired, some may be revoked - I'd recommend to use whichever valid key that has the most recent signature on it)
  • when called from pgp decrypt window to verify a signed message, key should be chosen by key id (therefore presumably no change there)

Metadata

Metadata

Assignees

Labels

actionableon-premIssues that involve in-prem infrastructure familiaritysponsoredPaid by customer, implementation to closely follow their requirements

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions