Skip to content

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.

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.

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

  1. System Settings → Touch ID & Password.
  2. 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

  1. 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.
  2. System Settings → Touch ID & Password → Add Fingerprint, touching the keyboard’s sensor.
  3. 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

  1. 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.
  2. System Settings → Touch ID & Password → Apple Watch: turn on the switch next to your watch.
  3. 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

Terminal window
bioutil -c # number of fingerprints enrolled for the current user
bioutil -r # biometrics settings of the current user

On 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).

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.

  1. Settings → Security & Privacy → App Lock → Two-Factor Unlock → Set up authenticator…
  2. 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>.
  3. Type the code the app shows and click Turn on within 15 minutes.
  4. 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.
  5. 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.

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.

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.

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.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close