Commit graph

48 commits

Author SHA1 Message Date
Alex Pyrgiotis
e3a8a651f1
Disable HWP / HWPX conversion on MacOS M1 / Qubes
The HWP / HWPX conversion feature does not work on the following
platforms:

* MacOS with Apple Silicon CPU
* Native Qubes OS

For this reason, we need to:

1. Disable it on the GUI side, by not allowing the user to select these
   files.
2. Throw an error on the isolation provider side, in case the user
   directly attempts to convert the file (either through CLI or via
   "Open With").

Refs #494
Refs #498
2023-08-05 16:50:49 +01:00
Alex Pyrgiotis
4828299c99
Update changelog 2023-08-02 13:43:04 +03:00
deeplow
e2718c6f64
Update changelog with HWP support 2023-08-01 14:37:15 +01:00
Alex Pyrgiotis
9410b68c1d
Sanitize progress reports in a provider-agnostic way
Update the common `print_progress()` method in the base
`IsolationProvider` class, with two extra features:

1. Always sanitize the provided text argument.
2. Mark the sanitized text argument as untrusted.

This is default behavior from now on, since this function is commonly
used to parse progress reports from the conversion sandbox.
2023-08-01 14:43:48 +03:00
Alex Pyrgiotis
c541227dd3
Drop Ubuntu 22.10 (Kinetic Kudu) support
Drop support for Ubuntu 22.10 (Kinetic Kudu), because it's past its EOL
date [1].

Closes #485

[1]: https://endoflife.date/ubuntu
2023-07-28 10:40:04 +03:00
Alex Pyrgiotis
26cf3db4b4
Install Qt6 in CI runners and dev environments
Upgrade from Qt5 to Qt6 in our CI runners and dev environments, since
the latest PySide6 versions do not support Qt5. This leaves only our
Debian / Fedora packages relying on Qt5, since there's no PySide6
package for them yet.

There are some caveats to the Qt6 upgrade:

1. Debian Bullseye has a missing dependency to `libgl1`, so we need to
   install it separately.
2. Ubuntu Jammy has a missing dependency to `libxkbcommon-x11-0`, which
   we have to install separately.
3. Ubuntu Focal does not have Qt6, but surprisingly PySide6 works with
   Qt5.
4. All Debian-based distros require `libxcb-cursor0`.

As a side effect, we have to make our `env.py` a bit more complicated,
to cater to these exceptions.

Refs #482
2023-07-25 14:53:17 +03:00
Alex Pyrgiotis
5b17f75047
Inform the user for new updates
Add a hamburger button in the main window of Dangerzone, that will be
the entry point for update information. Whenever a new update is
released, users will see a green notification bubble. If an update error
happens, they will see a red notification bubble.

In the hamburger menu, users have the option to enable or disable update
checks. Depending on the update check status, users will see in a pop-up
dialog more info about the new update or the error.

Closes #189
2023-07-24 16:49:25 +03:00
deeplow
e989069712
Add ubuntu 23.04 (lunar) support
The Ubuntu 23.04 docker image includes a user by default (ubuntu) which
overtakes the 1000 uid and so our user becomes 1001 which makes the user
directory unwritable. The solution as suggested in [1] was to remove
that user.

[1]: https://bugs.launchpad.net/cloud-images/+bug/2005129

Fixes #452
2023-06-28 11:07:59 +01:00
deeplow
e773add68e
Adds support for Debian Trixie (13)
Fixes #452
2023-06-28 11:05:47 +01:00
Alex Pyrgiotis
20b24a6c71
Add development instructions for Qubes integration
Add instructions aimed at developers who want to try out Qubes
integration.

Fixes #411
2023-06-21 15:06:22 +03:00
deeplow
8059c8e1f1
Deprecate Fedora 36 support
Fixes #420
2023-05-23 09:22:59 +01:00
Alex Pyrgiotis
75be9b5c00
ci: Add security scanning
Add two GitHub Actions workflows, that perform the following checks:

* Security scan the Python dependencies of the Dangerzone application
  (`poetry.lock`), for the current/main branch.
* Build and security scan the Dangerzone container image for the
  current/main branch.
* Security scan the Python dependencies of the Dangerzone application
  (`poetry.lock`), for the latest release of Dangerzone (currently
  v0.4.1).
* Download and security scan the Dangerzone container image for the
  latest release of Dangerzone (currently v0.4.1).

The first two checks will run on branch pushes, PRs, and nightly. The
last two checks will run only nightly, since the code in the current
branch cannot affect already released artifacts.

Also, besides the security scans, these workflows will also update the
Security alerts in the GitHub page for the Dangerzone project, and print
the SARIF report to the stdout, for debugging purposes.

Closes #222
2023-05-17 20:29:13 +03:00
Alex Pyrgiotis
558b4bffea
Update changelog for Fedora 38 2023-05-16 16:20:32 +03:00
Erik Moeller
cdd0d3a647
Minor changelog tweaks 2023-04-18 13:19:26 -07:00
Alex Pyrgiotis
70a2e710d6
Bump version to 0.4.1
This release brings a split in the MacOS binaries, since we now have
separate ones for Intel and Apple Silicon architectures, so we must
reflect this in the README as well.
2023-04-18 23:01:00 +03:00
Alex Pyrgiotis
d6ffa0ea2e
CHANGELOG: Point to the correct issue 2023-04-18 23:01:00 +03:00
Alex Pyrgiotis
e36213c0c8
CHANGELOG: add entry about change in release keys 2023-04-18 23:01:00 +03:00
Alex Pyrgiotis
bb5a709250
CHANGELOG: fix issue number 2023-04-18 23:01:00 +03:00
Alex Pyrgiotis
a1c87a207a
container: Allow converting more document formats
Remove the association between MIME types and export filters, because
LibreOffice is able to auto-detect them on its own. Instead, ask
LibreOffice to simply convert the document to a .pdf.

This association was cumbersome for yet another reason; there are MIME
types that may be associated with more than one file type. That's why
it's better to let LibreOffice decide the proper filter for the
conversion.

Our current understanding is that this change won't widen our attack
surface for the following reasons:

* The output filters for PDF documents are pretty specific, and we don't
  affect the input filters somehow.
* The default behavior of LibreOffice on Alpine Linux is to disable
  macros.

Closes #369
2023-03-28 14:46:47 +03:00
Alex Pyrgiotis
8a7d52b471
Update Changelog for 0.4.1 2023-03-27 12:32:36 +03:00
deeplow
eb38c39557
Changelog: add exit confirmation feature 2022-12-01 15:24:19 +00:00
Alex Pyrgiotis
1ad6b59bb1
Support Ubuntu 22.10 "Kinetic Kudu"
Add support for the newly released Ubuntu 22.10 "Kinetic Kudu".

Closes #265
2022-12-01 01:05:00 +02:00
deeplow
cb75cfd958
Update changelog with 'open with' functionality 2022-11-30 12:51:02 +00:00
deeplow
af5f7c70d3
Quit dangerzone on macOS when window is closed
Closing windows on macOS would not actually close Dangerzone. Now that
it is a single-window program, it makes sense for it to close
immediately.

Fixes #271
2022-11-29 16:01:27 +00:00
deeplow
d582e25606
Changelog: update for 0.4.0 release 2022-11-25 08:27:37 +00:00
deeplow
2aa329d524
Changelog: add multi-document support
Fixes #77
2022-11-21 12:39:21 +00:00
deeplow
0b738ba490
Do not create outfile files when checking if writeable
Checking if files were writeable created files in the process. In the
case where someone adds a list of N files to dangerzone but exits before
converting, they would be left with N 0-byte files for the -safe
version. Now they don't.

Fixes #214
2022-11-14 09:04:54 +00:00
deeplow
1bdbb1959c
Changelog: add cli multi-doc support 2022-11-14 09:04:19 +00:00
Alex Pyrgiotis
1147698287
Update changelog wrt Ubuntu Focal
Signed-off-by: Alex Pyrgiotis <alex.p@freedom.press>
2022-11-10 16:35:48 +02:00
Alex Pyrgiotis
1ea015bb68
Bump changelog 2022-11-07 12:03:24 +02:00
deeplow
20679c3159
Add missing entry in 0.3.2 changelog
The issue https://github.com/freedomofpress/dangerzone/pull/197 ended up being added in the release but had not been updated in the changelog.
2022-09-07 05:46:48 -04:00
deeplow
eabf7a9c18
bump version (0.3.2) & append to CHANGELOG.md 2022-08-25 09:23:40 +01:00
Micah Lee
17e1121e57
Version bump to 0.3.1 and update changelog 2021-12-14 10:27:41 -08:00
Micah Lee
57f7ed26f8
Typo in release docs, and add to changelog 2021-11-30 15:04:15 -08:00
Micah Lee
317f2a03b5
Version bump to 0.3 2021-11-24 10:27:13 -08:00
Micah Lee
d56c21143f
Version bump to 0.2.1 and update changelog and circleci config 2021-06-22 11:23:29 -07:00
Micah Lee
a437906d1d
Version bump to 0.2, update changelog, and fix all linux builds 2021-06-16 11:16:38 -07:00
Micah Lee
ca08fab0ab
Comment out packagecloud deploy for Ubuntu 19.10 and Fedora 33 because packagecloud.io does not yet support them 2021-01-04 15:51:23 -08:00
Micah Lee
af19df70fd
Remove ubuntu eoan, add fedora 33 2021-01-04 15:43:43 -08:00
Micah Lee
4450146028
Version bump to 0.1.5 and update changelog 2021-01-04 15:31:12 -08:00
Micah Lee
5bb44efaaa
Remove Ubuntu 20.10 and Fedora 33 from changelog until we can host packages for them 2020-10-30 09:50:27 -07:00
Micah Lee
76c74df71a
Fix CircleCI and test in Fedora 2020-10-29 17:01:47 -07:00
Micah Lee
04044a4a33
Update changelog 2020-10-28 16:54:09 -07:00
Micah Lee
9c0f61488a
Update changelog and version bump, and update CircleCI to support Ubuntu 20.10 and Fedora 32 2020-10-26 14:07:14 -07:00
Micah Lee
753134dc3f
Version bump to 0.1.3 and update changelog 2020-09-25 13:43:22 -07:00
Micah Lee
e798da9a99
Version bump to 0.1.2 and update changelog 2020-04-09 16:23:15 -07:00
Micah Lee
4eba0087e7
Version bump to 0.1.1.dev1 2020-03-16 17:07:43 -07:00
Micah Lee
271ac9641b
Version bump to 0.1 2020-02-28 17:38:49 -08:00