diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-08-24 14:21:30 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-05 12:18:31 +0200 |
commit | 64855c8e30c53004b2e2c2a65f131f8ab7efa41c (patch) | |
tree | 2f9a4b4a6ae80847e1f88f068faa7ecb297d0535 /app/models/gpg_signature.rb | |
parent | 508ff17b3405a4e2275fa137bd7322b728db8ed4 (diff) | |
download | gitlab-ce-64855c8e30c53004b2e2c2a65f131f8ab7efa41c.tar.gz |
match the committer's email against the gpg key
the updated verification of a gpg signature requires the committer's
email to also match the user's and the key's emails.
Diffstat (limited to 'app/models/gpg_signature.rb')
-rw-r--r-- | app/models/gpg_signature.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/gpg_signature.rb b/app/models/gpg_signature.rb index 6680bc4da0b..a94c42c5334 100644 --- a/app/models/gpg_signature.rb +++ b/app/models/gpg_signature.rb @@ -4,6 +4,14 @@ class GpgSignature < ActiveRecord::Base sha_attribute :commit_sha sha_attribute :gpg_key_primary_keyid + enum verification_status: { + unverified: 0, + verified: 1, + other_user: 2, + unverified_key: 3, + unknown_key: 4 + } + belongs_to :project belongs_to :gpg_key |