ops: wire the Brevier phone inbox and document the new source env files #49

Open
opened 2026-11-08 19:52:10 +00:00 by david · 2 comments
Owner

Follow-up to the BookOrbit and Brevier ingesters: the code will be useless until the credentials and the phone bridge exist, and both are easy to get subtly wrong.

Checklist

  • ~/.config/knox/bookorbit.env (0600): BOOKORBIT_URL, BOOKORBIT_USERNAME, BOOKORBIT_PASSWORD. Loaded via the systemd unit's EnvironmentFile, next to karakeep.env.
  • BREVIER_ARCHIVE / BREVIER_INBOX in ~/.config/knox/knox.env (defaults are ~/.local/share/brevier/archive and ~/.local/share/knox/inbox/brevier).
  • Host: create the inbox directory; make sure the systemd unit can read it.
  • Phone: Syncthing folder on shared storage; share Brevier's Your notes (all pages) into it; per-page Save for articles wanted in full. Both land in the same inbox.
  • Verify the first sweep, then verify replication to dhg.lol without enabling KNOX_LOCAL_SOURCES there.
  • Document the sources in the README source table, including what the phone can and cannot export today.

Notes

  • Credentials must not enter git or logs. Secret rotation is still open in #44.
  • Brevier's archive is LZ4 on the phone but the phone never exposes it; only notes and per-page saves can leave the device.
Follow-up to the BookOrbit and Brevier ingesters: the code will be useless until the credentials and the phone bridge exist, and both are easy to get subtly wrong. ## Checklist - [x] `~/.config/knox/bookorbit.env` (0600): `BOOKORBIT_URL`, `BOOKORBIT_USERNAME`, `BOOKORBIT_PASSWORD`. Loaded via the systemd unit's `EnvironmentFile`, next to `karakeep.env`. - [ ] `BREVIER_ARCHIVE` / `BREVIER_INBOX` in `~/.config/knox/knox.env` (defaults are `~/.local/share/brevier/archive` and `~/.local/share/knox/inbox/brevier`). - [ ] Host: create the inbox directory; make sure the systemd unit can read it. - [ ] Phone: Syncthing folder on shared storage; share Brevier's **Your notes** (all pages) into it; per-page **Save** for articles wanted in full. Both land in the same inbox. - [ ] Verify the first sweep, then verify replication to dhg.lol without enabling `KNOX_LOCAL_SOURCES` there. - [ ] Document the sources in the README source table, including what the phone can and cannot export today. ## Notes - Credentials must not enter git or logs. Secret rotation is still open in #44. - Brevier's archive is LZ4 on the phone but the phone never exposes it; only notes and per-page saves can leave the device.
Author
Owner

BookOrbit half is done:

  • ~/.config/knox/bookorbit.env exists (0600).
  • ~/.config/systemd/user/knox.service gained EnvironmentFile=%h/.config/knox/bookorbit.env (it only had knox.env and karakeep.env, which is why the daemon never saw the credentials).
  • daemon-reload + restart done; the running watcher carries all three BOOKORBIT_* keys and the 30-minute tick now runs.

Remaining here: the Brevier inbox directory, the phone's Syncthing folder, and the README line for the phone export path.

BookOrbit half is done: - `~/.config/knox/bookorbit.env` exists (0600). - `~/.config/systemd/user/knox.service` gained `EnvironmentFile=%h/.config/knox/bookorbit.env` (it only had `knox.env` and `karakeep.env`, which is why the daemon never saw the credentials). - `daemon-reload` + restart done; the running watcher carries all three `BOOKORBIT_*` keys and the 30-minute tick now runs. Remaining here: the Brevier inbox directory, the phone's Syncthing folder, and the README line for the phone export path.
Author
Owner

Host side is done, so what is left here is only the phone.

  • ~/.local/share/knox/inbox/brevier/ created (the default BREVIER_INBOX); the watcher reads it hourly.
  • No env file needed unless overriding the defaults: the archive path auto-detects ~/.local/share/brevier/archive and the Flatpak sandbox path.
  • README documents the three sources, and specifically what the phone can and cannot export (notes + per-page Save; no bulk archive).

Your side: point a Syncthing folder at that inbox and share Brevier's Your notes into it (and per-page Save for anything wanted in full). Nothing arrives until that exists, which is why knox brevier currently reports nothing on this host — Brevier is not installed here either.

Bulk archive export from the phone remains an upstream feature; per the earlier decision, no patch is being sent.

Host side is done, so what is left here is only the phone. - `~/.local/share/knox/inbox/brevier/` created (the default `BREVIER_INBOX`); the watcher reads it hourly. - No env file needed unless overriding the defaults: the archive path auto-detects `~/.local/share/brevier/archive` and the Flatpak sandbox path. - README documents the three sources, and specifically what the phone can and cannot export (notes + per-page Save; no bulk archive). **Your side:** point a Syncthing folder at that inbox and share Brevier's **Your notes** into it (and per-page **Save** for anything wanted in full). Nothing arrives until that exists, which is why `knox brevier` currently reports nothing on this host — Brevier is not installed here either. Bulk archive export from the phone remains an upstream feature; per the earlier decision, no patch is being sent.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: david/knox#49