-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clipboard: Add option to block proxying of passwords #1894
base: main
Are you sure you want to change the base?
Conversation
Since some password managers set a clipboard mimetype to signal when the clipboard contains password data, ignore the clipboard contents in those cases, to avoid exposing passwords over the link to the mobile device. Fixes: GSConnect#1893
As I wrote in the linked issue, I feel copying passwords is a valid use case and IMO it shouldn't be blocked by default. |
So, this becomes tricky because of the separation between our backend clipboard watcher (the component responsible for watching and updating the local desktop clipboard), and our clipboard plugin that runs for each connected device, interfacing between the backend and its paired device's network connection. The way GSConnect's preferences work, with only one or two exceptions settings apply to plugins, and for the most part are per-device. Which means the decision about whether to send any given clipboard string to a paired device is made by the plugin based on its current settings. But in our current architecture, the only thing the plugin ever sees from the backend is a piece of string data — it has no way of knowing if that string represents a password. The mimetype data we're looking at to detect passwords on the clipboard is only accessible from the backend. So, I think I'm going to have to go a route similar to what KDE did in their own Linux implementation: Have the backend assign a "content type" to each clipboard string it captures, indicating whether it's a password, a (presumed) non-password string, or... well, at least for now, those are the only two choices. Whenever the plugin gets notified that the backend's |
Since some password managers set a clipboard mimetype to signal when the clipboard contains password data, ignore the clipboard contents in those cases, to avoid exposing passwords over the link to the mobile device.
Fixes: #1893
TODO