Skip to content

Unable to add GPG key with extra emails #2187

@samuelallan72

Description

@samuelallan72
  • 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: [email protected]

My gpg key lists multiple email addresses (eg. [email protected] and [email protected]), and only my primary email address is registered with my gitea account ([email protected]).

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions