Set up the app lock
KryoDesk keeps passwords, key passphrases and tokens in vault.kdbx. The app lock decides when
KryoDesk may read it. This guide prepares the system before the first start, then sets the second
step and the lock rules. The screens themselves: First launch and unlock.
Messages and fixes: App lock and the vault.
1. Pick the unlock method
Section titled “1. Pick the unlock method”The first start offers one tile per method. The choice is saved in the vault and asked again only for a new, empty vault.
| Method | System | Unlocks with | Pick it when |
|---|---|---|---|
| Touch ID | macOS | Fingerprint, a paired Apple Watch, or the macOS account password | Any Mac. Without Touch ID and a watch the same tile asks for the account password. |
| Windows Hello | Windows | Face, fingerprint or the Windows Hello PIN | Windows Hello is set up for your account (step 2). |
| Authenticator app | both | A 6-digit TOTP code from a phone app, or a recovery code | No usable system method, or you want the phone as the only key. |
A hardware security key (YubiKey and other FIDO2 keys): Unlock with a security key.
With Touch ID or Windows Hello an authenticator code can be added later as a second step (step 3). With Authenticator app the code is the only step.
2. Prepare the system method
Section titled “2. Prepare the system method”KryoDesk asks macOS for owner authentication (LocalAuthentication, policy
DeviceOwnerAuthentication). The system sheet accepts, in this order of what is available:
Touch ID, a paired Apple Watch, the macOS account password. The password is always accepted, so a
Mac without a working sensor does not stay locked.
Touch ID on the built-in sensor
- System Settings → Touch ID & Password.
- Add Fingerprint and follow the prompts. macOS keeps up to 3 fingerprints per account (5 per Mac).
The switches under Use Touch ID for (unlocking the Mac, Apple Pay, …) do not matter for KryoDesk; a fingerprint enrolled for your account is enough.
Magic Keyboard with Touch ID
- Connect the keyboard with its USB-C or Lightning cable once: macOS pairs it and enables the sensor. The keyboard’s sensor works with Macs with Apple silicon only.
- System Settings → Touch ID & Password → Add Fingerprint, touching the keyboard’s sensor.
- After that it works over Bluetooth. If the keyboard is off or out of range, the sheet offers the Apple Watch or the password.
Lid closed (external display)
The built-in sensor does not read with the lid closed. Use a Magic Keyboard with Touch ID, an Apple Watch, or type the macOS password in the sheet. Closing the lid puts the built-in display to sleep, which locks KryoDesk when Lock on sleep, closed lid, display sleep and screen lock is on (step 4).
Apple Watch
- Requirements of macOS: the watch has a passcode and wrist detection on, the Mac and the watch use the same Apple Account with two-factor authentication, Wi-Fi and Bluetooth are on.
- System Settings → Touch ID & Password → Apple Watch: turn on the switch next to your watch.
- At the unlock, double-click the watch’s side button when it asks.
Remote access (Screen Sharing, other remote desktops)
Touch ID needs a finger on the sensor of the Mac; a watch has to be next to the Mac. Over a remote session type the macOS password in the same sheet.
Check
bioutil -c # number of fingerprints enrolled for the current userbioutil -r # biometrics settings of the current userOn the first-start screen a Mac without Touch ID and a paired watch shows Mr. Paperclip’s note
macOS says: no Touch ID / Apple Watch: com.apple.LocalAuthentication <code>: <text>. The Touch ID tile works anyway: it asks for the account password. The code tells why (see
Touch ID: error codes).
KryoDesk asks Windows for user consent (UserConsentVerifier) and creates its own Windows Hello
key (KeyCredentialManager). The key signs a random challenge; the signature gives the key that
encrypts the vault key in Credential Manager. Windows keeps that key pair in the TPM when the
computer has one, otherwise in software.
- Settings → Accounts → Sign-in options.
- Set up PIN (Windows Hello) first: face and fingerprint need it.
- Optional: Facial recognition (Windows Hello) (an infrared camera) or Fingerprint recognition (Windows Hello) (a reader built in or on USB).
- On the first-start screen click Check again if the tile was greyed out, then Windows Hello. Windows first creates the key (one prompt), then asks to confirm.
Check
Get-Tpm # in an elevated PowerShell: TpmPresent, TpmReadyA greyed-out tile shows the reason from Windows (NotConfiguredForUser, DeviceNotPresent,
DisabledByPolicy, DeviceBusy). Group policy that turns off Windows Hello leaves only the
authenticator app. All messages:
Windows: Windows Hello on the lock screen.
A Windows Hello PIN reset or a new Windows Hello container replaces KryoDesk’s key; the vault key sealed with the old one then does not open.
3. Add the authenticator code (optional)
Section titled “3. Add the authenticator code (optional)”A TOTP code (RFC 6238: SHA-1, 6 digits, 30 s) after Touch ID or Windows Hello. Any TOTP app works: Google Authenticator, Microsoft Authenticator, 1Password, Bitwarden, Authy, Aegis, FreeOTP. It is a gate of the app; it does not encrypt the vault.
- Settings → Security & Privacy → App Lock → Two-Factor Unlock → Set up authenticator…
- Scan the QR code, or type Secret (manual entry) (Base32, time-based, SHA-1, 6 digits,
30 s). The entry is named
KryoDesk: <user>@<computer>. - Type the code the app shows and click Turn on within 15 minutes.
- KryoDesk shows 10 recovery codes (
XXXXX-XXXXX) once. Copy them to a place you can reach without this computer (a password manager on the phone, paper). Each works once in place of a code. Without the phone and without a recovery code the app cannot be unlocked. - Code needed again after (minutes, 0–1440, default 0): after a code, unlocks within this time need only Touch ID or Windows Hello. 0 = a code at every unlock.
The phone’s clock and the computer’s must agree within 30 s: both should take the time from the network. Field and button reference: Settings: Two-Factor Unlock.
After 5 wrong codes in a row the app locks. With a system step first, the system step is needed again. With the code as the only step, the next try waits 30 s, doubling with every further 5 wrong codes up to 1 hour; quitting KryoDesk resets the wait.
4. Choose what locks the app
Section titled “4. Choose what locks the app”Settings → Security & Privacy → App Lock → Automatic Lock, saved in settings.json, object
security:
| Field | Key | Default | Effect |
|---|---|---|---|
| Unlock lasts | sessionMinutes |
60 | Minutes from an unlock to the next lock (1–1440). |
| Lock after inactivity | idleMinutes |
0 (off) | Minutes without key press, click, mouse movement or scroll in any KryoDesk window (0–1440; checked every 15 s). |
| Lock on sleep, closed lid, display sleep and screen lock | lockOnSleep |
on | macOS: system sleep, display sleep or closed lid, screen lock, switch to another user. Windows: suspend, display off, closed lid, a locked, disconnected or switched session. |
| Code needed again after | totpGraceMinutes |
0 | See step 3. |
The lock screen names what locked it, for example Locked: system sleep.,
Locked: display sleep / lid closed., Locked: screen locked.,
Locked: user session switched., Locked: no keyboard or mouse input for 15 min.; after
Unlock lasts it says The session ended. After sleep or a closed lid, the Touch ID or Windows
Hello prompt comes up by itself when the window gets the focus again.
What a lock clears
Section titled “What a lock clears”Cleared from memory: the vault and its key, secrets of open tabs (database passwords, S3 secret keys, Proxmox tokens), keys decrypted by KryoDesk’s built-in SSH agent and key files of sessions, API logins of monitoring sources, Kubernetes exec-plugin credentials.
Not interrupted: open SSH, SFTP, RDP, database and other connections, and operations started before
the lock (a file transfer, an S3 multipart upload, a Proxmox action being followed). New actions
that need a secret wait for the unlock or are refused with app locked: … or
saved secrets are locked: unlock the app (…). Full list:
Security model: what the lock clears.
Change the method later
Section titled “Change the method later”Two-Factor Unlock switches between the system method with a code (Code alone makes the code the only step) and the code alone (Use Touch ID first / Use Windows Hello first). Moving to another computer: the vault key stays in the system key store of the old one; see The vault file.