-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Cannot verify GPG key. Armored GPG signature not accepted #30189
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
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/bug
Comments
To reproduce the added key must have two subkeys. Generating it with |
Merged
Fixed in #30193. |
lafriks
pushed a commit
that referenced
this issue
Mar 31, 2024
Fixes #30189 Can't verify subkeys if they are not loaded.
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Mar 31, 2024
Fixes go-gitea#30189 Can't verify subkeys if they are not loaded.
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Mar 31, 2024
Fixes go-gitea#30189 Can't verify subkeys if they are not loaded.
lafriks
pushed a commit
that referenced
this issue
Mar 31, 2024
Backport #30193 by @KN4CK3R Fixes #30189 Can't verify subkeys if they are not loaded. Co-authored-by: KN4CK3R <[email protected]>
project-mirrors-bot-tu bot
pushed a commit
to project-mirrors/forgejo-as-gitea-fork
that referenced
this issue
Jan 23, 2025
Backport go-gitea#30193 by @KN4CK3R Fixes go-gitea#30189 Can't verify subkeys if they are not loaded. Co-authored-by: KN4CK3R <[email protected]> (cherry picked from commit e581efe)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/bug
Description
I am trying to set up GPG key on my account. I have successfully added a GPG key, but when I want to verify it, it fails with a red banner stating "The provided GPG key, signature and token do not match or token is out-of-date."
Steps to reproduce (also cf. screenshot below):
0. Go to URL path: user/settings/keys
When step 4 happens, the following log line message is printed twice:
...ey/gpg_key_verify.go:84:VerifyGPGKey() [E] Unable to validate token signature. Error:
My GPG key has been set up with a subkey (as described in https://mikeross.xyz/create-gpg-key-pair-with-subkeys/).
A related issue, but for SSH instead of GPG, is in issue #29903.
Gitea Version
1.23.0+dev-13-gb6a3cd4b8
Can you reproduce the bug on the Gitea demo site?
I do not have login to Gitea demo site and thus have not tried to reproduce there.
Log Gist
...ey/gpg_key_verify.go:84:VerifyGPGKey() [E] Unable to validate token signature. Error:
Screenshots
Git Version
2.43.0
Operating System
Linux (docker desktop on MacOS)
How are you running Gitea?
I am running Gitea from nightly docker hub image, via Docker Desktop on MacOS.
Database
SQLite
The text was updated successfully, but these errors were encountered: