-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add GPG key with extra emails #2187
Comments
Add your other email addresses on profile settings? |
@lunny I guess, but I was hoping I wouldn't have to do that... :\ |
From security point of view all email addresses need to be verified to be able to add GPG key with multiple email addresses as otherwise one could create GPG with his own and other users email address and sign commits in his name and they will be shown as verified. |
@lafriks why does Github allow that though? Maybe Gitea should at least allow adding the GPG key, but only display verified if the commit email address is both on the key and verified with your gitea account? |
I will have a look at it and do improvement on GPG part this week-end. |
fixed by #2266 |
[x]
):Description
I have a self hosted copy of gitea running, and can't add my gpg key to it - I get the following error (emails redacted):
The email attached to the GPG key couldn't be found or is not confirmed yet: email2@example.com
My gpg key lists multiple email addresses (eg. email1@example.com and email2@example.com), and only my primary email address is registered with my gitea account (email1@example.com).
I would expect the behaviour should be that it can add the key no worries, since the primary email address in my account is included in that gpg key.
The text was updated successfully, but these errors were encountered: