GPG key replacement results in 500 error
uploading a revised version of a users GPG key results in a 500 error.
to reproduce:
- upload a public GPG key
- revise that GPG key to add or remove a subkey
- attempt to upload the amended public GPG key
expected result: Gitlab detects that this is a revised public key and will overwrite the existing key.
GPG keys for a user may periodically change, so we need to properly implement this to help keep developers and users safe.