"Lock on Reboot" triggers on Mac session lock
Description Whenever Mac session is locked, KeePassium incorrectly detects device reboot.
How to reproduce Steps to reproduce the behavior:
- Enable the "Lock on Reboot" option
- Lock Mac session / close the lid / set computer to sleep
- Wait 30+ seconds and unlock the session
- Observe the DB is locked and closed; app log states "Device reboot detected, locking the databases"
Expected behavior Locking the session should not be recognized as reboot.
Environment:
- Device: any Mac
- OS: any
- App Version: 2.5.171
Additional context After session lock, the app cannot access boot timestamp from keychain; the error is incorrectly interpreted as a reboot event.
[thanks, Stuart]
Hi. I reported this issue but I experienced it on iPad and iPhone, not macOS. Just wanted to check as this is tagged as a macOS bug. But I think it's a bug across all Apple operating systems, including iOS and iPadOS. Many thanks.
Thank you for the correction, @stukey. This issue explained a couple of macOS bugs, so I almost automatically filed it as macOS-only. We'll make sure to test the solution on both platforms.
Thanks @keepassium. Have you been able to find a fix or possible solution for this one? I hope so...
@stukey , yeah, the idea is to cache boot timestamp in RAM instead of going to keychain every time. It will just need some testing.
Sounds like a good plan. Look forward to testing this... Thanks!