Introducing a new way to review your PRs.

Read the announcement

fwdai / rowel

🔑 Local-first Secrets Manager

View on GitHub

23 documents · Updated Oct 9, 2026

docs / browser-integration-and-autofill

Browser integration and autofill

Rowel extends an unlocked vault into supported browsers. Its browser extension finds and fills site credentials, can save new login data, and can use vault passkeys. A native host connects the extension to the desktop app while keeping vault access tied to user approval and the active vault.

Browser access model

The browser integration has three parts: a browser extension, a desktop host, and the open vault. The extension handles pages and browser UI. The desktop host provides the local connection and applies vault and consent rules. The extension cannot use vault data until the user has enabled the host and associated that extension with the vault.

The main path from a browser page to a vault action is:

flowchart LR
    Page[Browser page] --> Extension[Rowel browser extension]
    Extension -->|Native messaging| Host[Rowel desktop host]
    Host -->|Local connection| App[Running Rowel app]
    App --> Vault[Open vault]
    Vault --> Result[Fill, save, or passkey result]
    Result --> Extension
    Extension --> Page

Extension delivery

The extension supports Chromium-based browsers and Firefox through browser extension packages. On macOS, the same browser experience ships inside Rowel.app as a Safari app extension, so Safari users do not download a separate extension. The extension provides the page tools, toolbar controls, settings, and passkey page bridge; the desktop app remains the owner of vault access.

See Browser extension automation for the extension's page behavior, automation flow, and browser-specific packaging. See Native browser services and passkeys for the native protocol and passkey consent surfaces.

References: extension/…/manifest.json• L1-84 docs/browser-extension.md• L3-23 docs/safari-extension.md• L3-9

Desktop host association

When the user enables browser integration, Rowel registers a native messaging host for each detected supported browser. The browser starts the Rowel executable for extension traffic, and that process relays requests to the already running desktop app. Rowel can also register under the KeePassXC host name so the stock KeePassXC-Browser extension can use Rowel. If another installation owns that name, Rowel leaves it in place and reports the conflict instead.

The first connection from an extension asks the user to approve and name it. Rowel stores that extension's identification key inside the vault that received the approval. This makes an association specific to one vault and prevents an extension approved for one workspace from silently using another workspace.

References: src-tauri/…/browser.rs• L49-76 src-tauri/…/manifest.rs• L30-67 src-tauri/…/manifest.rs• L254-327 src-tauri/…/mod.rs• L340-383

Credential autofill

Credential autofill turns the active site into a focused vault query. The extension identifies the site's form and asks the host for matching login entries. The host returns only the data needed for browser work, such as a username, password, current one-time code, or generated password.

Login retrieval and filling

The host matches the page host against login entries in the open vault. The extension can then fill a detected form automatically, let the user choose among several matching logins, fill only a password or one-time code, and submit the form when the user's settings allow it. It can also send credentials typed into a page back to Rowel to create or update a login.

The same connection supports lock and unlock actions. A locked vault returns no login data, and the extension can ask Rowel to come forward so the user can unlock it. Lock and unlock changes are sent to connected extensions so their state and later requests follow the vault state.

References: src-tauri/…/actions.rs• L15-25 src-tauri/…/actions.rs• L56-81 src-tauri/…/mod.rs• L476-569 extension/…/fill.js• L24-95

Access boundaries

Association is checked as part of each useful browser action, not only when the connection starts. Forgetting an extension removes its access from the active vault, and a workspace switch makes the old association unusable in the new vault. Turning the host off removes its browser registration and causes active connections to stop serving requests.

The browser protocol protects normal requests after key exchange with an encrypted message envelope. This protects the local request path, while vault lock state and the per-vault association decide whether a request is allowed at all.

References: src-tauri/…/actions.rs• L38-55 src-tauri/…/mod.rs• L368-383 src-tauri/…/mod.rs• L451-474 src-tauri/…/protocol.rs• L1-10 src-tauri/…/server.rs• L166-186

Passkey support

Passkey support lets a site use a passkey stored in the Rowel vault through the browser's WebAuthn API. The extension places a page bridge around passkey creation and sign-in requests. The desktop host checks the site request, asks the user for consent, and runs the passkey operation against the open vault.

Passkey ceremonies

A passkey ceremony is one site request to create a credential or sign in with one. For registration, Rowel creates a new discoverable passkey and returns the WebAuthn credential to the page. For sign-in, Rowel finds credentials for the site's relying-party ID and returns a signed assertion for the selected account.

The host accepts secure web origins and checks that the relying-party ID belongs to the requesting site. Each ceremony needs a user decision. A refusal, invalid site request, missing credential, or locked vault returns an error to the page instead of exposing a signing key.

References: extension/…/passkeys-inject.js• L14-29 extension/…/passkeys-inject.js• L64-96 src-tauri/…/passkeys.rs• L99-181 src-tauri/…/passkeys.rs• L184-277

Passkey key boundary

The vault and native passkey service own private signing keys. The web page and its extension bridge receive WebAuthn results, but they do not receive the private key used to create or sign with a passkey. This lets the browser complete the WebAuthn exchange without making the page or web view a key store.

The desktop UI displays the requesting site and controls the one active browser consent decision. A consent request expires if the user does not answer, and a late answer cannot approve a different request.

References: src-tauri/…/mod.rs• L13-18 src-tauri/…/passkeys.rs• L219-277 src-tauri/…/mod.rs• L180-192 src/…/browser.ts• L81-115

Platform connection paths

The browser feature keeps one vault-facing service while adapting the connection to each browser platform. Chrome, Chromium, Edge, Brave, Vivaldi, and Firefox use native messaging registration. Safari uses a bundled app extension and a shared local app-group connection on macOS.

Desktop browser path

For desktop browsers with native messaging, the browser launches a small Rowel host process. That process forwards framed messages to the running app over a local socket. The app serves all requests from the same browser host and sends lock or unlock signals to connected extensions.

Safari path

Safari does not launch the desktop executable as a native messaging host. Its bundled app extension forwards messages through the macOS app group to a separate local socket served by Rowel. This path shares the vault and consent rules with other browsers, but Safari availability can fail independently without disabling Chrome or Firefox integration.

References: src-tauri/…/mod.rs• L113-177 src-tauri/…/proxy.rs• L1-24 src-tauri/…/server.rs• L36-45 src-tauri/…/tests.rs• L1378-1448 docs/safari-extension.md• L12-27 docs/safari-extension.md• L29-45

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the native host names, extension identifiers, and browser allow lists aligned across the extension manifest, host manifest generation, and store builds.
  • Keep the extension's claimed protocol version within the actions that the desktop host actually serves.
  • Keep browser associations scoped to the vault and active workspace when changing lock, workspace switch, forget, or restore behavior.
  • Keep site matching and login save rules aligned between browser autofill and other native autofill clients.
  • Keep passkey request validation, consent IDs, response error mapping, and private-key ownership aligned across the page bridge and native host.
  • For Safari changes, keep the bundled extension, app-group socket, socket path limits, and signing entitlements compatible.

Important failure modes

TriggerConsequenceGuard
Rowel is off or its host manifest is missingThe extension cannot connect to the desktop appSettings writes host manifests only when integration is enabled and reports detected browser state
A browser extension ID is not in the host allow listThe browser cannot use that host registrationFixed Rowel and compatibility identifiers are kept in the extension and native manifest definitions
The vault is lockedLogin, TOTP, save, and passkey actions fail instead of returning secretsThe host requires an open vault and can raise Rowel for unlock
An extension is forgotten or the user changes workspaceThe next browser action loses its associationAssociation is checked against the active vault for each protected request
A passkey request has an insecure origin or mismatched relying-party IDThe site receives a WebAuthn error and no credential resultThe native passkey service validates the origin and relying-party relationship before consent
The Safari app-group socket cannot be created or its path is too longSafari shows as disconnected while other browser paths can keep workingSafari uses a separate best-effort listener and does not control the desktop browser listener

Key files

FileWhy to read it
src-tauri/…/mod.rsDefines the desktop browser host boundary, vault association, and app-facing behavior
src-tauri/…/actions.rsShows the browser actions and the access checks applied before they reach the vault
src-tauri/…/manifest.rsExplains supported browsers, host registration, extension identifiers, and conflict handling
src-tauri/…/passkeys.rsDescribes the native passkey request and response boundary
src-tauri/…/server.rsShows how browser connections and lock state signals reach the running app
src-tauri/…/browser.rsDefines the desktop settings and consent commands used by the UI
src/…/browser.tsDefines the browser status and user-response contract used by the frontend
extension/…/manifest.jsonShows the extension entry points, page scripts, permissions, and passkey injection path
extension/…/fill.jsIllustrates the user-facing credential fill and save workflow
extension/…/passkeys-inject.jsIllustrates how page WebAuthn requests enter the extension flow
docs/browser-extension.mdGives the extension delivery, build, and supported browser context
docs/safari-extension.mdExplains the macOS Safari packaging and connection path