Skip to content
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

Test for expected app state if settings can not be parsed #5565

Conversation

MarkusPettersson98
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 commented Dec 7, 2023

Verify that the app enables "Always require VPN" by default if the settings cannot be parsed.

These changes/additions aims to guard against regressions to this behavior. This behavior was introduced in the 2022.1 desktop release: https://github.com/mullvad/mullvadvpn-app/blob/main/CHANGELOG.md#security-7


This change is Reviewable

Copy link

linear bot commented Dec 7, 2023

Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @MarkusPettersson98)


mullvad-daemon/src/settings/mod.rs line 518 at r1 (raw file):

        .await;

        assert!(

Should we assert that block_when_disconnected == false here?

@MarkusPettersson98 MarkusPettersson98 force-pushed the do-not-leak-traffic-if-settings-can-not-be-parsed-during-app-des-463 branch 2 times, most recently from 79ee159 to 156ca8f Compare December 12, 2023 09:59
Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 6 of 6 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Separate concerns of `SettingsPersister`'s error recovery and the
deserialization of `Settings` from file.
@MarkusPettersson98 MarkusPettersson98 force-pushed the do-not-leak-traffic-if-settings-can-not-be-parsed-during-app-des-463 branch from 156ca8f to 37bf990 Compare December 12, 2023 17:48
@MarkusPettersson98 MarkusPettersson98 merged commit 2182825 into main Dec 12, 2023
30 checks passed
@MarkusPettersson98 MarkusPettersson98 deleted the do-not-leak-traffic-if-settings-can-not-be-parsed-during-app-des-463 branch December 12, 2023 18:34
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.

2 participants