Skip to content

gitea.com fails to verify ed25519 ggp keys #34569

Open
@bad

Description

@bad

Description

I'm trying to add and verify my ed25519 gpg key on gitea.com. my user name is "bad".
I've added the following public key block:

$ gpg -a --export DFE41C65BF488407
-----BEGIN PGP PUBLIC KEY BLOCK-----

mDMEZ9BP8xYJKwYBBAHaRw8BAQdAm8S9Moj1sWDZ3tPp+8kvEy5YjNHLKFtCCQbN
Z9iWbQC0HUNocmlzdG9waCBCYWR1cmEgPGJhZEBic2QuZGU+iJwEExYKAEQCGwMF
CQWjmoAFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AWIQTNPOD4a/kq85eO00ff
5Bxlv0iEBwUCZ9BQKAIZAQAKCRDf5Bxlv0iEB8NpAQDP3W744EmgQoun5Dt6kiSX
DAe+OBjMrDUbcw5PFwNohwD+MtUGfROWu6TjixlRpkTkU7UnlN0MRrsdlvQMT4kY
0gu4OARn0E/zEgorBgEEAZdVAQUBAQdA8xCeotGJO4Mu96vD8xSW2H/diEp2i36M
lc5mvLn6eVsDAQgHiH4EGBYKACYWIQTNPOD4a/kq85eO00ff5Bxlv0iEBwUCZ9BP
8wIbDAUJBaOagAAKCRDf5Bxlv0iEB9dLAP4pEUyxwIrsEJpp5Qm8JaXwtBB7Gg4Y
JpXYqu2iNU0tRAD/e4oAv6TH0uZfywiUBOk9WhreGhDxy72dNkxe85IfWQk=
=w8Zv
-----END PGP PUBLIC KEY BLOCK-----

and ran the command that gitea tells me to generate the signature for the token:

$ echo "841dafd1ce8ac64c618fa0e63015dfdc0a6acf0ce41633521b90cb22882f2129" | 
    gpg -a --default-key DFE41C65BF488407 --detach-sig
gpg: using "DFE41C65BF488407" as default secret key for signing
-----BEGIN PGP SIGNATURE-----

iHUEABYDAB0WIQTNPOD4a/kq85eO00ff5Bxlv0iEBwUCaDn0/AAKCRDf5Bxlv0iE
BxkHAQCTSja1L9iLLSHFxkd7EjB8somyI1/qhbdqyfiBdbqzWQEAi96+ucn91JL0
TmRiJFIF2dblOFF5pnZRqbGbnoA2Qwg=
=e2NI
-----END PGP SIGNATURE-----

After copying the signature to the corresponding input field and clicking on the "Verify" button
I get at the top of the page:

The provided GPG key, signature and token do not match or token is out-of-date.

None of which is true. I generated the signature within seconds and I can verify the
signature locally with gpg.

Gitea Version

whatever you're running today on gitea.com. it doesn't divulge version or commit hash.

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

I don't. I've used gitea.com.

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions