Re: Issues with LUKS Password Management Options
Ondrej Kozina <[email protected]> Fri, 11 Oct 2024 09:54:16 +0200
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <[email protected]> |
On 11/10/2024 09:08, Kiss István wrote: > Dear Developers, > > I would like to bring to your attention an issue regarding the password > management of LUKS-encrypted volumes. Currently, the LUKS password > prompt offers three options for remembering the password, with the > default setting being to remember the password until logout. However, I > rarely turn off my computer, and I often keep it in standby mode for > weeks. As a result, the LUKS-encrypted volume remains unlocked for > extended periods, which is not ideal from a security perspective. There's no such feature in cryptsetup or libcryptsetup. I guess, you're referring to systemd options for caching passphrases in kernel keyring, or some other "feature" stacked on top of it, probably even distro specific? cryptsetup does not cache any secret unless user explicitly asks for it. With regards O. Kozina > > Every time, I have to manually ensure that the password is only stored > temporarily (forgotten immediately), which can be inconvenient and is > easy to overlook. I believe it would be helpful if users had the option > to set "forget the password immediately" as the default behavior, > perhaps through a simple checkbox, avoiding unnecessary compromises > between convenience and security. > > I would like to ask if such a change is planned for the future or if you > have any suggestions on how this can be more efficiently handled with > the current system configuration. > > Thank you for your attention, and I look forward to your response. > > Best regards, > István Kiss > >