Expand description
The file store. Each entry is one file named by the SHA-256 of its account key, so no key text (ids, hostnames) reaches a file name and no key can escape the directory. No timeouts: file operations donβt wait on a user.
FunctionsΒ§
- delete π
- get_
optional π - path_
for π - prepare_
dir π - Create
dirif needed and make it owner-only (0700), also when it already existed with wider permissions. - put π
- Write via a fresh
0600temp file and a rename, so a reader never sees a partial secret and a crash never leaves one behind.