Skip to content

docs: highlight encryption-key location, backup, and override (closes #8)#11

Merged
postgresql007 merged 1 commit into
mainfrom
docs/issue-8-key-backup
Jun 24, 2026
Merged

docs: highlight encryption-key location, backup, and override (closes #8)#11
postgresql007 merged 1 commit into
mainfrom
docs/issue-8-key-backup

Conversation

@postgresql007

Copy link
Copy Markdown
Contributor

Addresses #8 (highlight encryption-key importance).

The asks

  1. State where the keys are and that you must back them up — done. The encryption tutorial and the FAQ "Where is the KEK stored?" entry now say plainly: the local KEK is kek.bin in the keyring directory (<config>/keyring; pg_hardstorage doctor prints the resolved path), losing it makes every backup under it mathematically unrecoverable, and the keyring directory must be backed up separately from the repository (or use a cloud KMS scheme).
  2. A parameter to change the key directory — this already exists: the PG_HARDSTORAGE_KEYRING_DIR environment variable (resolved in internal/paths). Now documented in both places.

Also fixed while here (consistency with the v1.0.3 correctness sweep): a stale "GCP/Azure/Vault KMS slated for v0.5+" note (those providers ship today) and a missed "AES-256-GCM-SIV by default" line in the FAQ.

Note: the marketing site's /examples page (referenced in the issue) lives in a separate repo; this PR covers docs.pghardstorage.org. The same key-backup callout should be added there too.

Addresses #8 — make key custody impossible to miss:
- Encryption tutorial + FAQ now state where the local KEK lives
  (kek.bin in the keyring directory, <config>/keyring; doctor prints the
  resolved path), warn prominently that losing it makes every backup
  under it unrecoverable, tell operators to back the keyring directory
  up separately, and document the PG_HARDSTORAGE_KEYRING_DIR override
  (the "parameter to change the key dir" the issue asked for already
  exists as that env var).
- Fixed a stale "GCP/Azure/Vault KMS slated for v0.5+" note in the
  encryption tutorial (those providers ship today) and a missed
  AES-256-GCM-SIV-as-default line in the FAQ (ships plain AES-256-GCM).

Closes #8.
@postgresql007 postgresql007 merged commit bdb2b95 into main Jun 24, 2026
33 checks passed
@postgresql007 postgresql007 deleted the docs/issue-8-key-backup branch June 24, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant