Repository navigation
Security
github-actions[bot] edited this page Nov 25, 2026
·
1 revision
- A copy of the database (backup, dump, a copied file, a leaked replica) without the key: the secrets cannot be read.
- Changed values: a modified, truncated or swapped value fails to open instead of returning wrong data.
- Values moved between rows or fields: each value is bound to its name and only opens under it.
-
Leaks through errors: every failure to open is the same
ErrDecryptwithout details; errors about keys never contain the key.
- An attacker on the server who can read the key file, the environment or the memory of the app can open everything. That is by design: the app must be able to read its secrets.
- Losing the key. There is no recovery. See Keys.
- Who may read a secret inside the app: that is the app's decision.
- Keep the key outside the database and back it up separately.
- Choose names that bind each value to where it belongs (see Getting Started).
- Treat
ErrDecryptas an internal error: log it, show people a sentence about the effect ("The DNS token cannot be read; enter it again"), never the technical cause. - Never log or return secrets after they were stored.
Privately, through Security → Report a vulnerability. See SECURITY.md.
panzerschrank: https://github.com/danielgtmn/panzerschrank. This wiki is generated from the wiki/ folder in the repository; edit the files there, not in the wiki.