Repository navigation
feat(privacy): ignore password manager clipboard entries (part of #74) - #87
Open
MartinVanVan wants to merge 2 commits into
Open
MartinVanVan wants to merge 2 commits into
MartinVanVan wants to merge 2 commits into
Conversation
MartinVanVan
force-pushed
the
feat/ignore-concealed-copies
branch
from
November 4, 2026 21:35
b434d12 to
a410029
Compare
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
force-pushed
the
feat/ignore-concealed-copies
branch
from
November 4, 2026 21:39
a410029 to
e081555
Compare
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:org.nspasteboard.TransientType,org.nspasteboard.ConcealedType,org.nspasteboard.AutoGeneratedTypeorcom.agilebits.onepassword(nspasteboard.org convention). Used by e.g. the Bitwarden, 1Password and KeePassXC desktop apps.com.apple.Passwords) or Keychain Access is frontmost. Apple Passwords adds no marker at all.org.chromium.source-url. Copies whose source ischrome-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 … testgives 26 tests, 0 failures. There are two new tests:testConcealedPasteboardTypesAreIgnoredtestPasswordManagerAppsAndExtensionsAreIgnoredManually tested on macOS 27 (Apple Silicon) with a local Debug build:
chrome-extension://source)ConcealedTypecopy with the toggle offExpected to work, but not tested (no setup available):
org.chromium.source-urlmechanism and the same Chrome Web Store extension IDs as Brave.Known gaps (not covered by this PR):
chrome://password-manager): it isn't an extension.Help testing other browsers or password managers is very welcome.