Commit Graph

28 Commits

Author SHA1 Message Date
Alexis Reigel f1ccecc997 improve gpg key validation
when omitting the end part of the key ('-----END PGP PUBLIC KEY
BLOCK-----') the error message was not about the key anymore, but about
the missing fingerprint and primary_keyid, which was confusing for the
user.
the new validation checks that the end also matches the expected format.
2017-07-27 15:46:04 +02:00
Alexis Reigel a5f04df8d7 update all records at once using `update_all` 2017-07-27 15:46:03 +02:00
Alexis Reigel 843b1de0de simplify nil handling 2017-07-27 15:46:03 +02:00
Alexis Reigel 98531fc248 upcase in the model instead of in the view 2017-07-27 15:46:03 +02:00
Alexis Reigel 57ccff8ea4 use db's on_delete instead of has_many :dependent 2017-07-27 15:46:03 +02:00
Alexis Reigel 8e0c33ed13 use ShaAttribute for gpg table columns 2017-07-27 15:46:03 +02:00
Alexis Reigel cd01e82873 store gpg user name and email on the signature 2017-07-27 15:44:39 +02:00
Alexis Reigel 027309eb2a user may now revoke a gpg key
other than just removing a key, which doesn't affect the verified state
of a commit, revoking a key unverifies all signed commits.
2017-07-27 15:43:37 +02:00
Alexis Reigel 084cc718f7 use after_commit instead of AfterCommitQueue 2017-07-27 15:43:37 +02:00
Alexis Reigel e79e2ae1f4 validate presence of user on gpg_key 2017-07-27 15:43:37 +02:00
Alexis Reigel d9fd3709ab use hash instead of 2d array 2017-07-27 15:43:37 +02:00
Alexis Reigel 2ea951454a allow removal of gpg key by nullifying signatures 2017-07-27 15:43:36 +02:00
Alexis Reigel 9816856d05 perform signature update in sidekiq worker 2017-07-27 15:43:36 +02:00
Alexis Reigel e75ab06430 update invalid gpg signatures when email changes 2017-07-27 15:42:53 +02:00
Alexis Reigel 24671cd601 update invalid gpg signatures when key is created 2017-07-27 15:42:53 +02:00
Alexis Reigel 7b616d39ef gpg signature is only valid when key is verified 2017-07-27 15:42:53 +02:00
Alexis Reigel 3c42d73098 add primary keyid attribute to gpg keys 2017-07-27 15:42:53 +02:00
Alexis Reigel 7e13d96715 don't sync to keychain file 2017-07-27 15:42:53 +02:00
Alexis Reigel 8bd94a7304 remove gpg from keychain when user's email changes 2017-07-27 15:42:04 +02:00
Alexis Reigel c1281982bd notification email on add new gpg key 2017-07-27 15:40:41 +02:00
Alexis Reigel f0fe1b9d43 gpg email verification 2017-07-27 15:40:41 +02:00
Alexis Reigel 0668521b2b move current keychain methods to namespace 2017-07-27 15:40:41 +02:00
Alexis Reigel 0e3d3d60ba email handling for gpg keys 2017-07-27 15:40:41 +02:00
Alexis Reigel 87c0fd3455 add / remove gpg keys to / from system keychain 2017-07-27 15:40:41 +02:00
Alexis Reigel e34cef0cd2 extract gpg functionality to lib class 2017-07-27 15:40:41 +02:00
Alexis Reigel ab4120de31 only validate gpg_key#fingerprint "internally" 2017-07-27 15:40:40 +02:00
Alexis Reigel 7b7cd6f69d add emails method to GgpKey 2017-07-27 15:40:40 +02:00
Alexis Reigel fbf1fd1a20 add gpg key model 2017-07-27 15:40:40 +02:00