mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32:18 +00:00
feat(backup): carry emergency profile through rotation and backup
Register the three encrypted emergency columns in the rotation registry and the key-rotation script so a legacy-key drop cannot strand them. Carry all six new columns through the profile backup builder and restore (the enums by value, the free text as ciphertext in a DR payload or decrypted plaintext in a portable export) and extend the wire schema. The full-backup round-trip integration test seeds the six columns and asserts each survives an export and restore.
This commit is contained in:
1 parent
9e52285acc
commit
772da42348
5 files changed
+141
-2
No files matched your search
@@ -369,12 +369,17 @@ async function main() {
|
||||
// ───── UserHealthProfile (Bytes columns) ─────
|
||||
// "aboutMeEncrypted" "conditionsEncrypted" "allergiesEncrypted"
|
||||
// "coachFocusEncrypted" "pendingQuestionsEncrypted"
|
||||
// "emergencyContactsEncrypted" "emergencyImplantsEncrypted"
|
||||
// "emergencyNoteEncrypted"
|
||||
for (const field of [
|
||||
"aboutMeEncrypted",
|
||||
"conditionsEncrypted",
|
||||
"allergiesEncrypted",
|
||||
"coachFocusEncrypted",
|
||||
"pendingQuestionsEncrypted",
|
||||
"emergencyContactsEncrypted",
|
||||
"emergencyImplantsEncrypted",
|
||||
"emergencyNoteEncrypted",
|
||||
]) {
|
||||
results.push(
|
||||
await rotateBytesColumn(
|
||||
|
||||
Reference in new issue
Block a user