Skip to content

Add browser authorization support for CLI and native messaging - #297

Closed
FelixJacobi wants to merge 7 commits into
passbolt:masterfrom
haspr-dev:feat/browser-auth
Closed

FelixJacobi wants to merge 7 commits into
passbolt:masterfrom
haspr-dev:feat/browser-auth

Conversation

@FelixJacobi

@FelixJacobi FelixJacobi commented Nov 10, 2026 •

Copy link
Copy Markdown

This pull request is a (multiple allowed):

  • bug fix
  • change of existing behavior
  • new feature

Checklist

  • User stories are present (given, when, then format)
  • Unit tests are passing
  • Selenium tests are passing
  • Check style is not triggering new error or warning

What you did

This PR adds support for browser-authorized CLI authentication in the Passbolt browser extension via Native Messaging (com.passbolt.cli).

User Story

  • Given a user running a Passbolt CLI command requiring authentication (--agent-auth=browser),
  • When the CLI notifies the extension via Native Messaging,
  • Then the extension automatically opens the "Authorize CLI Access" window, prompts to unlock if needed, and upon approval encrypts the private key using an ephemeral ECDH P-256 sealed envelope and returns it directly into the CLI agent process memory.

Changes

  • Add native messaging bridge listener in background script / service worker (com.passbolt.cli).
  • Add browser-auth.html dialog conforming to Passbolt design system (ext_authentication.min.css, red approve button, dialog layout) with inline passphrase unlock fallback.
  • Support automatic popup creation when requested by local CLI, and auto-close upon approval.
  • Clean cancellation propagation when the dialog is dismissed or rejected.
  • Ephemeral ECDH P-256 sealed envelope encryption in BrowserAuthCryptoService to securely deliver the private key directly into the CLI agent's memory.
  • Cross-browser compatibility for Firefox (MV2) and Chromium / Chrome (MV3 service worker).
  • Add unit tests for BrowserAuthCryptoService (100% passing).
  • ESLint and code style checks clean with zero errors or warnings.

Verification

  • Unit Tests: Full Jest test suite executed across the codebase (677 test suites passing, 4,983 tests passing).
  • Selenium / E2E Validation: Validated with the official passbolt_selenium WebdriverIO suite against a live Passbolt CE server instance, verifying browser extension loading, full in-browser GPG account recovery, and UI operations without regressions.

@CLAassistant

CLAassistant commented Nov 10, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

FelixJacobi and others added 5 commits November 10, 2026 17:15
- Replace Safari app icons and extension icon assets with pbolt brand
- Sanitize README.md: remove teaser screenshots and update links
- Update browser manifests (Firefox, Chrome, Chrome-MV3, Safari)
- Update package.json and English locale messages
- Add explicit Passbolt SA trademark disclaimer
feat(branding): replace Passbolt CI and assets with pbolt identity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants