Commit Graph
117 Commits
Author SHA1 Message Date
Kenneth Skovhede 6ab27cb870 Merge remote-tracking branch 'origin/master' into feature/backend-async-get 2024-10-03 13:22:36 +02:00
Kenneth SkovhedeandGitHub df8f0cb30d Merge pull request #5561 from duplicati/feature/add-health-checks
Added healt checks to server.
2024-10-02 14:57:47 +02:00
Kenneth Skovhede 586c08522e Implemented async method for Test, CreateFolder and Quota in all backends.
Still missing the List and DNSHostnames.
The AsyncRequest class is also preventing many backends from fully upgrading.
2024-10-01 09:30:02 +02:00
Kenneth Skovhede f49359eaf3 Removed use of Environment.OSVersion which is now deprecated.
Fallback to getting Windows version with `cmd /v ver`, which should be supported way back to DOS v6.
2024-09-18 16:02:01 +02:00
Kenneth Skovhede e3579312e2 Added healt checks to server.
Added health command to server-util.
This fixes #5560
2024-09-17 14:01:08 +02:00
Kenneth Skovhede cc044673b5 Improve Swagger setup
Re-added controllers to be able to control swagger casing on JSON.
Changed to a single debug variable to reduce use of  `#if DEBUG`
2024-09-09 12:50:18 +02:00
Kenneth SkovhedeandGitHub 864b6bf66e Merge branch 'master' into feature/migrationtohttpclient 2024-09-06 13:32:30 +02:00
Kenneth Skovhede 7e77217171 Fix Swagger exposed API.
Changed order or Json serializers to fix the parsing issue for enums.
Removed support code for controllers as we are only using minimal API.
2024-09-06 10:50:06 +02:00
Marcelo Ceccon c7c46aed7d Replacing deprecated WebClient for HttpClient
This is a proposal for replacing the deprecated WebClient with the HttpClient.

This commit implements the core functionality following the HttpClientFactory pattern as suggested by the framework. It also supports an alternative approach in areas where the HttpClient pattern is not desirable.

The first backend component to be migrated is WebDav, and the HttpClient pattern is also applied to the update downloader.

Once merged, other backend components can be migrated, eventually removing the deprecated WebClient from the codebase.

Additionally, the debug-profind-file option from webdav, which was a remnant from early development, is removed as it is no longer useful for debugging different webdav server responses.
2024-09-06 10:46:46 +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 8b91b7d09e Handling an UnauthorizedAccessException as 401 2024-09-03 09:17:26 +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 8f8aad1153 Merge remote-tracking branch 'origin/master' into feature/support-preload-configurations 2024-08-29 11:25:50 +02:00
Kenneth Skovhede 4989b5aa84 Merge branch 'feature/support-preload-configurations' of github.com:duplicati/duplicati into feature/support-preload-configurations 2024-08-29 11:24:38 +02:00
Kenneth Skovhede f618aa830a Prevent the settings hash from being exposed as it has no value outside the settings update check. 2024-08-29 11:23:31 +02:00
Kenneth Skovhede be9464f252 Added encrypted fields to guarded input.
This prevents the API from setting the field, which would cause restarts to re-write the settings, but does not affect the encrypted/decrypted state.
2024-08-29 11:20:56 +02:00
Kenneth Skovhede 653868f553 Removed unused using directives 2024-08-28 15:10:43 +02:00
Kenneth SkovhedeandGitHub 2674fd0b19 Merge pull request #5483 from duplicati/feature/add-server-util
Add server comandline utility
2024-08-27 18:26:14 +02:00
Kenneth Skovhede 6a9d37ad9e Fixed responding to stop signals.
This fixes #5478
2024-08-27 11:33:52 +02:00
Kenneth Skovhede d1008bc7a2 Fix the Duplicati.Library.RestAPI path.
It was previously located in the root, but placed correctly in the solution file.
2024-08-27 08:30:26 +02:00
Kenneth Skovhede 735b4020eb Implemented duplicati-server-util for sending various commands to a running server.
This tool replaces `ConfigurationImporter` and partially replaces `duplicati_client`.
This fixes #5474
2024-08-26 20:00:13 +02:00
Kenneth Skovhede 8810e90af1 Clarified variables and headers, as it is not returning HTML 2024-08-26 18:00:18 +02:00
Kenneth SkovhedeandGitHub 9d6232e1dd Merge pull request #5472 from marceloduplicati/feature/settingsencryption5420
Feature/settingsencryption5420
2024-08-26 14:15:35 +02:00
Kenneth SkovhedeandGitHub 5bbc66665d Merge pull request #5471 from duplicati/feature/custom-hostname-validation
Add custom hostname validation
2024-08-21 08:40:33 +02:00
Kenneth Skovhede ae6d5112f8 Reworked encryption of fields to only affect code inside Connection.cs 2024-08-20 17:08:55 +02:00
Kenneth Skovhede c687b93738 Added additional name to list of always allowed 2024-08-20 11:44:31 +02:00
Marcelo Ceccon 67a7df45c8 Implementation of settings field encryption
With this change, TargetURL (where credentials of storage destinations were stored in plaintext), the backups passphrases as well as JWT tokens are not stored encrypted.

The encryption key is derived from the system's motherboard serial number, or can be set manually via environment variable.
2024-08-19 13:51:14 -03: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 e832c1d2af Add Swagger UI and metadata
This PR adds swagger UI and swagger metadata for API exploration and integration.
2024-08-19 09:59:08 +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 SkovhedeandGitHub 8922729896 Merge pull request #5450 from duplicati/feature/add-log-out
Add a log out button
2024-08-14 21:21:45 +02:00
Kenneth Skovhede 9d95993c73 Add a log out button
This PR re-enables the logut button, and fixes the logout call to actually revoke the token in the database.
This fixes #5445
2024-08-14 16:59:03 +02:00
Kenneth Skovhede aa352a9a45 Prevent multiple watchers.
Setting content and web root explicitly should reduce the number of watchers being installed, if they occur.
Removed the use of appsettings.json config sources as they are unused and install watchers.
This may fix issue #5418
2024-08-14 16:33:44 +02:00
Kenneth SkovhedeandGitHub 3d3cd2ffde Merge pull request #5442 from duplicati/feature/cleanup-server-status-interface
Feature/cleanup server status interface
2024-08-14 09:09:29 +02:00
Kenneth SkovhedeandGitHub bfd9c86a6e Merge pull request #5441 from duplicati/feature/fix-missing-queue-state
This adds back the missing `ProposedSchedule` to the server state.
2024-08-13 23:08:54 +02:00
Kenneth SkovhedeandGitHub 3dd20cc007 Merge pull request #5439 from duplicati/feature/report-correct-port-on-startup
In some cases the port reported in the logs was not the correct port.
2024-08-13 23:07:35 +02:00
Kenneth Skovhede f7a804aec7 Removed unused files and methods 2024-08-13 22:37:36 +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 cba9829f2c In some cases the port reported in the logs was not the correct port.
This fixes #5397
2024-08-13 17:59:02 +02:00
Kenneth Skovhede cfc11b904a Added DTO for emitting log data.
This fixes #5435
2024-08-13 17:16:55 +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 da7240d31a bug(5359): swallow WebSocketException exception when client aborted 2024-08-01 17:14:03 +02:00
dependabot[bot]andGitHub 0f44a46c47 Bump SixLabors.ImageSharp
Bumps the nuget group with 1 update in the /Duplicati/WebserverCore directory: [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp).


Updates `SixLabors.ImageSharp` from 3.1.4 to 3.1.5
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v3.1.4...v3.1.5)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
  dependency-group: nuget
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 17:55:14 +00:00
Kenneth Skovhede d8f3e110c5 Added missing language filter support in Kestrel server 2024-07-19 13:36:17 +02:00
Kenneth Skovhede 1de113bd2f Merge remote-tracking branch 'origin/master' into feature/remove-httpserver 2024-07-18 11:00:52 +02:00