Implement V2 key rotation support

This commit is contained in:
Daniel García committed 2026-11-04 18:40:05 +01:00
1 parent a72c86bb04
commit 81d6810855
19 files changed
+706 -163

No files matched your search

+3
View File
@@ -54,6 +54,8 @@ pub struct Membership {
pub atype: i32,
pub reset_password_key: Option<String>,
pub external_id: Option<String>,
/// The user's v2 upgrade token, for the org to unwrap the v2 user key after an upgrade. Opaque to us.
pub v2_upgrade_token: Option<String>,
}
#[derive(Identifiable, Queryable, Insertable, AsChangeset)]
@@ -271,6 +273,7 @@ impl Membership {
atype: MembershipType::User as i32,
reset_password_key: None,
external_id: None,
v2_upgrade_token: None,
}
}