Implement V2 key rotation support

This commit is contained in:
Daniel García committed 2026-11-04 22:13:23 +01:00
1 parent de40d7de29
commit 6dd49a7cf9
19 files changed
+708 -163

No files matched your search

+5
View File
@@ -69,6 +69,9 @@ pub struct Membership {
access_event_logs: bool,
access_import_export: bool,
access_reports: bool,
/// 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)]
@@ -407,6 +410,8 @@ impl Membership {
access_event_logs: false,
access_import_export: false,
access_reports: false,
v2_upgrade_token: None,
}
}