You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-accepted receive-encrypted folders should have more sensible defaults #8296
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
Right now I have a large folder with many items set up as "Receive Encrypted" and I was having issues where Syncthing was warning me that it was failing to watch for changes as it was hitting the inotifiy limits. With normal folder types I would understand, but watching for changes seems pointless for "Receive Encrypted" folders as there shouldn't be any changes happening on that device.
I think it would be great if "Watch for changes" were automatically disabled on "Receive Encrypted" folders as it would save memory on the device as no local changes should be happening on those folder and if there are they can be caught by periodic scanning.
Also I might be missing something about "Watch for changes" and why it might still be useful for "Receive Encrypted" folders.
"Watch for changes" is already disabled by default when the folder type is set to "Receive Encrypted", so unless you've enabled it manually, it should have stayed like that.
Have you, by any chance, encountered a situation, where it ended up being enabled? If yes, please describe the details.
That doesn't seem to be working properly as I was just able to reproduce it by sharing a new encrypted folder and verified that the folder on the receiving device had "Watch for Changes" checked.
Can you elaborate what you mean by "sharing a new encrypted folder"?
This is what I've just done.
On Device 1, add a new folder to Syncthing.
Share the folder with Device 2, protecting it with a password.
On Device 2, wait for the notification to show up, then click the "Add" button.
The folder type is automatically set to Receive Encrypted with the following settings:
Is this what you're trying to do or, if not, please describe in details all the steps that you're taking. Also, just to make sure, are you running the newest version of Syncthing on both sides? The current release is v1.19.2.
Yup, that's exactly what I've done except I had auto-accept enabled on the receiver. The initiator is v1.19.2, Linux (64-bit Intel/AMD) and the receiver is v1.19.2, Linux (32-bit ARM).
I also just found "Folder Defaults" and saw it was enabled there and just disabled it after my tests. However, I'm not sure if that is enabled by default or it somehow got enabled sometime.
Auto Accept is the culprit here. With it enabled, the folders are created using what is set in Folder Defaults, with no regard for the folder type-specific defaults.
I'd suggest to change the issue title to something like "Receive Encrypted folders have Watch for Changes enabled and Full Rescan Interval set to 3600 when added using Auto Accept" or similar.
This may tricky to fix though, as Syncthing would have to override the user defaults here. On the other hand, it already does by automatically setting the folder type to Receive Encrypted when auto accepting password-protected folders instead of what's specified in the defaults, so this could probably be treated as an exception. Maybe do this only if the default folder type is not set to Receive Encrypted? If it is though, then just follow what's set in the defaults.
changed the title [-]Disable "Watch for changes" on "Receive Encrypted" folders[/-][+]"Receive Encrypted" folders have "Watch for Changes" enabled and "Full Rescan Interval" set to 3600 when added using "Auto Accept"[/+]on Apr 27, 2022
Yeah it seems reasonable to make exceptions for these values when auto-accepting receive encrypted folders since it's already doing it for receive encrypted and those other values are useless for receive encrypted folders.
changed the title [-]"Receive Encrypted" folders have "Watch for Changes" enabled and "Full Rescan Interval" set to 3600 when added using "Auto Accept"[/-][+]Auto-accepted receive-encrypted folders should have more sensible defaults[/+]on Aug 9, 2022
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
Activity
tomasz1986 commentedon Apr 21, 2022
"Watch for changes" is already disabled by default when the folder type is set to "Receive Encrypted", so unless you've enabled it manually, it should have stayed like that.
Have you, by any chance, encountered a situation, where it ended up being enabled? If yes, please describe the details.
grantland commentedon Apr 24, 2022
That doesn't seem to be working properly as I was just able to reproduce it by sharing a new encrypted folder and verified that the folder on the receiving device had "Watch for Changes" checked.
tomasz1986 commentedon Apr 24, 2022
Can you elaborate what you mean by "sharing a new encrypted folder"?
This is what I've just done.
On Device 1, add a new folder to Syncthing.
Share the folder with Device 2, protecting it with a password.
On Device 2, wait for the notification to show up, then click the "Add" button.
The folder type is automatically set to Receive Encrypted with the following settings:
Is this what you're trying to do or, if not, please describe in details all the steps that you're taking. Also, just to make sure, are you running the newest version of Syncthing on both sides? The current release is v1.19.2.
grantland commentedon Apr 25, 2022
Yup, that's exactly what I've done except I had auto-accept enabled on the receiver. The initiator is v1.19.2, Linux (64-bit Intel/AMD) and the receiver is v1.19.2, Linux (32-bit ARM).
I also just found "Folder Defaults" and saw it was enabled there and just disabled it after my tests. However, I'm not sure if that is enabled by default or it somehow got enabled sometime.
tomasz1986 commentedon Apr 25, 2022
Auto Accept is the culprit here. With it enabled, the folders are created using what is set in Folder Defaults, with no regard for the folder type-specific defaults.
I'd suggest to change the issue title to something like "Receive Encrypted folders have Watch for Changes enabled and Full Rescan Interval set to 3600 when added using Auto Accept" or similar.
This may tricky to fix though, as Syncthing would have to override the user defaults here. On the other hand, it already does by automatically setting the folder type to Receive Encrypted when auto accepting password-protected folders instead of what's specified in the defaults, so this could probably be treated as an exception. Maybe do this only if the default folder type is not set to Receive Encrypted? If it is though, then just follow what's set in the defaults.
[-]Disable "Watch for changes" on "Receive Encrypted" folders[/-][+]"Receive Encrypted" folders have "Watch for Changes" enabled and "Full Rescan Interval" set to 3600 when added using "Auto Accept"[/+]grantland commentedon Apr 27, 2022
Yeah it seems reasonable to make exceptions for these values when auto-accepting receive encrypted folders since it's already doing it for receive encrypted and those other values are useless for receive encrypted folders.
lib/model, lib/config: Apply sensible defaults for auto-accepted encr…
Merge branch 'main' into runtimeos
Merge branch 'main' into runtimeos
Merge branch 'main' into xattr
[-]"Receive Encrypted" folders have "Watch for Changes" enabled and "Full Rescan Interval" set to 3600 when added using "Auto Accept"[/-][+]Auto-accepted receive-encrypted folders should have more sensible defaults[/+]Merge tag 'v1.21.0' into ios_try_syncthing_v1.21.0