The Linux kernel key retention service (keyrings) lets you store secrets in kernel memory — never on disk, automatically discarded when your session ends. This makes it a solid backing store for the encryption key used to protect a dotfile like .app.conf.
The kernel exposes a hierarchy of keyrings tied to different lifetimes:
| Keyring | Lifetime | Typical use |
|---|