Commit Graph
40 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 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 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
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 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 Skovhede ae6d5112f8 Reworked encryption of fields to only affect code inside Connection.cs 2024-08-20 17:08:55 +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 cf757c5efb Merge remote-tracking branch 'origin/master' into feature/add-option-to-disable-captcha 2024-08-14 21:32:00 +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 cfc11b904a Added DTO for emitting log data.
This fixes #5435
2024-08-13 17:16:55 +02:00
Kenneth Skovhede 9ecb3a0f17 Added option to disable visual captcha from commandline.
This fixes #5098
2024-08-13 13:50:21 +02:00
natan 92f1de07ae Bring back /serverstate endpoint. Fix unauhthorized mdodal when cookie is missing.
Small code cleanup here and there.
2024-07-15 11:07:47 +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 8a02dc014e Fixed issue with repair 2024-06-28 10:38:21 +02:00
Kenneth Skovhede 3f51536073 Fixed issue with fetching logs 2024-06-28 10:37:47 +02:00
Kenneth Skovhede d3a8ecacad Implemented single operation token.
Fixed export and bugreport download.
2024-06-28 08:56:00 +02:00
Kenneth Skovhede 21fe0f9cfb Fixed a few logic issues, restore flow is now working 2024-06-24 16:00:05 +02:00
Kenneth Skovhede e0d93da2f5 Removed last remaining form input 2024-06-24 15:26:07 +02:00
Kenneth Skovhede 1acda72561 Fixed not creating an empty database 2024-06-24 10:14:03 +02:00
Kenneth Skovhede d6fe8c1a7d Fixed some naming issues for parameters 2024-06-21 08:00:57 +02:00
Kenneth Skovhede 8efab7f746 Fixed an optional parameter 2024-06-21 07:52:28 +02:00
Kenneth Skovhede 6945270d49 Setting cookie name depending on port 2024-06-19 14:18:50 +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 c0b8129924 Fixed log data 2024-06-13 07:23:30 +02:00
Kenneth Skovhede fe90f8ce3d Consistency update 2024-06-12 22:57:50 +02:00
Kenneth Skovhede 270f2f9cea Some work on untangling FIXMEGlobal 2024-06-09 22:00:34 +02:00
Kenneth Skovhede 1d0d7e0152 Fixed library platform usage 2024-06-09 21:24:32 +02:00
Kenneth Skovhede 6878a601a9 Fixed XSRF for import/export feature 2024-06-08 13:59:33 +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 d78b9f2c63 WIP 2024-04-03 10:40:29 +02:00
natan 6041c8f1d9 Merge remote-tracking branch 'npodbielski/feature/http-server-modernization' into feature/http-server-modernization
# Conflicts:
#	Duplicati/WebserverCore/DuplicatiWebserver.cs
#	Duplicati/WebserverCore/Extensions/ServiceCollectionsExtensions.cs
#	Duplicati/WebserverCore/Middlewares/StaticFilesMiddleware.cs
#	Duplicati/WebserverCore/appsettings.Development.json
#	Duplicati/WebserverCore/appsettings.json
2024-03-26 18:33:13 +01:00
natan 5d53eddb32 WIP 2024-03-26 18:32:56 +01:00
natan 32e852a392 WIP 2024-03-24 17:54:21 +01:00