Credential management features
Credential management is the vault experience for storing, finding, checking, and sharing sensitive information. It gives each entry a clear type and set of useful fields while keeping secret values out of the list until the user opens one. The main entry models are covered in Credential entry models and editing, password tools in Password generation and strength, sharing in Secure sharing, and attachments in Entry attachments.
Vault entry model
An entry is one saved item in the vault. Each entry has a title and can have tags, dates, and extra label-value fields. The vault also keeps list metadata, such as the entry type, favorite state, host, or username, so it can organize rows without opening every secret.
Sensitive entry types
The product uses entry types to match the fields and actions for a kind of sensitive information. This lets one vault hold everyday credentials and related secrets without forcing all items into one generic form.
| Entry type | Main purpose | Specialized information |
|---|---|---|
| Login | Store an account credential | Website, username, password, email, one-time password, and passkeys |
| Note | Store protected free-form text | A private note |
| Card | Store payment card details | Number, expiry, security code, PIN, name, and note |
| Identity | Store an identity document | Document type, holder data, dates, country, authority, and document numbers |
| SSH | Store an SSH key item | Private key, public key, fingerprint, passphrase, and note |
| Environment | Store an environment file | File body, source file name, and note |
| API key | Store a service token | Token, environment, base URL, scopes, expiry, and note |
References: src/…/types.ts• L8-149 src/…/index.ts• L14-23
Secret and display data
The list uses metadata for fast browsing, while secret fields are revealed only for the selected entry. This boundary supports search, filters, favorites, and type summaries without placing all vault contents on screen at once. A share preview follows the same rule: it shows enough identity data to confirm the item and reports the number of secret fields without showing their values.
References: src/…/types.ts• L151-186 src/…/vault.ts• L4-25 src/…/secrets.ts• L3-29 src/…/Preview.tsx• L7-55
Entry lifecycle
The entry lifecycle connects the list, detail view, and vault store. A user chooses an entry type, fills its type-specific form, saves it, and then sees the refreshed row in the current vault view.
Creation and editing
Creation starts in the Add a secret picker. The picker offers the supported entry types and also routes users to actions that do not fit a normal type choice, such as scanning or receiving a shared entry. Selecting a type opens its form, while editing uses the same detail surface as reading but changes the fields into an editable draft. A save adds a new item or replaces the selected item, then refreshes its list metadata and starts the normal vault follow-up work.
This diagram shows how a user action becomes a saved or updated vault row.
flowchart LR
A[Open Add a secret] --> B{Choose an entry path}
B --> C[Choose entry type]
B --> D[Scan or receive entry]
C --> E[Fill entry form]
E --> F[Save entry]
F --> G[Refresh list metadata]
G --> H[Show selected entry]
References: src/…/index.tsx• L30-51 src/…/vault.ts• L67-103 src/…/vault.ts• L128-156 src/…/index.tsx• L15-39 src/…/index.tsx• L17-63
Organization and retrieval
Users organize entries through type filters, tags, favorites, search, and the list view. Favorites change list metadata rather than the secret payload, so a user can mark an item without opening its protected fields. The detail view reveals one selected entry and provides actions such as edit, share, and archive when those actions apply.
References: src/…/ui.ts• L14-18 src/…/vault.ts• L198-208 src/…/index.tsx• L11-18 src/…/Read.tsx• L15-45 src/…/MoreMenu.tsx• L26-107
Archive and recovery
Archive is the reversible delete path for an entry. An archived item leaves the live list but keeps enough row information for the Archive view. The user can restore it to the live vault or purge it permanently, which separates a normal cleanup action from final removal.
References: src/…/vault.ts• L10-20 src/…/vault.ts• L158-196 src-tauri/…/vault.rs• L82-112
Credential evaluation
Credential evaluation helps users find weak account passwords before they become a larger vault problem. The audit covers entries that have passwords and reports strength, reuse, and known-breach status when breach checks are enabled.
Vault health
The audit turns per-entry results into a vault health view. It gives a single score and counts weak, reused, and breached passwords, while the detail view helps the user decide which entries need attention. Weak and reused checks run on the device; breach monitoring is a user-controlled check against known leaks.
References: src/…/tools.ts• L42-53 src/…/vaultScore.ts• L1-27 src/…/Hero.tsx• L12-63 src/…/Monitors.tsx• L12-66
Secret generation
Secret generation supports the creation of new passwords and SSH key items. The generator presents a mode suited to the selected use: a password can fill a login form or be copied as a standalone value, while an SSH key can fill the fields of a new SSH entry. Password generation also supports random or memorable word-based values and shows an entropy-based strength level.
Generator settings
The password generator exposes length, character groups, similar-character exclusion, and memorable-word options. Its settings are shared by the generator dialog and the Security settings page, so a user's defaults carry between those entry points. Generating a value does not save an entry until the user confirms the surrounding form.
The SSH mode produces a key pair for a new SSH entry. It keeps regeneration available until the user applies the pair to the entry, while the standalone password path copies the value instead of saving it.
References: src/…/generator.ts• L17-35 src/…/generator.ts• L71-149 src/…/Card.tsx• L24-93 src/…/Dialog.tsx• L19-71 src/…/GeneratorGroup.tsx• L10-47
Secure sharing
Sharing lets a user send one vault entry without giving the recipient access to the source vault. The sender publishes a sealed copy to the sender's connected Drive and receives a link that carries the opening key. The link is time-limited and can be revoked sooner.
Share publication
The send flow starts from a live entry's actions. The app seals the selected entry, creates the share, and presents a copyable link. Sharing needs a connected and previously synced workspace because the share must be tied to that vault for later listing and revocation. Anyone who has the link can open it until it expires or is revoked, so the link must travel through a trusted channel.
This diagram shows the sender-side path from a vault entry to a time-limited share link.
flowchart LR
A[Select live entry] --> B[Seal entry]
B --> C[Publish to sender Drive]
C --> D[Return link with opening key]
D --> E[Open until expiry or revocation]
References: src/…/share.ts• L4-14 src/…/share.ts• L33-58 src/…/SendDialog.tsx• L10-63 src/…/LinkPanel.tsx• L39-101 src-tauri/…/share.rs• L22-55 src-tauri/…/share.rs• L92-124
Share receipt
The recipient can open a share link without an account or an unlocked vault. The app first shows a non-secret preview so the recipient can confirm what was sent. Only after the recipient chooses Add to vault does the copied entry become a new local entry; it does not stay linked to later changes in the sender's vault.
This diagram shows how the recipient turns a link into an independent local entry.
flowchart LR
A[Paste share link] --> B[Open sealed copy]
B --> C[Review non-secret preview]
C --> D{Add to vault?}
D -- Yes --> E[Create local entry]
D -- No --> F[Discard preview]
References: src/…/share.ts• L42-47 src/…/ReceiveDialog.tsx• L11-89 src/…/Preview.tsx• L28-55 src-tauri/…/share.rs• L57-62
Related capabilities
The broad credential-management flow connects to four focused areas:
- Credential entry models and editing explains each entry type, its fields, and its edit behavior.
- Password generation and strength explains generated secrets, strength signals, and clipboard use.
- Secure sharing explains share creation, receipt, expiry, revocation, and ownership rules.
- Entry attachments explains how files and other supporting data relate to vault entries.
Change checklist
When these files or sections are changed, remember to consider these:
- When an entry type or secret field changes, update the type registry, list metadata, share preview, and audit scope together.
- When the Add a secret choices change, keep the entry form routes and alternate scan or receive actions aligned.
- When generator defaults change, keep the Security settings and generator dialog on the same stored settings contract.
- When generator modes or apply behavior change, keep login password filling, SSH key filling, and standalone copy behavior aligned.
- When archive behavior changes, keep delete, restore, purge, live-list state, and audit refresh aligned.
- When share lifetime or ownership rules change, update link text, active-share handling, expiry checks, and revoke behavior together.
- When a specialized entry stores derived metadata, keep the list summary consistent with the saved payload and the detail view.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The user tries to share before Drive is connected or before the workspace has completed a sync | The app cannot publish a share link | Require a connected, unlocked, and identified workspace before share creation |
| A share reaches its time limit | The link stops opening even if the sender has not manually revoked it | Show the 24-hour limit and provide early revocation |
| A sender revokes a share | The published file is removed before normal expiry | Keep revoke tied to the owning vault and retain retry behavior when the network fails |
| The user opens a share link but does not confirm it | No new vault entry is created | Use a preview step before Add to vault |
| A user archives an entry | The item disappears from live views but is not yet permanently lost | Keep restore and purge as separate Archive actions |
| Breach monitoring is disabled | Breach status is not included in the audit | Treat weak and reused checks as local always-on checks and make breach checks explicit |
| A generated password is used as a standalone value | The value is copied but no vault entry is saved | Make the user confirm an entry form when the value must persist |
Key files
| File | Why to read it |
|---|---|
| src/…/types.ts | Defines the entry types and the metadata boundary used by the vault UI. |
| src/…/index.ts | Shows how entry types become the product's shared kind registry. |
| src/…/index.tsx | Shows the entry creation choices and the alternate scan or receive paths. |
| src/…/vault.ts | Coordinates creation, saving, selection, archiving, favorites, and audit refresh. |
| src/…/vault.ts | Defines the user-facing vault actions for reveal, save, archive, restore, purge, and favorites. |
| src/…/vaultScore.ts | Shows how entry audit results become vault health signals. |
| src/…/generator.ts | Describes password modes, settings, entropy, and generated values. |
| src/…/Card.tsx | Shows how generated passwords and SSH keys are presented and applied. |
| src/…/share.ts | Defines the share create, open, revoke, and list contract. |
| src/…/SendDialog.tsx | Shows the sender's share experience and its Drive requirement. |
| src/…/ReceiveDialog.tsx | Shows the recipient preview and explicit add-to-vault step. |
| src-tauri/…/share.rs | Shows the native boundary for share publication, receipt, ownership, and expiry work. |