[FR-16, FR-17; QR-09] Automate encrypted backup and verify restoration #9

Open
opened 2026-10-23 21:25:59 +02:00 by amiryahaya · 0 comments
Owner

Outcome

An operator can recover Raisin Mem without silently reactivating revoked access or resurrecting purged memory.

Acceptance

  • Schedule daily PostgreSQL 18 custom-format backups, encrypt them before off-server storage, retain 30 days, and alert on missing or failed backups.
  • Keep encryption keys and database credentials outside Git and separate from backup archives.
  • Document and exercise a fresh-database restore with roles/configuration, schema checks, representative records, and two-user isolation; repeat monthly.
  • Before production traffic resumes, invalidate restored tokens and invites and reapply purges/deletions recorded after the backup cutoff; retain those deletion requests outside the restored database.
  • Record the backup cutoff so users know which acknowledged events may have been lost. Target ≤24 hours data loss and ≤24 hours service restoration.

Requirements: FR-16–FR-17; QR-09. SRS scenarios 9, 15, 17. Reference: docs/SRS.md, docs/ARCHITECTURE.md.

## Outcome An operator can recover Raisin Mem without silently reactivating revoked access or resurrecting purged memory. ## Acceptance - Schedule daily PostgreSQL 18 custom-format backups, encrypt them before off-server storage, retain 30 days, and alert on missing or failed backups. - Keep encryption keys and database credentials outside Git and separate from backup archives. - Document and exercise a fresh-database restore with roles/configuration, schema checks, representative records, and two-user isolation; repeat monthly. - Before production traffic resumes, invalidate restored tokens and invites and reapply purges/deletions recorded after the backup cutoff; retain those deletion requests outside the restored database. - Record the backup cutoff so users know which acknowledged events may have been lost. Target ≤24 hours data loss and ≤24 hours service restoration. Requirements: FR-16–FR-17; QR-09. SRS scenarios 9, 15, 17. Reference: `docs/SRS.md`, `docs/ARCHITECTURE.md`.
amiryahaya changed title from Automate encrypted backup and verify restoration to [FR-16, FR-17; QR-09] Automate encrypted backup and verify restoration 2026-10-23 21:31:12 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/raisin-mem#9
No description provided.