Skip to content
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

Attempt to fix the webauthn migration again - part 3 (#18770) #18771

Merged

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Feb 14, 2022

Backport #18770

v208.go is seriously broken as it misses an ID() check. We need to no-op and remigrate all of the u2f keys.

See #18756

Signed-off-by: Andrew Thornton art27@cantab.net

@zeripath zeripath added this to the 1.16.2 milestone Feb 14, 2022
MariaDB now asserts that 408 characters is too long for a VARCHAR(410)

I have no words.

See go-gitea#18756

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath force-pushed the backport-varchar-410-is-not-enough branch from 5afd9fc to fdc245f Compare February 14, 2022 23:27
@zeripath zeripath changed the title Attempt to fix the webauthn migration again - part 3 Attempt to fix the webauthn migration again - part 3 (#18770) Feb 14, 2022
Signed-off-by: Andrew Thornton <art27@cantab.net>
models/migrations/v209.go Outdated Show resolved Hide resolved
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 15, 2022
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
models/migrations/v210.go Outdated Show resolved Hide resolved
Copy link
Contributor

@fnetX fnetX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this backport on our data, and I can at least confirm that the resulting data (id, credential_id) in webauthn_credential is equal to what the previous migration was supposed to do :)

I'll probably check later if my key is accepted, but I'll first need to learn how the access the web interface via multiple agent forwarded ssh connections ...

Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Feb 16, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 16, 2022
@zeripath zeripath merged commit 08d5a83 into go-gitea:release/v1.16 Feb 16, 2022
@zeripath zeripath deleted the backport-varchar-410-is-not-enough branch February 16, 2022 21:15
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants