As an identity holder, I want to lock my vault, stop syncing, or log out of it, so that I decide when this phone holds my keys and when it can use them.
Situation
My identities are in the vault on this phone. I am lending the phone for a moment, or I no longer want it linked to my remote vault, or I am giving it away. I am on Me, in "Vault".
What I do
To lock: tap "Lock vault". To come back, tap "Unlock vault".
To stop syncing but keep my identities: tap "Switch to local".
To leave and clear the phone: tap "Log out and clear this device", read the alert, tap "Log out".
What I should see
"Lock vault" is the last row of Vault, in local and in remote mode.
After locking, the screen shows only "Locked", "Unlock vault" and "Reopen using the key kept in this device’s Keychain." The identity list and connection rows are hidden.
While locked, Me shows "No identity yet", and I cannot comment or use agents as anyone.
"Unlock vault" brings back "Local" or "Remote" and every identity, with no password.
In remote mode, "Remote vault" offers "Switch to local" and, in red, "Log out and clear this device".
"Switch to local" acts at once. Storage shows "Local" and "Vault stored on this device", my identities are still listed, and the connect form returns.
"Log out and clear this device" first shows an alert titled "Log out and clear this device?" with "Your identities remain in your remote vault and on your other devices." and the buttons "Cancel" and "Log out".
After "Log out", Storage shows "Local", the list says "No identities yet" and "Create an identity, import a key, or connect your remote vault."
When something goes wrong
If the vault cannot be opened, Storage shows a red message that starts "Failed to open the vault:" with a "Retry" button, and nothing else. I tap "Retry". Nothing on the phone is overwritten.
If I logged out too soon, I connect my vault again and the identities return.
Not included
Locking is not a passcode. Anyone holding the unlocked phone can tap "Unlock vault". There is no automatic lock and no Face ID. See Current limits and known gaps.
Leaving does not tell the vault server. This phone's approval stays valid there until I remove the device in the web vault. See Vault server.
Log out does not sync first. An identity added moments before, and not yet synced, would be cleared with the rest.
Switch to local and log out have no automated interface test.
Trace
Story US-VAULT-03, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.
Design
Page | Part it plays |
|---|---|
Lock, unlock, Switch to local, Log out and the alert | |
Me shows no identities while locked or after logging out | |
The Storage panel: Locked, Local, Remote, failure with Retry | |
The connect form that returns after leaving | |
The identity list hidden while locked | |
The Log out and clear this device? alert | |
Tinted reversible rows and the red destructive row | |
The log out confirmation and its reassurance | |
Reversible and irreversible actions look different | |
Failure with Retry and the empty identities state | |
Opening, failure, locked, local and connected states of Vault | |
Say where the keys are, first | |
System red for Log out | |
The exact lock and log out wording |
Implementation
Page | Part it plays |
|---|---|
Orientation and the no-master-password limit | |
lock, unlock, disconnect(clear) and failing closed on load | |
VaultScreen sections, vaultCommand and vaultAskLogout | |
cancel: locking and leaving end a pending connection | |
The signing key map that lock empties and unlock refills | |
Sealing the state under the Keychain key | |
Leaving makes no server call; the credential remains | |
vaultChanged and vaultBusy | |
Signed-in state that turns off while no identity is available | |
The Keychain and file grants behind the vault | |
No master password | |
The UI test that locks and reopens | |
The scripted drive that switches to local and logs out | |
Log out against the real server and what happens to the credential |
Code
File | What |
|---|---|
Locked state with Unlock vault | |
Switch to local, Log out and clear this device, Lock vault and the log out dialog | |
Opening and failure with Retry | |
vaultChanged, vaultEdited and vaultBusy | |
vaultCommand | |
vaultAskLogout | |
view wiring for the vault route | |
vaultCommand: local, logout, lock, unlock | |
disconnect, lock, unlock | |
load: fail closed, nothing written on failure |
Tests
File | What it checks |
|---|---|
vault: local empty state, lock and reopen | |
lock hides signers, unlock restores, switch to local keeps keys, logout clears | |
wrong Keychain key fails closed without overwriting ciphertext | |
logout clears only this phone; server data and the credential behave as documented | |
scripted drive of the built app: Switch to local, then Log out with its confirmation (run by hand) |
Delivery
Delivered by #1470.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime