Commit Graph
11797 Commits
Author SHA1 Message Date
Kenneth Skovhede 8fca01f64f Updated NUnit
This closes #4939
2025-06-13 11:48:24 +02:00
Kenneth SkovhedeandGitHub 15eb009594 Merge pull request #6343 from duplicati/feature/fix-module-loading
Handle loading and unloading of modules
2025-06-13 10:47:26 +02:00
Kenneth SkovhedeandGitHub 35e389b507 Merge pull request #6333 from duplicati/feature/booleans-should-be-false-by-default
Ensure booleans are false by default
2025-06-13 10:46:54 +02:00
Kenneth SkovhedeandGitHub cafb78ed7d Merge pull request #6346 from duplicati/feature/secret-provider-should-be-a-password
Secret provider option should be a password
2025-06-13 10:46:26 +02:00
Kenneth Skovhede ee9c2a640b Secret provider option should be a password
This changes the `--secret-provider` type to be a password, as it may contain credentials for the key vault.
2025-06-13 09:12:16 +02:00
Kenneth SkovhedeandGitHub d74778bbf5 Merge branch 'master' into feature/booleans-should-be-false-by-default 2025-06-13 08:58:12 +02:00
Kenneth Skovhede 7a560c4ae2 Fixed tests and a left-over message 2025-06-13 08:41:32 +02:00
Kenneth SkovhedeandGitHub 34f084ab92 Merge pull request #6332 from duplicati/feature/adjust-websocket-logging
Reduce logging of websocket messages
2025-06-13 08:35:45 +02:00
Kenneth Skovhede 7c602106c3 Simplified priority sorting 2025-06-13 08:08:42 +02:00
Kenneth SkovhedeandGitHub 423338cfec Merge pull request #6341 from marceloduplicati/feature/http-client-timeout-revision
Sets infinite timeout for HTTP clients
2025-06-13 07:36:45 +02:00
Kenneth SkovhedeandGitHub 225fd1f3c9 Merge pull request #6344 from duplicati/feature/better-handling-of-wrong-email
Add null checks to send-mail
2025-06-13 07:36:31 +02:00
Kenneth SkovhedeandGitHub 4456d81e6e Merge pull request #6345 from duplicati/feature/fix-warnings-in-ci-tests
Fixed two nullable warnings in CI tests
2025-06-13 07:36:17 +02:00
Kenneth SkovhedeandGitHub d432006207 Merge branch 'master' into feature/http-client-timeout-revision 2025-06-12 22:27:12 +02:00
Kenneth SkovhedeandGitHub 9dfe618444 Merge pull request #6338 from duplicati/feature/detect-erperm-errors
Detect EPERM on mac/Linux
2025-06-12 22:25:54 +02:00
Kenneth Skovhede 5bfaa87694 Fixed two nullable warnings in CI tests 2025-06-12 22:25:06 +02:00
Kenneth SkovhedeandGitHub 005e12731a Merge pull request #6342 from duplicati/feature/add-apple-usage
Added descriptions for Apple usage
2025-06-12 22:22:42 +02:00
Kenneth SkovhedeandGitHub adc5a91d9c Merge pull request #6334 from duplicati/feature/more-localization-for-test-handler
Added localized messages in test handler
2025-06-12 22:22:26 +02:00
Kenneth SkovhedeandGitHub 131f8a25d6 Merge pull request #6328 from duplicati/feature/improve-alternate-oauth-url-support
Update handling of alternate OAuth url
2025-06-12 22:21:56 +02:00
Kenneth SkovhedeandGitHub 3b38cd2685 Merge pull request #6335 from duplicati/feature/update-script-examples
Updated Windows example script
2025-06-12 22:21:14 +02:00
Kenneth SkovhedeandGitHub fa2f7ada79 Merge pull request #6330 from duplicati/codex/increase-test-coverage-in-duplicati.library.main
Increase test coverage for ControllerMultiLogTarget
2025-06-12 22:21:00 +02:00
Kenneth SkovhedeandGitHub 524450092b Merge pull request #6329 from duplicati/codex/find-and-fix-bug
Fix block initialization bug in IssueTests
2025-06-12 22:20:39 +02:00
Kenneth Skovhede 151afe5d82 Add null checks to send-mail
This PR adds null checks to the email module to prevent crashes when sending email.

It also guards against improper reuse of the modules. This is related to #6343.

This fixes #6315
2025-06-12 22:17:02 +02:00
Kenneth Skovhede f6094baddb Handle loading and unloading of modules
This PR fixes the issues with not correctly loading and disposing modules.

Prior to this PR, there would be only a single instance of each module loaded, which would be configured and later disposed, meaning that the same instance would be used after being disposed, and disposed multiple times.

This mostly worked, but it could carry configuration details over between unrelated runs.

This fixes #6314
2025-06-12 22:13:55 +02:00
Kenneth Skovhede d37e735d12 Fixed setting the message 2025-06-12 16:36:52 +02:00
Kenneth Skovhede 1842f59cec Added descriptions for Apple usage
This adds various access description items, so macOS will prompt the user to grant access in some cases.
2025-06-12 16:33:21 +02:00
Marcelo C. 477f70508e Applying suggested changes 2025-06-12 11:29:44 -03:00
Marcelo C. 614f047dbb Sets infinite timeout for HTTP clients
Ensures that long-running HTTP requests, such as downloads and uploads, do not timeout prematurely.

This change configures specific HttpClient instances with an infinite timeout to accommodate operations that may take an extended period. The default 100s timeout is retained for some operations like registration, where a long delay may indicate a problem.
2025-06-12 10:33:13 -03:00
Kenneth Skovhede af82ed3a49 Detect EPERM on mac/Linux
This PR updates the check for permission denied to include EPERM and EACCES on macOS/Linux.
2025-06-12 13:36:53 +02:00
Kenneth Skovhede 3812f1df0a Updated Windows example script
This fixes #6322
2025-06-12 11:44:50 +02:00
Kenneth Skovhede b5250d3a4d Added localized messages in test handler 2025-06-12 10:38:07 +02:00
Kenneth Skovhede 8c0e5e579d Ensure booleans are false by default
This PR changes `--replace-faulty-index-files` to `--dont-replace-faulty-index-files`, and swaps the default value.

This PR also adds a check that triggers a warning if any boolean values are introduced with a default value that is `true`.
2025-06-12 10:34:57 +02:00
Kenneth Skovhede 52ee8d1004 Reduce logging of websocket messages
This updates the websocket authenticator to only produce verbose messages, as the connections are expected to fail for various reasons.
2025-06-12 09:33:02 +02:00
Kenneth Skovhede 6f0060ec81 Add tests for ControllerMultiLogTarget 2025-06-11 16:34:57 +02:00
Kenneth Skovhede ce79ace904 Use Span.Fill to init test blocks 2025-06-11 16:34:22 +02:00
Kenneth SkovhedeandGitHub 0d7b3f553a Merge pull request #6326 from duplicati/feature/bump-mailkit-and-dnsclient
Bumped MailKit and DnsClient to latest versions
2025-06-11 09:28:38 +02:00
Kenneth SkovhedeandGitHub e1406ecb8b Merge pull request #6324 from duplicati/feature/improve-secret-provider-matching
Improve secret matching
2025-06-11 09:28:25 +02:00
Kenneth Skovhede 35058d333e Update handling of alternate OAuth url
This PR removes the `OAuthContextSettings` class, and makes the `--oauth-url` option available on each backend that uses it, so it can be configured as part of the destination.

To assemble everything related to configuring OAuth, the code was moved to the `AuthIdOptionsHelper`, such that the usage can be shared between implementations.

This PR also adds the option to set the default OAuth url from the environment variable `DUPLICATI_OAUTH_SERVICE`.

The server can then be set in the following locations (most important last):
- Environment variable
- Server-wide advanced settings
- Backup job advanced settings (or commandline)
- Destination url
2025-06-11 09:27:40 +02:00
Kenneth Skovhede 481744a8a1 Bumped MailKit and DnsClient to latest versions 2025-06-10 10:17:07 +02:00
Kenneth SkovhedeandGitHub 8797d31305 Merge pull request #6323 from marceloduplicati/feature/detect-access-deniedonport
Proposed fix for issue 6321 - Detect access denied exception on startup bind
2025-06-10 09:41:31 +02:00
Kenneth Skovhede 38164d15cc Improve secret matching
This PR extends the allowed characters in names for secret keys to also include `-` and `_`, allowing keys like `$my-secret-key` which would previously not be matched.

This PR also adds detection of partial matches, so keys that start with the prefix, but do not match are reported as a warning. This could happen if the input key is `$my:secret` because the `:` is not matched. To prevent logging sensitive information, only the number of partial matches is reported, not the values.

It is possible that the user intended for such a value to be a matched key, but it is also possible that this value was meant to be verbatim. We can consider if this should stop the process instead of just emitting a warning, as the user should fix the issue in either case.

The fix for this would be to use the secret provider pattern and change to something that is not partially matched.
2025-06-10 09:40:35 +02:00
Marcelo C. e74937acb4 Proposed fix for issue 6321 - Detect access denied exception on startup bind
https://github.com/duplicati/duplicati/issues/6321
2025-06-06 11:53:16 -03:00
Kenneth SkovhedeandGitHub a89556f796 Merge pull request #6319 from duplicati/codex/write-tests-to-increase-code-coverage
Add tests for CLIDatabaseLocator and Utility
2025-06-04 06:38:33 +02:00
Kenneth Skovhede 76a8d92c3f Fixed test 2025-06-03 20:37:23 +02:00
Kenneth SkovhedeandGitHub d8d2508e3b Merge pull request #6320 from duplicati/codex/add-support-for-ssh.net.agent
Add ssh-agent support for SSH backend
2025-06-03 19:43:45 +02:00
Kenneth Skovhede bc9c9ac56b Fixed tests 2025-06-03 10:34:38 +02:00
Kenneth Skovhede fa6343fb71 Added exception guards for testing for key availability. 2025-06-03 10:17:49 +02:00
Kenneth Skovhede f2b7ed3bfd Bumped SSH.Net to 2025.0.0 2025-06-03 09:48:10 +02:00
Kenneth Skovhede 4337d0d478 Fixed wrong package.
Fixed wrong loading of keys.
Added support for MacOS KeyChain keys.
2025-06-03 09:47:39 +02:00
Kenneth Skovhede 1420bed3c5 Rename option to disable ssh agent 2025-06-03 06:23:45 +02:00
Kenneth Skovhede f8e6fff0e9 Add unit tests for CLIDatabaseLocator and Utility 2025-06-02 08:48:00 +02:00