-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: syncthing: add support for untrusted folders #121286
Comments
I don't really have a need for this right now so I'm not going to be spending time implementing it at this point but it would be great to have. |
I'm working on this. The configuration of a folder on the untrusted node is already feasible with On the trusted side we need to add an option to set a password for each untrusted device of each untrusted folder, I propose to add an option services.syncthing.folders.foo = {
path = "/path/to/folder";
devices = [ "laptop" "server" ];
encryptionPasswordFiles = {
server = "/path/to/passwordFile";
};
} This mimics the syncthing UI where an untrusted devices is just a device with an additional password. What do you think? |
@zarelit I was about to figure out how to implement this myself but glad I searched and found this. Have you made progress or do you have an open fork that I could contribute to? |
@senorsmile unluckily I had to stop. the current implementation directly translates the attrset into a POSTable config so we actually need to add a step where we add the password in the json. |
Shouldn't it be enough to just add a password option directly? Passwords in nixos config can already be protected by using one of the secret management schemas. This way the password obstruction/storage would be done on another layer and the config can be kept password-management-agnostic. |
@k3a I'm a sops-nix user myself, the PR #205653 already exposes An example with sops-nix would be something like this:
|
@zarelit Is that what you are using ? I'm trying something similar, but it isn't working. I'm not quite sure what to do. I've tried with and without the path, no joy. For sops:
|
Made a draft PR #342138 that's up-to-date. Works already, but more work is needed. Not sure how applicable it is to change the type of |
syncthing now supports sending a folder encrypted to an untrusted node.
It's hidden in the "untrusted" feature flag for now.
Example of folder:
note
type="receiveencrypted"
and<encryptionPassword></encryptionPassword>
.The text was updated successfully, but these errors were encountered: