summaryrefslogtreecommitdiff
path: root/app/models/gpg_key.rb
Commit message (Collapse)AuthorAgeFilesLines
* Invalidate GpgSignatures associated to GpgKeySubkeys when revoking the GpgKeyRubén Dávila2017-10-051-1/+2
|
* Fix some broken specsRubén Dávila2017-10-051-1/+1
|
* Address feedback from last code reviewRubén Dávila2017-10-051-0/+5
|
* Remove unused associationRubén Dávila2017-10-051-1/+0
|
* Render GPG subkeys on index pageRubén Dávila2017-10-051-0/+2
|
* Associate GgpSignature with GpgKeySubkey if comes from a subkeyRubén Dávila2017-10-051-11/+0
| | | | | | Additionally we're delegating missing method calls on GpgKeySubkey to GpgKey since most of the info required when verifying a signature is found on GpgKey which is the parent of GpgKeySubkey
* Add ability to include subkeys when finding by fingerprintRubén Dávila2017-10-051-0/+11
|
* Refactor the extraction and generation of GPG subkeysRubén Dávila2017-10-051-15/+4
|
* Use a separate model to handle GPG subkeysRubén Dávila2017-10-051-1/+1
|
* Delegate #key to parent when working with a GPG subkeyRubén Dávila2017-10-051-0/+5
| | | | | | The content returned by #key is important when veryfying the signature, so given we don't want to repeat it in the database for GPG subkeys we need to delegate it to the parent.
* Process and create subkeys when a new GPG key is createdRubén Dávila2017-10-051-2/+19
|
* Make GPG validation case insensitive.Tim Bishop2017-09-291-1/+1
| | | | | | | | | | In line with other changes in GitLab, make email address validation properly case insensitive. The email address in the commit may be in any case, so it needs downcasing to match the address stored in GitLab for the user. Without this change the comparison fails and commits are not marked as verified. See #37009.
* created services for keyshaseeb2017-09-151-5/+0
|
* use new #verification_statusAlexis Reigel2017-09-051-5/+8
|
* use User#verified_email? for gpg key verificationAlexis Reigel2017-09-051-2/+2
|
* simplify check for verified email in collectionAlexis Reigel2017-09-051-2/+2
|
* match the committer's email against the gpg keyAlexis Reigel2017-09-051-0/+4
| | | | | the updated verification of a gpg signature requires the committer's email to also match the user's and the key's emails.
* improve gpg key validationAlexis Reigel2017-07-271-2/+3
| | | | | | | | 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.
* update all records at once using `update_all`Alexis Reigel2017-07-271-6/+5
|
* simplify nil handlingAlexis Reigel2017-07-271-2/+1
|
* upcase in the model instead of in the viewAlexis Reigel2017-07-271-0/+8
|
* use db's on_delete instead of has_many :dependentAlexis Reigel2017-07-271-1/+1
|
* use ShaAttribute for gpg table columnsAlexis Reigel2017-07-271-0/+5
|
* store gpg user name and email on the signatureAlexis Reigel2017-07-271-5/+11
|
* user may now revoke a gpg keyAlexis Reigel2017-07-271-0/+11
| | | | | other than just removing a key, which doesn't affect the verified state of a commit, revoking a key unverifies all signed commits.
* use after_commit instead of AfterCommitQueueAlexis Reigel2017-07-271-9/+3
|
* validate presence of user on gpg_keyAlexis Reigel2017-07-271-0/+2
|
* use hash instead of 2d arrayAlexis Reigel2017-07-271-1/+1
|
* allow removal of gpg key by nullifying signaturesAlexis Reigel2017-07-271-0/+1
|
* perform signature update in sidekiq workerAlexis Reigel2017-07-271-2/+6
|
* update invalid gpg signatures when email changesAlexis Reigel2017-07-271-4/+4
|
* update invalid gpg signatures when key is createdAlexis Reigel2017-07-271-0/+5
|
* gpg signature is only valid when key is verifiedAlexis Reigel2017-07-271-0/+4
|
* add primary keyid attribute to gpg keysAlexis Reigel2017-07-271-1/+14
|
* don't sync to keychain fileAlexis Reigel2017-07-271-25/+1
|
* remove gpg from keychain when user's email changesAlexis Reigel2017-07-271-12/+19
|
* notification email on add new gpg keyAlexis Reigel2017-07-271-0/+7
|
* gpg email verificationAlexis Reigel2017-07-271-0/+16
|
* move current keychain methods to namespaceAlexis Reigel2017-07-271-2/+2
|
* email handling for gpg keysAlexis Reigel2017-07-271-2/+1
|
* add / remove gpg keys to / from system keychainAlexis Reigel2017-07-271-0/+10
|
* extract gpg functionality to lib classAlexis Reigel2017-07-271-5/+1
|
* only validate gpg_key#fingerprint "internally"Alexis Reigel2017-07-271-5/+9
|
* add emails method to GgpKeyAlexis Reigel2017-07-271-0/+5
|
* add gpg key modelAlexis Reigel2017-07-271-0/+35