Open Bug 1517554 Opened 7 years ago Updated 6 years ago

Add utility for removing gpg keys that are invalid (typically, expired)

Categories

(bugzilla.mozilla.org :: Extensions, enhancement)

Production
enhancement
Not set
normal

Tracking

()

People

(Reporter: dylan, Unassigned)

Details

I have a boilterplate / skeleton for this in the securemail-badkey-util branch. https://github.com/mozilla-bteam/bmo/blob/securemail-badkey-util/extensions/SecureMail/lib/Command/securemail_remove_bad_keys.pm The database table in question is 'profiles', and the public key is the public_key column. Checking if a publickey is valid can be copied from here: https://github.com/mozilla-bteam/bmo/blob/securemail-badkey-util/extensions/SecureMail/Extension.pm#L132-L139 Note about 100 people use SMIME keys. note that is_valid->get() is called because is_valid() returns a promise. Clearing the user's public key is done like here: https://github.com/mozilla-bteam/bmo/blob/securemail-badkey-util/extensions/SecureMail/Extension.pm#L206-L210 except the second arg to set() will be ''.
Component: Extensions: SecureMail → Extensions
Assignee: bobm → nobody
You need to log in before you can comment on or make changes to this bug.