Commit Graph
60 Commits
Author SHA1 Message Date
Kenneth SkovhedeandGitHub 35bd853f7a Merge pull request #5974 from duplicati/feature/report-listen-interface-on-start
Added listen interface to startup message
2025-02-24 13:07:34 +01:00
Kenneth Skovhede def7327b21 Fixed CORS preflight
This fixes the CORS preflight by allowing the preflight requests to be sent without being authenticated.
Without this fix all CORS requests would fail due to the access token not being included in preflight requests.
2025-02-20 10:51:10 +01:00
Kenneth Skovhede 9501470d0d Added listen interface to startup message 2025-02-14 11:28:22 +01:00
Kenneth Skovhede 04205d5084 Added support for CORS 2025-01-18 11:03:52 +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 Skovhede 7436d1271e Added a filter to not log application exceptions.
Unknown exceptions are still logged, so we can collect reports of these and eventually wrap them in user information exceptions.
2024-12-17 14:53:00 +01:00
Kenneth Skovhede a2a974098e Disabled probing of openid config 2024-12-16 22:47:04 +01:00
Kenneth SkovhedeandGitHub 58a5fc57f4 Implemented support for emitting intermediate certificates from pfx (#5739)
* Implemented support for emitting intermediate certificates from pfx files

* Added certificate check to crash earlier

* Fixed loading certificate on Windows
2024-12-05 10:34:10 +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 569ffabc76 Merge branch 'master' into feature/improved-ipv6-support 2024-11-01 08:31:49 +01:00
Kenneth Skovhede 405b2832ee Added the localhost listen variant. 2024-10-29 14:44:43 +01:00
Kenneth Skovhede 56816abed8 Reverted to not storing the certificate as a file, since the x509Certificate loader was the broken part, not Kestrel. 2024-10-29 13:55:12 +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 f9154137a3 Merge remote-tracking branch 'origin/master' into feature/ex-certificates 2024-10-29 09:24:53 +01:00
Kenneth Skovhede 072efe0625 Implemented explict support for IPv6 listener in the webserver.
Using any/all/* will now listen on both IPv4 and IPv6 if available.
To force IPv4-any, use `0.0.0.0` and similar `[::]` for IPv6.
The loopback value listens on IPv4 and the new ipv6loopback value selects IPv6 loopback. It is not possible to get both loopback values at the same time.
2024-10-25 11:17:30 +02:00
Kenneth Skovhede ef0ca64d52 Merge remote-tracking branch 'origin/master' into feature/remote-control-support 2024-10-03 14:49:07 +02:00
Kenneth Skovhede 99a2095e41 Adding new theme to client.
Added support for loading NPM package in dev mode.
Added support for SPA style redirects.
2024-10-02 22:14:37 +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 669e90704d Initial work on supporting a secure remote control connection. 2024-09-18 11:07:59 +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
Max 1bb03a5673 upstream sync 2024-09-11 21:31:04 +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 6a9d37ad9e Fixed responding to stop signals.
This fixes #5478
2024-08-27 11:33:52 +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 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 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 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
Max 9d3286e240 rework certificates to support EC keys and preparation for GUI options 2024-08-06 21:37:35 +02:00
Kenneth Skovhede 105f6e16ff Fixed origin mapping 2024-07-18 10:51:58 +02:00
natan 27ce549e75 cleanup WebsocketAccessor.cs and StatusService.cs a bit.
Remove /serverstate endpoint
2024-07-12 17:59:21 +02:00
natan f7656f464e fix websocket connection 2024-07-03 22:26:03 +02:00
Kenneth Skovhede 2c42108df3 Disable logging to console by default 2024-06-30 21:35:15 +02:00
Kenneth Skovhede f91c4c7328 Removed unused settings 2024-06-30 21:34:54 +02:00
Kenneth Skovhede c0f834f511 Removed logspam 2024-06-28 13:22:02 +02:00
Kenneth Skovhede 0855d7fe4d Improved error messages for better client handling options 2024-06-21 16:26:06 +02:00
Kenneth Skovhede 92b82df78b Disabled websocket as it is not complete.
Fallback to longpoll :'(
2024-06-20 22:46:42 +02:00
Kenneth Skovhede c9f8e5786c Minor fixes 2024-06-20 22:22:49 +02:00
Kenneth Skovhede 4392d84da4 Improved startup error detection 2024-06-20 14:27:09 +02:00
Kenneth Skovhede 34821192fc Fixed hostname filtering 2024-06-20 12:59:24 +02:00
Kenneth Skovhede 25a7667e36 Minor updates to JWT issuance 2024-06-19 22:43:52 +02:00
Kenneth Skovhede cddf0917e3 Fixed build 2024-06-19 22:37:54 +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 270f2f9cea Some work on untangling FIXMEGlobal 2024-06-09 22:00:34 +02:00