-
Notifications
You must be signed in to change notification settings - Fork 42
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
Gracefully fail when sd-viewer does not support a file format #2007
Comments
Generally agreed, the client should be aware of the supported file formats, and only even give the option to open or print if that is supported for the respective file type. |
It seems to me that he problem described here is conceptually related to the one described in #918, namely, that the GUI allows to request printing files that it makes little sense to print (e.g. compressed archives). With that in mind, I think I'd be inclined to suggest addressing the primary issue in the SecureDrop Client. The second aspect, while related, seems like a distinct problem to me, that we could track along "Allowing files to be exported to a different VM" #1349.
|
To clarify: I think @philmcmahon is right in that the Workstation will never support viewing all the formats. And I think that from there we should make sure that:
Edited to add for cross-referencing purposes that freedomofpress/securedrop-workstation#842 is relevant to the first item. |
In the course of freedomofpress/securedrop-workstation#1138, I think this can be accomplished by:
|
Wondering if there's a 4th/5th option here, piggybacking off of @philmcmahon's idea to instead offer a VM for inspection/interrogation/metadata analysis. If sd-viewer is a non-networked disposable, couldn't it conceivably open any file even if not defined in the current mimeapps.list? Unless sd-viewer eventually opens files in dangerzone by default, meaning sd-viewer formats are limited to what dangerzone can sanitize, shouldn't sd-viewer handle any file format and offer tools like Alternatively, there could be a mimeapps list for an sd-dangerzone (supported file formats), sd-viewer (everything else), and/or sd-inspect. |
The securedrop workstation viewer does not support all file formats - and realistically probably never will.
In a situation where sd-viewer cannot open a file, it would be helpful to make clear to the user what the problem is. In our experience we have noticed two behaviours:
In all of these cases it would be helpful to explain that the format is not supported to the user.
Longer term, it might be useful to be able to interrogate the file in a sandboxed VM. Typically in my organisation we might try run ExifTool or
less
on a suspicious looking file to get some idea of what it is. It's probably safer doing this within a qubes VM rather than exported to a different machine.The text was updated successfully, but these errors were encountered: