Commit Graph
45 Commits
Author SHA1 Message Date
Kenneth Skovhede fac12ba772 Further consolidated the data folder.
Added support for `--portable-mode` and `--server-datafolder` for the CLI, ServerUtil, and Agent.

Fixed a few places where file reads were not cached properly.

Moved some responsibilities of UpdaterManager into DataFolderManager.

This now supports storing `machineid.txt` and `installation.txt` inside the path pointed to by `--server-datafolder` or alternatively with `--portable-mode`.

It is possible that some fringe backwards compatibility is lost with this update.

Fixed an issue with AutoUpdater crashing on check/download.

This fixes #5902
2025-01-28 13:01:35 +01:00
Kenneth SkovhedeandGitHub 6bbd64a655 Fixed nullability warnings in Utility.cs (#5861)
* Fixed nullability warnings in `Utility.cs`

* Fixed a number of nullability issues and warnings

* More nullable fixes

* Fixed the overwrite issue

* Fixed additional nullability issues

* Removed additional nullability issues

* More nullability fixes and added some xmldoc

* Added more xmldocs and removed an unused argument

* Removed more warnings
2025-01-14 14:03:48 +01:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth SkovhedeandGitHub 7f40ec46db Removed the captcha. (#5816)
This commit removes the Captcha support, and replaces with a copy-paste-able safeguard in the UI.
2024-12-28 20:03:52 +01:00
Kenneth SkovhedeandGitHub ff1b2b7990 Simplified task control (#5753)
* Simplified task control by having all logic in a single class and using async control mechanism
* Fixed the tests
* Made the marking of a backup partial explicitly communicated if the enumeration process is stopped.
* Added support for pausing active transfers
* Introduced transfer token to abort operations.
* Updated the way LiveControl is emitting events.
* Retains the paused state of the server across reboots, this fixes #5760.
* Reworked the way throttle speeds are propagated through LiveControls.
* Added option to pause transfers in the UI.
* Removed throttle settings from the LiveControls class so it is exclusively handled by the ApplicationSettings.
* Removed `thread-priority` as it does not work at all when tasks are used.
* Fixed the stop dialog and API to only support stop and abort.
* Removed unused variables
2024-12-18 08:27:59 +01:00
Kenneth Skovhede 42c4e50482 Fixed issues with update detection.
This fixes a case where the update checker keeps an old reference to the previous updated version, despite running a newer version.

It also removes some use of `Assembly.GetExecutingAssembly().GetName().Version` with the information from `UpdaterManager.SelfVersion.Version` as that should follow the update info.

This fixes #5698
This fixes #5252
2024-11-25 17:27:50 +01:00
Kenneth Skovhede 0a5baa127c Merge remote-tracking branch 'origin/master' into feature/fix-dst-changing-scheduled-time 2024-11-25 13:05:28 +01:00
Kenneth Skovhede 1b07fadd88 Moved systemInfo into a service with cache so it can preload 2024-11-08 10:07:03 +01:00
Kenneth SkovhedeandGitHub b0a34387f6 Merge pull request #5598 from duplicati/feature/add-secret-provider
Feature/add secret provider
2024-11-06 11:50:58 +01:00
Kenneth Skovhede d8ed4ebd8b Fixed using the interface instead of impl 2024-11-05 22:34:34 +01:00
Kenneth Skovhede aed53525de Connect automatically after register 2024-11-05 22:29:04 +01:00
Kenneth Skovhede c99e819d70 Merge remote-tracking branch 'origin/master' into feature/add-secret-provider 2024-11-01 08:49:52 +01:00
Kenneth Skovhede 4783050d53 Simplified logic by having an option to disable https.
Simplified checks for https by having a single property that unifies the logic.
2024-10-29 11:15:06 +01:00
Kenneth Skovhede 4b84135622 Merge remote-tracking branch 'origin/master' into feature/add-secret-provider 2024-10-24 16:11:41 +02:00
Kenneth Skovhede 34d13a20e2 Initial version of the external secret provider 2024-10-24 16:06:59 +02:00
Kenneth Skovhede 9db3cce5e2 Added support for remote control with pre-signed url 2024-10-16 16:28:13 +02:00
Kenneth Skovhede ab6dbf9ca9 Fixed JWT validation from remote 2024-09-28 16:43:39 +02:00
Kenneth Skovhede 227b8d6dca Added feature to keep the remote control setting, and reconnect on startup.
Updated message types to fit the procotol.
2024-09-27 16:14:40 +02:00
Kenneth Skovhede 3bafe74c0a More work on getting the protocol fixed 2024-09-23 23:18:36 +02:00
Kenneth Skovhede 68c57bc64f Added certificate url for obtaining new certificates 2024-09-23 11:45:12 +02:00
Kenneth Skovhede 42fa5078e4 Fixed merging certificates when new certificates arrive 2024-09-20 16:58:05 +02:00
Kenneth Skovhede 550397cd70 Switched to using a single common certificate implementation 2024-09-20 09:42:21 +02:00
Kenneth Skovhede eae1988d0b Improved the flow so the claim will be detected even if the browser closes after the claim link is opened. 2024-09-19 14:51:39 +02:00
Kenneth Skovhede 5c0d297687 Implemented support for enabling remote control via settings 2024-09-19 14:33:17 +02:00
Kenneth Skovhede 669e90704d Initial work on supporting a secure remote control connection. 2024-09-18 11:07:59 +02:00
Kenneth Skovhede aee07c54e6 Change to using the custom webexception for unauthorized to avoid reporting on system exceptions 2024-09-03 09:26:39 +02:00
Kenneth Skovhede f962bfc89b Added constraint on the issue timestamp to limit the window where
token drift is considered acceptable
2024-09-02 11:40:26 +02:00
Kenneth Skovhede bc9ed71ff8 Added support for drifts in JWT refresh tokens. This can happen if the user refreshes the browser during the login. 2024-08-31 11:22:10 +02:00
Kenneth Skovhede c687b93738 Added additional name to list of always allowed 2024-08-20 11:44:31 +02:00
Kenneth Skovhede 2b55b3449d Add custom hostname validation
This adds a manually implemented hostname check that is applied as an endpoint filter.
With the implemented filter, the validation rules are similar to those before Kestrel was introduced.
This fixes #5469
2024-08-19 14:07:48 +02:00
Kenneth Skovhede 2b61e30add Clean up usings 2024-08-15 14:51:03 +02:00
Kenneth Skovhede 28c53ab9f6 Fixed error message reading update version.
This fixes #5434
2024-08-15 14:50:31 +02:00
Kenneth Skovhede cf757c5efb Merge remote-tracking branch 'origin/master' into feature/add-option-to-disable-captcha 2024-08-14 21:32:00 +02:00
Kenneth Skovhede e980d7daee This adds back the missing ProposedSchedule to the server state.
This handles the missing information part in #5436
2024-08-13 22:24:15 +02:00
Kenneth Skovhede 5c8af042e9 Merge remote-tracking branch 'origin/master' into feature/add-option-to-disable-captcha 2024-08-13 13:56:26 +02:00
Kenneth Skovhede 9ecb3a0f17 Added option to disable visual captcha from commandline.
This fixes #5098
2024-08-13 13:50:21 +02:00
Kenneth Skovhede 87e01e97d2 Added additional possible fonts for Captcha.
This fixes #5363
2024-08-13 12:41:57 +02:00
natan 27ce549e75 cleanup WebsocketAccessor.cs and StatusService.cs a bit.
Remove /serverstate endpoint
2024-07-12 17:59:21 +02:00
Kenneth Skovhede 6917030417 Treat all auth operation failures as Unauthorized - 401 2024-07-07 10:36:42 +02:00
Kenneth Skovhede 3f29642f6c Implemented JWT tokens.
Added auth requirement on all endpoints.
Added SignIn-, Access- and Refresh-Tokens based on JWT.
Upgraded stored password to be based on PBKDF2.
Added default password assignment.
Updated logic to support auth-header and re-sign-in for tray-icon and web-ui.
2024-06-19 13:54:10 +02:00
Kenneth Skovhede 9f79025744 Removed HttpServer.
Re-implemented everything using ASP.NET.
Changed some requests to use JSON instead of FORM data.
Some work towards deleting the FIXMEGlobal instance.
Auth is missing, XSRF does not work correctly.
2024-06-07 15:56:43 +02:00
natan 6e16e1d9ed fix multiple WS messages bug 2024-04-25 17:06:10 +02:00
natan 0fefb316eb Selenium Tests 2024-04-22 10:15:56 +02:00
natan d78b9f2c63 WIP 2024-04-03 10:40:29 +02:00
natan 5d53eddb32 WIP 2024-03-26 18:32:56 +01:00