Repository navigation
feat: doctor reports off-server backup copies; ADR 0027 on copy encryption - #111
Conversation
…el copy encryption doctor --backup-copy-dir (or CONSOLEBOOK_BACKUP_COPY_DIR) reports the copy directory in the same states as /api/backups/status: not_configured, unreachable, behind, or current, read-only (ADR 0003). backup_copy owns the state through copy_status(). The release workflow runs it against a real install, before and after the share is unmounted. ADR 0027: Consolebook does not encrypt backup copies; the share must be encrypted at rest and access-controlled, and the install guide says so. Closes #99 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…up-copy # Conflicts: # CHANGELOG.md # docs/development.md
The version history already showed version 1's "acknowledged receipt with a response", so the assertion usually passed before the version 2 acknowledgment existed, and failed in strict mode when both were rendered. It now looks only in the Acknowledgment panel. Closes #112 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
…e/99-doctor-backup-copy
|
The local full proof on Filed as #112 and fixed in #113, with a negative control. The fix is ported here in Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cb53408a52
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…k path separately SMB 3 encryption protects the connection, not the files on the share. Refs #99 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Primary Issue
Closes #99
Closes #112 (fix ported from #113)
Problem And Outcome
Off-server backup copies (ADR 0024) were visible only while the server ran, through
/api/backups/statusand the administrator's home page.doctordidn't look at the copy directory, and ADR 0024 left copy encryption to "an encryption decision". After this PR:doctor --backup-copy-dirreports the copy directory in the same four states as the health read, without writing anything (ADR 0003);Changes
backup_copy::copy_status(data_dir, copy_dir)is the one owner of copy state;status()uses it too. It reads only: it never creates, writes, or repairs the copy directory.doctor::run(data_dir, backup_copy_dir)adds abackup copyfinding:ok current:when the directory holds the newest local snapshot;warnfornot_configured,unreachable(missing, not a directory, same filesystem as the data, or unlistable), orbehind.FAIL: the installation still works, and the exit status keeps meaning "broken".doctor --backup-copy-dir, which also readsCONSOLEBOOK_BACKUP_COPY_DIR.doctorreportscurrentbeside the running service, andunreachableafter the share is unmounted, without recreating it.doctorcommand; development index; CHANGELOG.Correction rung: 1. One owner for copy state, shared by the health read and
doctor.Decision flag for the maintainer
ADR 0027 decides not to encrypt copies in the application. The reasoning:
If you'd rather require encryption, this ADR is the place to change it before 0.2.0 ships.
Verification
tests/doctor_backup_copy.rs, one test per state:warn;unreachable, and is never created;behind, and the directory listing is unchanged;current, with no failure and the listing unchanged.0033898: passed, all 7 gates..proof/20261015T001744Z-00338986f7e4/receipt.json, sha256385cfdb176314d9940ae2c2e1ed6f9a57e38df7e3ec60c946b7be7a1a673869f.0033898:fmt-clippy-test,build-x86_64(including the installer anddoctorsteps on a systemd runner), andbuild-aarch64all passed.0033898: no major issues.🤖 Generated with Claude Code
https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
Generated by Claude Code