mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
Merge remote-tracking branch 'origin/main' into feat/key-backup-and-transport
# Conflicts: # docs/api/openapi.yaml
This commit is contained in:
commit
37793298a8
59 files changed
+4736
-905
No files matched your search
@@ -924,6 +924,20 @@ async function main() {
|
||||
),
|
||||
);
|
||||
|
||||
// ───── v1.40 background document AI runs (Bytes, binary2, batched) ─────
|
||||
// A run's sealed input and result. Transient (deleted an hour after the run
|
||||
// finishes), but a run in flight during a rotation must still open under the
|
||||
// new key. Walked through the registry so the binary codec, the labels and
|
||||
// the disposable rule are honoured; NULL once a run has finished (input) or
|
||||
// before it has (result), which the walk skips.
|
||||
for (const field of ["inputEncrypted", "resultEncrypted"] as const) {
|
||||
results.push(
|
||||
await rotateRegistryColumn("DocumentAiRun", field, {
|
||||
documentAiRun: prisma.documentAiRun,
|
||||
} as unknown as CorpusClient),
|
||||
);
|
||||
}
|
||||
|
||||
// ───── Whole-account backup blob (String, batched) ─────
|
||||
// `DataBackup.data` holds `packBackupBlob()` output: AES-256-GCM ciphertext
|
||||
// under a column that does NOT carry the `*Encrypted` suffix, which is why
|
||||
|
||||
Reference in new issue
Block a user