aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/fixtures
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-02-16 21:03:58 +0000
committerGitHub <noreply@github.com>2022-02-16 21:03:58 +0000
commit3a29a23cdc2823bbce30f5ab99ad01d72208de64 (patch)
tree11f1a2e0e5e5c0f9617a7e29500940327e339800 /models/migrations/fixtures
parentf48771ae78b5e5b3caa60c55b3253229ea804ab5 (diff)
downloadgitea-3a29a23cdc2823bbce30f5ab99ad01d72208de64.tar.gz
gitea-3a29a23cdc2823bbce30f5ab99ad01d72208de64.zip
Attempt to fix the webauthn migration again - part 3 (#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>
Diffstat (limited to 'models/migrations/fixtures')
-rw-r--r--models/migrations/fixtures/Test_remigrateU2FCredentials/expected_webauthn_credential.yml (renamed from models/migrations/fixtures/Test_increaseCredentialIDTo410/expected_webauthn_credential.yml)5
-rw-r--r--models/migrations/fixtures/Test_remigrateU2FCredentials/u2f_registration.yml (renamed from models/migrations/fixtures/Test_increaseCredentialIDTo410/u2f_registration.yml)0
-rw-r--r--models/migrations/fixtures/Test_remigrateU2FCredentials/webauthn_credential.yml (renamed from models/migrations/fixtures/Test_increaseCredentialIDTo410/webauthn_credential.yml)2
3 files changed, 5 insertions, 2 deletions
diff --git a/models/migrations/fixtures/Test_increaseCredentialIDTo410/expected_webauthn_credential.yml b/models/migrations/fixtures/Test_remigrateU2FCredentials/expected_webauthn_credential.yml
index 36b011a9d3..0e68a5d012 100644
--- a/models/migrations/fixtures/Test_increaseCredentialIDTo410/expected_webauthn_credential.yml
+++ b/models/migrations/fixtures/Test_remigrateU2FCredentials/expected_webauthn_credential.yml
@@ -5,5 +5,8 @@
id: 2
credential_id: "TVHE44TOH7DF7V48SEAIT3EMMJ7TGBOQ289E5AQB34S98LFCUFJ7U2NAVI8RJG6K2F4TC8AQ8KBNO7AGEOQOL9NE43GR63HTEHJSLOG="
-
+ id: 3
+ credential_id: "TVHE44TOH7DF7V48SEAIT3EMMJ7TGBOQ289E5AQB34S98LFCUFJ7U2NAVI8RJG6K2F4TC8AQ8KBNO7AGEOQOL9NE43GR63HTEHJSLOG="
+-
id: 4
- credential_id: "THIS SHOULD NOT CHAGNGE"
+ credential_id: "TVHE44TOH7DF7V48SEAIT3EMMJ7TGBOQ289E5AQB34S98LFCUFJ7U2NAVI8RJG6K2F4TC8AQ8KBNO7AGEOQOL9NE43GR63HTEHJSLOG="
diff --git a/models/migrations/fixtures/Test_increaseCredentialIDTo410/u2f_registration.yml b/models/migrations/fixtures/Test_remigrateU2FCredentials/u2f_registration.yml
index 5a7b70fd6a..5a7b70fd6a 100644
--- a/models/migrations/fixtures/Test_increaseCredentialIDTo410/u2f_registration.yml
+++ b/models/migrations/fixtures/Test_remigrateU2FCredentials/u2f_registration.yml
diff --git a/models/migrations/fixtures/Test_increaseCredentialIDTo410/webauthn_credential.yml b/models/migrations/fixtures/Test_remigrateU2FCredentials/webauthn_credential.yml
index 0adf1bc8e2..7f9f10f89a 100644
--- a/models/migrations/fixtures/Test_increaseCredentialIDTo410/webauthn_credential.yml
+++ b/models/migrations/fixtures/Test_remigrateU2FCredentials/webauthn_credential.yml
@@ -23,7 +23,7 @@
lower_name: "u2fkey-wrong-user-id"
name: "u2fkey-wrong-user-id"
user_id: 1
- credential_id: "THIS SHOULD NOT CHAGNGE"
+ credential_id: "THIS SHOULD CHANGE"
public_key: 0x040d0967a2cad045011631187576492a0beb5b377954b4f694c5afc8bdf25270f87f09a9ab6ce9c282f447ba71b2f2bae2105b32b847e0704f310f48644e3eddf2
attestation_type: 'fido-u2f'
sign_count: 1