From 176c335630a277bdccb4c99b5b8f56908d4b0a2a Mon Sep 17 00:00:00 2001 From: Adnan Zahir Date: Sun, 15 Nov 2026 02:37:47 +0700 Subject: [PATCH] docs: pair with --credentials so the token never reaches the terminal; writable credentials location Co-Authored-By: Claude Sonnet 5.5 --- docs/DATABASE-CAPTURE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/DATABASE-CAPTURE.md b/docs/DATABASE-CAPTURE.md index b1dae45..43f6c56 100644 --- a/docs/DATABASE-CAPTURE.md +++ b/docs/DATABASE-CAPTURE.md @@ -13,6 +13,8 @@ tessera-agent --hub-url https://backup.example.org --credentials /etc/tessera/wo tessera-agent --credentials /etc/tessera/wormhole.json --capture-profiles /etc/tessera/capture.json run ``` +Always pass `--credentials`: only then is the upload token written to the file and kept out of the terminal. Without it, `pair` prints `TESSERA_UPLOAD_TOKEN=…` to stdout, where shell history, logs and CI output can capture it. The file must not exist yet, and its directory must be writable by the account that runs `pair` (for a service account, use its home directory rather than a root-owned `/etc` path, or create the file as root and `chown` it to the service account with mode 0600 before `run`). + The credentials file is owner-only and contains the hub URL, outpost UUID and upload token. Keep it outside the repository. TLS uses the system trust store. Set `TESSERA_WORMHOLE_CA` for a private CA and configure both `TESSERA_WORMHOLE_CLIENT_CERT` and `TESSERA_WORMHOLE_CLIENT_KEY` for a hub that requires mTLS. Plain HTTP capture is available on loopback for local testing. ## Register an application