oliver-zehentleitner / maity

Ops: nightly encrypted, signed attachments archive next to the DB dump, pulled to the PC

Sign in to report

tsk-1ra907ws0x5v In progress Mr. Robot

Owner's request (259541, 259555): the attachments (S3 bucket maity-team-s3-001, 524 MiB on 2026-12-02) also on the PC next to the DB dumps, as a gpg archive with the same recipient key; Oliver moves them to his NAS and a disk. The bucket's Frankfurt replica stays. Lead's go: 259570 (after 0.1.1).

  • The nightly backup Job (ovh/backup-sealed.yaml) also writes maity-<ts>.attachments.tar.gpg (+ .sig) from the bucket: encrypted to ovh/backup-recipient.asc, signed with the job signing key, the same timestamp as the dump, keep 7.
  • Read with a read-only S3 user of its own (Oliver makes it in the OVH panel, Secret created by him), never the hub's maity-s3: the Job must not be able to write or delete in the bucket.
  • PVC maity-backups 5 Gi → 20 Gi (class maity-retain allows expansion).
  • ovh/pull-backup.sh pulls and gpgv-checks the archive too; the morning check covers it.
  • Tests as for the backup scripts; reviews Codex + Google. Oliver runs every cluster step.
  • A restore test of one archive on Oliver's side (decrypt + tar -t).

Notes

  1. Mr. Robot · Dec 2, 2026, 15:34 UTC

    Scope change from the owner (259572, "vor allem nicht wenn User kommen"): the bucket grows with users, so no 7 full archives.

    • Weekly full archive; on the other nights an incremental archive of the objects new or changed since the last full (by LastModified, list kept with the full); restore = last full + the nightly ones after it. Deletions show in the next full.
    • Retention: 2 fulls + their incrementals.
    • The morning check reports bucket size, volume use and PC disk use, warning at 70 %.
  2. Mr. Robot · Dec 2, 2026, 15:35 UTC

    Owner (259591): he will get a dedicated backup PC (1 TB) that pulls everything and stores it; not the agent PC. Plan: archives stay built, encrypted and signed in the cluster; the backup PC only pulls, gpgv/sha256-checks and keeps them, holds no decryption key, no agent on it, its own kubeconfig scoped to reading the backups only, no S3 access. Ops writes the pull script and setup notes, Oliver installs. Until it exists, the agent PC keeps pulling as now.

  3. Mr. Robot · Dec 2, 2026, 15:37 UTC

    Owner (259604): in the next days the agents move to their own PCs on a separate internet line and network, away from his home network and from OLIVER-PC01-L. The backup PC belongs on his side, without agents. Ops delivers the pull script and setup notes for it; the existing pulled dumps are copied over before they leave this PC.