summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src/migrations/mod.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-10-21Add support for multihop entry filters in daemonKalle Lindström1-1/+2
In the upcoming re-design of select location, separate sets of filters can now be picked for the entry and the exit relays. This commit adds support for that in the relay selector. In order to not affect the current behavior of the desktop and Android apps before the new UI is implemented, the entry filters are set to the same as the exit filters when the relay settings are updated via gRPC.
2025-10-03Bump windows-sys version to latestDavid Lönnhager1-3/+4
This also refactors and documents some code
2025-09-30Add v11 settings migrationTobias Järvelöv1-0/+3
- Renames block_when_disconnected to lockdown_mode - Renames API access methods with non-unique names Co-authored-by: Joakim Hulthe <joakim.hulthe@mullvad.net>
2025-07-10Run `cargo fmt`Sebastian Holmin1-6/+5
2025-03-07Test that running migrations results in the most recent settings versionDavid Lönnhager1-1/+11
2025-03-07Add tunnel protocol migration to new v10Sebastian Holmin1-0/+3
2025-02-25Refactor unsafe slightly in mullvad_daemon::migrationsJoakim Hulthe1-12/+32
2024-05-29Migrate to gRPCDavid Göransson1-3/+26
Co-authored-by: Jonatan Rhodin <jonatan.rhodin@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net> Co-authored-by: David Lönnhager <david.l@mullvad.net>
2024-04-25Update windows-sysJoakim Hulthe1-3/+2
2024-02-28Migrate settings to v9Joakim Hulthe1-0/+2
- Change `selected_obfuscation` default to `auto`. - Migrate `selected_obfuscation` from `off` to `auto` for existing users.
2024-02-27Replace err_derive with thiserrorJoakim Hulthe1-30/+28
`err_derive` is unmaintained and will probably stop working with rust edition 2024. `thiserror` is almost a drop-in replacement. This commit simply replaces all occurences of `derive(err_derive::Error)` with `derive(thiserror::Error)` and fixes the attributes, but the Error and Display impls should be identical.
2024-02-05Test whether the default settings use the correct versionDavid Lönnhager1-15/+47
2024-01-05Run `cargo +nightly fmt`Sebastian Holmin1-2/+2
2024-01-03Allow app to use custom socks5 and shadwosocks proxiesJonathan1-0/+2
This PR has a couple of different purposes - Allow users to use socks5 local proxies with the CLI without having to be root nor use split-tunneling. This only works for OpenVPN. - Unify the types used by different proxy parts of the codebase, such as the Access Methods as well as some already existing OpenVPN proxy code. This PR changes the firewall on all desktop platforms as well as changes the routing table slightly on MacOS and Windows. On Linux the firewall code is modified to apply the appropriate firewall marks to all packages that go to a remote endpoint corresponding to the remote part of a local socks5 proxy. The firewall marks will allow the routing to be done without having to modify the routing table. On MacOS and Windows the routing table is modified to allow packages to go to that same endpoint to pass outside the VPN tunnel, it will additionally punch a hole in the firewall. The PR also migrates the settings file from version 7 to version 8 in order to properly and neatly unify Proxy related types. Finally it provides some slight extensions to the gRPC interface in order to allow for control over the custom proxy settings.
2024-01-02Fix clippy lintsDavid Lönnhager1-3/+3
2023-09-11Remove TODO about adding features we don't needDavid Lönnhager1-2/+0
2023-08-01Replace unmaintained dirs-next with maintained dirsLinus Färnstrand1-1/+1
Gets rid of one usage of winapi in our dependency tree
2023-04-26Fix remaining clippy warningsDavid Lönnhager1-3/+3
2023-04-21Apply clippy --fix fixesLinus Färnstrand1-1/+1
This commit does not contain everything that `cargo clippy --fix` changed on Windows. But the least controversial and simplest subset. The remaining fixes I felt could use some manual cleanup also.
2023-02-21Make quantum-resistant tunnel optional in mullvad layerDavid Lönnhager1-6/+5
2023-02-13Rename settings error variantsDavid Lönnhager1-6/+6
2023-02-10Relax permissions on settings.jsonDavid Lönnhager1-6/+1
2023-02-08Make async fns without awaits into regular fnsLinus Färnstrand1-1/+1
2022-09-01Replace winapi with windows-sys for all remaining cratesDavid Lönnhager1-13/+12
2022-06-21Fix the large majority of clippy warningsJonathan1-14/+14
This commit fixes most of the remaining clippy warnings in the codebase. These warnings were the more semantically difficult ones to fix. There are some warnings that remain from the rebase that will be fixed in the upcoming PR.
2022-04-26Spawn API client after settings migrationDavid Lönnhager1-20/+23
2022-04-05Add RPC that checks whether the app is performing "post-upgrade work", i.e. ↵David Lönnhager1-6/+39
fetching a device from the API
2022-03-24Add migration logic for WireGuard port constraintOdd Stranne1-1/+0
2022-03-23Move imports out of v5 moduleDavid Lönnhager1-1/+6
2022-03-23Remove non-vendored WireGuard data type in account history migration modDavid Lönnhager1-1/+1
2022-03-23Rename mullvad-rpc to mullvad-apiDavid Lönnhager1-1/+1
2022-03-15Restore device.json from Windows.old backupDavid Lönnhager1-2/+5
2022-03-14Migrate old settings to device cacheDavid Lönnhager1-2/+8
2022-02-18Log outcome of settings migrationDavid Lönnhager1-0/+3
2022-02-18Don't pointlessly write settings migration result to diskDavid Lönnhager1-0/+7
2022-02-18Ensure file buffer is flushed after migrating settingsDavid Lönnhager1-1/+8
2022-01-17Migration docsLinus Färnstrand1-3/+5
2022-01-17Add instructions in migrations/mod.rs about how to create a migrationLinus Färnstrand1-0/+11
2022-01-11Fix Android dependencies and importsLinus Färnstrand1-1/+1
2022-01-11Make settings migrations not depend on types that can changeLinus Färnstrand1-0/+21
2021-12-09Migrate multihop stateDavid Lönnhager1-0/+2
2021-11-29Reformat code without blank_lines_upper_bound = 2Linus Färnstrand1-1/+0
2021-10-26Add account history migration to migrations modDavid Lönnhager1-31/+13
2021-10-26Remove settings migration traitDavid Lönnhager1-18/+4
2021-10-26Migrate account history location in migration moduleDavid Lönnhager1-1/+22
2021-10-26Use async I/O for Windows migrationDavid Lönnhager1-7/+14
2021-10-26Refactor settings migrationDavid Lönnhager1-0/+295