Documentation
¶
Overview ¶
Package datasec provides at-rest encryption for secrets stored in SQLite.
The key lives in dataDir/secrets.key (mode 0600) and IS included in backup archives — the encrypted DB is useless without it, so a backup that left it out would not restore to a working panel on a fresh host. The trade-off is that a backup archive is as sensitive as the key itself: treat it accordingly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptFile ¶
EncryptFile reads path and returns encrypted bytes (AES-GCM, random nonce prepended).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.