Explain the configurable print header, how to carry data from an existing encrypted file into a newer build, and the warning not to seal over a file that should be kept. Correct the footer wording now that the page header is in flow. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
133 lines
6.4 KiB
Markdown
133 lines
6.4 KiB
Markdown
# Maintaining Final Wishes
|
|
|
|
For the owner. The executor's instructions are in `docs/thumbdrive/README.txt`.
|
|
|
|
## What you have
|
|
One file, `final-wishes.html`: the app plus your data, encrypted with a
|
|
passphrase (PBKDF2-SHA256, 600,000 iterations, AES-256-GCM). It runs in any
|
|
browser, offline. There is no recovery if the passphrase is lost.
|
|
|
|
## Thumbdrive layout
|
|
```
|
|
final-wishes.html the encrypted guide
|
|
README.txt copy of docs/thumbdrive/README.txt (fill in the blanks)
|
|
backups/ dated copies, final-wishes-YYYYMMDD.html
|
|
```
|
|
Fill in the two blanks in `README.txt` with *where* the passphrase and any
|
|
printed copy are kept, never the passphrase itself.
|
|
|
|
## First-time setup
|
|
Either route gives the same kind of file:
|
|
|
|
- **In a terminal:** `npm run seal` encrypts `data/seed.json` (prompts twice
|
|
for a passphrase, minimum 12 characters). To write straight to the drive:
|
|
`node build.js --data data/seed.json --out /mnt/f/final-wishes.html`
|
|
(WSL needs the drive mounted: `sudo mount -t drvfs F: /mnt/f`).
|
|
- **In the browser:** `npm run build`, open `dist/final-wishes.html`, import
|
|
a JSON file or start a new document, then Save. You will be asked to
|
|
choose a passphrase.
|
|
|
|
**Never write a seal over a file you want to keep.** `npm run seal` builds
|
|
from `data/seed.json`, not from your latest edits; use it only for the very
|
|
first file. After that, edit in the page and Save.
|
|
|
|
After sealing, `data/seed.json` is still plaintext. Delete it (and see
|
|
"Security clean-up" below). `data/` and `*.pdf` are git-ignored on purpose.
|
|
|
|
## Updating
|
|
1. Open `final-wishes.html` from the drive, unlock, click **Edit**.
|
|
2. Change things, **Done editing**, **Save** (or Ctrl/Cmd+S).
|
|
- Chrome/Edge: pick the drive file once; later saves overwrite silently.
|
|
- Firefox/Safari: a new `final-wishes.html` downloads. Copy it over the
|
|
old one on the drive.
|
|
3. Saving updates "Last update" and the per-record dates. "Last update" is
|
|
what the printed header shows. Editing the header settings themselves does
|
|
not change it.
|
|
4. If you changed the passphrase, the old file still opens with the *old*
|
|
one until you save and replace it.
|
|
|
|
## Upgrading the app (new version, same data)
|
|
Your data is stored encrypted inside each `final-wishes.html`; the app code
|
|
sits beside it in the same file. A file therefore keeps running the version it
|
|
was saved with until you move its data into a newer build:
|
|
|
|
1. `npm run build` (or take a newer `final-wishes.html` build) and open
|
|
`dist/final-wishes.html`.
|
|
2. On the start screen choose **Open your existing Final Wishes file**, pick
|
|
your current file and unlock it with its passphrase. The old file is only
|
|
read, not changed.
|
|
3. Click **Save** and give the result a **new name** (for example
|
|
`final-wishes-new.html`) rather than the current one.
|
|
4. Open the new file, unlock it, and look through it. Only then replace the
|
|
old file (keep the old one in `backups/`).
|
|
|
|
Documents made by older versions keep working: anything a newer version added
|
|
(such as the print header) falls back to a default until you set it.
|
|
|
|
## Backups
|
|
- **Backup copy** downloads `final-wishes-YYYYMMDD.html` to your Downloads
|
|
folder. Move it into `backups/`.
|
|
- Keep a second copy off the drive. The file is encrypted, so cloud storage
|
|
or a second drive is reasonable. Thumbdrives fail without warning.
|
|
- After any important change, open the *copy* once and unlock it to prove it
|
|
works.
|
|
|
|
## The passphrase (the real single point of failure)
|
|
- Do not store it on the drive or in the same place as the drive.
|
|
- Good options: a sealed envelope with your will in the fire safe, or with
|
|
your attorney, plus a second person who knows where it is.
|
|
- Make sure your executor knows the drive exists and where the passphrase
|
|
is kept. The blanks in `README.txt` exist for this.
|
|
- Use a few random words (12+ characters is enforced). Do not reuse the
|
|
LastPass master password.
|
|
|
|
## Printing
|
|
**Print...** offers "Withhold secrets" (safe overview) and "Include
|
|
secrets" (full copy). Print on Letter paper with the browser's own
|
|
"Headers and footers" turned off (that is separate from the document header
|
|
below). A full copy is as sensitive as the passwords on it: store it in the
|
|
fire safe and shred superseded copies. Page layout was checked by rendering
|
|
pages in Chromium (Chrome/Edge); it has not been checked in Firefox or Safari,
|
|
so look at a test print the first time.
|
|
|
|
### The print header
|
|
Every printed page starts with a header line in larger bold type. It is part
|
|
of the document, so it is saved with the rest and is encrypted too. Open
|
|
**Print header** at the bottom of the sidebar to see a live preview, then
|
|
**Edit** to change it:
|
|
|
|
- Add as many fields as you like. Each is either **Text** (printed as
|
|
written) or **Last updated** (an optional label such as `Last update: `
|
|
followed by the document's last-update date).
|
|
- Each field's alignment is **Left**, **Right** or **Not aligned**. At most one
|
|
field can be left aligned and one right aligned; the other choice shows
|
|
"(in use)" and is disabled.
|
|
- Printed order is always: the left field, then the unaligned fields in the
|
|
order listed, then the right field. List order only matters between
|
|
unaligned fields. Use the arrows to reorder and the cross to remove.
|
|
- **Reset to default** restores the title on the left and "Last update: date"
|
|
on the right, which is also what a document with no header setting uses.
|
|
- Keep the left and middle text short. If the line gets crowded, the left
|
|
field wraps first; the right and middle fields never wrap.
|
|
|
|
## Keep it current
|
|
Nothing in the app reminds you to review. Set a yearly reminder. Things that
|
|
go stale: card expiry dates, account balances and metal values, advisors'
|
|
contact details, anything marked TBD. The "Still to add" section lists
|
|
known gaps.
|
|
|
|
## Security clean-up (issue #8)
|
|
- Destroy plaintext copies of the source material once the encrypted file is
|
|
verified: `abi-wishes.pdf`, the Word version, and `data/seed.json`.
|
|
- Rotate every password and PIN that appeared in the PDF (LastPass master
|
|
password, computer PIN, ATM PIN, bank logins), since it existed in
|
|
plaintext for years.
|
|
- Treat the encrypted file like any sensitive file: an attacker who gets it
|
|
can try passphrases offline forever, so the passphrase strength is all that
|
|
protects it.
|
|
|
|
## Limits
|
|
This is a guide, not a legal document. It does not replace a will, health
|
|
care directive or powers of attorney, and the executor may still need
|
|
those to be granted access to accounts.
|