-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
GPG not using correct UID #6778
Comments
Can you give your public gpg key that is problematic? |
My key fingerprint is
|
Line 276 in e83dddb
|
I added a test to debug, and I seems to get both emails listed so it should match at least your new email. I need to look further to find the mismatch. |
Maybe we should update the lib: keybase/go-crypto@2c2b831#diff-e7ace1eeeac9cdf4f5fe331bf53e3fb2 |
I use also multiple mail addresses in my key and commit with different once (work, private...). |
@xf- We load all identities that are linked to the key. The problem here is that an identities is revoked in the key export and the lib we use still list it as a good identities. In fact if I recall well my testing, it doesn't even match/return the revocation. |
@sapk deleted the key and imported it again. Now it works! THX |
Is something still needed from me? (I only ask because of the label) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This issue need to be kept open. |
I am suspicious that this might have been resolved by #12155 |
Fix go-gitea#6778 Signed-off-by: Andrew Thornton <[email protected]>
OK I'm not certain completely what's going on here. There's likely a part of this issue which has been resolved by #12155 (which affects subkey verifcation.) Another part is likely fixed by @techknowlogick's recent PR removing the email address reporting on a commit - (so not necessarily fixed but masked). Now there is the question about whether we should be verifying against a revoked identity, and #12486 stops that but... I think we need to double check against what GH does for revoked IDs. There's an issue with the way GH uses git signatures here - it uses them as committer verification and therefore a signature matching a revoked email address is not necessarily incorrect. There is a final potential issue that I can see: When you are posting your keys are you pasting multiple keys on a single keyring? Because Gitea isn't currently set up to do - it would be possible to cope with that but it's not doing that at present. |
Related go-gitea#6778 Signed-off-by: Andrew Thornton <[email protected]>
Fix #6778 Signed-off-by: Andrew Thornton <[email protected]>
Backport go-gitea#12486 Fix go-gitea#6778 Signed-off-by: Andrew Thornton <[email protected]>
Backport #12486 Fix #6778 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
Related #6778 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lauris BH <[email protected]>
[x]
):Description
My GPG key has a revoked UID attached to it (it was revoked since I no longer own the email address it refers to). My primary UID is valid, and the email address it points to has been added to my Gitea account. However, when trying to add my key, Gitea displays the old (revoked) UID as the primary, and any commits signed using the updated key are marked as
No known key
. I tried removing my old email address from my account, and now Gitea just says my I need to have my old address attached in order to load the key.It seem that Gitea is not correctly loading the primary UID. In addition, the commits should still be verified even with the updated key; it should be loading all UIDs ideally. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: