carlos / platform Public

docs: back up and restore the alert connector key

Roll notes gain 'Back up and restore the connector key': one 1Password
item per deployment holding the file's base64 (never printed), backed up
again whenever the engine logs 'made a new seal key'; restore is base64 -d
into the path, chown carlos:carlos, chmod 600, before the console starts.
Flagship was backed up by Paul on 2026-11-01; dev has none yet (optional
while dev has no Slack or webhook connectors). README's seal-key paragraph
says the same. Requested via platform-86.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 842ca1312c8f33a2df2ff34d6977e19b429c4938 parent 4231603
2 files changed, +34 −5
  • README.md +6 −1
  • docs/superpowers/notes/roll-fleet-alerts-1.md +28 −4

CI failed — run details

Intent

Attributed to this commit: 38.5 g CO₂e (4,859,137 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on fleet-alerts-2-traffic, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/README.md b/README.md
index 559ad7d4b..238eb0e55 100644
--- a/README.md
+++ b/README.md
@@ -1136,7 +1136,12 @@ key in its own 0600 file beside console.db, `alert-connectors.key`
(`/data/console/alert-connectors.key` by default). It is kept out of the
database on purpose: console.db is replicated to the bucket, and a replica
or backup alone must not reveal a Slack URL. Back up the key file
-separately. The console creates it on its first pass, and only when the
+separately: base64 it into a 1Password item, one per deployment, without
+printing the value, and back it up again whenever the engine logs `made a
+new seal key`. To restore, `base64 -d` it into the path, `chown
+carlos:carlos` and `chmod 600` it, all before the console starts. The roll
+notes (`docs/superpowers/notes/roll-fleet-alerts-1.md`) have the steps. The
+console creates it on its first pass, and only when the
path does not exist at all. After a restore from the replica alone, the
console makes a fresh key, every Slack and webhook connector shows "Enter
the URL again" and is skipped, and `seal_key` fires. Email connectors keep
diff --git a/docs/superpowers/notes/roll-fleet-alerts-1.md b/docs/superpowers/notes/roll-fleet-alerts-1.md
index 6b6ce9c5c..9d57429e3 100644
--- a/docs/superpowers/notes/roll-fleet-alerts-1.md
+++ b/docs/superpowers/notes/roll-fleet-alerts-1.md
@@ -94,10 +94,10 @@ deployment's boxes before its console.
shows a 32-byte 0600 file, and `stat -c %y <dir>/alert-engine.beat`
moves forward every minute. The directory is
`/data/console` unless the console unit sets `CONSOLE_DB`.
-4. Back up `alert-connectors.key` off the box. It is not in the Litestream
- replica, by design. Without it, a restore from the replica makes every
- Slack and webhook connector need its URL entered again. Where it lives
- (1Password beside the secrets key, say) is Paul's call.
+4. Back up `alert-connectors.key` off the box (see "Back up and restore
+ the connector key" below). It is not in the Litestream replica, by
+ design. Without it, a restore from the replica makes every Slack and
+ webhook connector need its URL entered again.
5. Nothing new in the journal: `journalctl -u console --since -10min | grep
'alert engine'` shows no repeating error. (Use the console's real unit
name; on dev it is `console.service`.)
@@ -162,6 +162,30 @@ Optionally, after this, point a box's `CARLOS_ALERT_WEBHOOK` at a Slack
incoming webhook so `disk` and `engine_silent` reach Slack too. That is one
more `host.env` line per box, again added just before a roll, and its own go.
+## Back up and restore the connector key
+
+`alert-connectors.key` seals the Slack and webhook connector URLs. It is
+not in the Litestream replica, so back it up on its own: one 1Password item
+per deployment.
+
+- **Flagship:** backed up by Paul on 2026-11-01. The item is "CARLOS
+ alert-connectors.key (flagship)" in vault Carloku, account
+ teamtito.1password.com, and holds the base64 of
+ `/data/console/alert-connectors.key` on the flagship console box.
+- **Dev:** no backup yet. It is optional while dev has no Slack or webhook
+ connectors.
+
+**Back up.** On the console box, as root, base64 the file straight into a
+1Password item. Never print the value to a terminal, a log or a chat. Back
+it up again whenever the key is recreated. The engine logs that as `made a
+new seal key`.
+
+**Restore.** Before the console starts, write the item's value back with
+`base64 -d` into the key's path (`/data/console/alert-connectors.key`, or
+beside `CONSOLE_DB`), then `chown carlos:carlos` and `chmod 600` it. A
+console that starts first and finds no file makes a new key, and every
+Slack and webhook connector then needs its URL entered again.
+
## Other console deployments
Only dev and flagship are in scope for this roll. Another operator's console,