Skip to content

feat(privacy): ignore password manager clipboard entries (part of #74) - #87

Open
MartinVanVan wants to merge 2 commits into
samirpatil2000:mainfrom
MartinVanVan:feat/ignore-concealed-copies
Open

MartinVanVan wants to merge 2 commits into
samirpatil2000:mainfrom
MartinVanVan:feat/ignore-concealed-copies

Conversation

@MartinVanVan

@MartinVanVan MartinVanVan commented Nov 4, 2026 •

Copy link
Copy Markdown

Summary

Buffer currently records everything copied to the clipboard, including passwords from password managers, and writes it in plain text to ~/Library/Application Support/Buffer/history.json. This PR implements the concealed / password manager part of #74: those copies are skipped and never reach history.

The user-editable app exclusion list from #74 is intentionally left for a follow-up PR to keep this one small.

What is skipped

All checks live in ClipboardWatcher.shouldIgnore(...) (a pure static function, unit-tested) and run before any capture:

  1. Pasteboard markers: entries carrying org.nspasteboard.TransientType, org.nspasteboard.ConcealedType, org.nspasteboard.AutoGeneratedType or com.agilebits.onepassword (nspasteboard.org convention). Used by e.g. the Bitwarden, 1Password and KeePassXC desktop apps.
  2. Password apps without markers: copies made while Apple Passwords (com.apple.Passwords) or Keychain Access is frontmost. Apple Passwords adds no marker at all.
  3. Password manager browser extensions (Chromium): extensions can't add pasteboard markers, but Chromium records the copy's origin in org.chromium.source-url. Copies whose source is chrome-extension://<id>/… for a known password manager are skipped. IDs are the Chrome Web Store IDs, each verified against its store page: Bitwarden, 1Password, LastPass, Dashlane, Keeper, Proton Pass, RoboForm, KeePassXC-Browser, iCloud Passwords. Normal web page copies (https://…) and other extensions are unaffected.

Settings

New "Ignore Password Manager Copies" toggle under Settings → History Filtering, on by default (as proposed in #74). Turning it off restores the previous behaviour.

Testing

Unit tests: xcodebuild … test gives 26 tests, 0 failures. There are two new tests:

  • testConcealedPasteboardTypesAreIgnored
  • testPasswordManagerAppsAndExtensionsAreIgnored

Manually tested on macOS 27 (Apple Silicon) with a local Debug build:

Source Result
Bitwarden desktop app ✅ not recorded (ConcealedType marker)
Apple Passwords app ✅ not recorded (frontmost app)
Bitwarden extension in Brave ✅ not recorded (chrome-extension:// source)
Normal text from a web page in Brave ✅ still recorded
Normal text from other apps ✅ still recorded
Simulated ConcealedType copy with the toggle off ✅ recorded again

Expected to work, but not tested (no setup available):

  • Chrome, Arc, Vivaldi, Opera: same Chromium org.chromium.source-url mechanism and the same Chrome Web Store extension IDs as Brave.
  • The other listed extensions (1Password, LastPass, Dashlane, Keeper, Proton Pass, RoboForm, KeePassXC-Browser, iCloud Passwords): IDs verified on the Chrome Web Store, but copy behaviour not tested.
  • 1Password and KeePassXC desktop apps: documented to use the nspasteboard markers.

Known gaps (not covered by this PR):

  • Safari and Firefox extensions: these browsers don't record a copy's source, so extension copies can't be recognised.
  • Edge Add-ons store extensions: they use different IDs than the Chrome Web Store.
  • Chrome's built-in Google Password Manager (chrome://password-manager): it isn't an extension.
  • Copying from the Passwords menu-bar extra: another app is frontmost and no marker is set.

Help testing other browsers or password managers is very welcome.

@MartinVanVan
MartinVanVan force-pushed the feat/ignore-concealed-copies branch from b434d12 to a410029 Compare November 4, 2026 21:35
Skip clipboard changes that come from a password manager so they are
never written to history:

- Entries carrying the nspasteboard.org markers (TransientType,
  ConcealedType, AutoGeneratedType) or the 1Password marker, used by
  e.g. the Bitwarden, 1Password and KeePassXC desktop apps.
- Copies made while Apple Passwords or Keychain Access is frontmost,
  since these apps add no marker.
- Copies from password manager extensions in Chromium browsers
  (Chrome, Brave, Edge with Chrome Web Store extensions, Arc…),
  recognised by the org.chromium.source-url being
  chrome-extension://<known extension id>.

Controlled by a new "Ignore Password Manager Copies" setting under
History Filtering, enabled by default.

Part of samirpatil2000#74 (user-editable app exclusion list to follow separately).
@MartinVanVan
MartinVanVan force-pushed the feat/ignore-concealed-copies branch from a410029 to e081555 Compare November 4, 2026 21:39
Resolve SettingsView conflict with the redesigned settings screen:
the "Ignore Password Manager Copies" toggle now uses settingsRow and
sits next to the other history filters.
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.

1 participant