Skip to content
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

Closed
2 of 7 tasks
samuelallan72 opened this issue Jul 21, 2017 · 6 comments
Closed
2 of 7 tasks

Unable to add GPG key with extra emails #2187

samuelallan72 opened this issue Jul 21, 2017 · 6 comments
Labels
Milestone

Comments

@samuelallan72
Copy link

samuelallan72 commented Jul 21, 2017

  • Gitea version (or commit ref): dde0052 (via docker image)
  • Git version: 2.13.3
  • Operating system: Archlinux
  • Database (use [x]):
    • PostgreSQL
    • MySQL (mariadb)
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: (couldn't see anything interesting in the log)

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.

@lunny
Copy link
Member

lunny commented Jul 21, 2017

Add your other email addresses on profile settings?

@samuelallan72
Copy link
Author

@lunny I guess, but I was hoping I wouldn't have to do that... :\

@lafriks
Copy link
Member

lafriks commented Jul 21, 2017

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.

@samuelallan72
Copy link
Author

@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?

@sapk
Copy link
Member

sapk commented Aug 5, 2017

I will have a look at it and do improvement on GPG part this week-end.

@lunny lunny added the type/bug label Sep 5, 2017
@lunny lunny added this to the 1.3.0 milestone Sep 5, 2017
@lunny
Copy link
Member

lunny commented Sep 5, 2017

fixed by #2266

@lunny lunny closed this as completed Sep 5, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants