Skip to content

Ensure that zero-leading gpg key IDs verify #11685

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

Conversation

zeripath
Copy link
Contributor

Convert IDs to 16 character hexadecimals before matching with the DB.

Fix #10591

Signed-off-by: Andrew Thornton [email protected]

@zeripath
Copy link
Contributor Author

zeripath commented Jun 1, 2020

Hmm I think this fixes one thing but breaks another I need to rethink, essentially our db doesn't store preceding zeroes so we must match string without preceding zeroes.

I will therefore close this whilst I re-attempt a fix.

@zeripath zeripath closed this Jun 1, 2020
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 1, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
@zeripath zeripath deleted the fix-10591-ensure-that-zero-preceding-fingerprints-can-sign branch March 4, 2021 09:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPG KEY FAILS IF SEC KEY START FROM 0
2 participants