-
Notifications
You must be signed in to change notification settings - Fork 937
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
Does Mackup still sync SSH keys by default? #1227
Comments
No private keys are copied by default, see https://github.com/lra/mackup/blob/master/mackup/applications/ssh.cfg but if you don't specify any application to sync in the config, mackup by default syncs every application config it finds. Asking for a tool that's supposed to be a oneline line install + launch to require text editing to do the most basic thing is counter productive and defeats its purpose IMO. You can always use I'm open to better solutions, but so far, it's a conflict between users who want nothing done by default and lots of warnings vs others. |
Thanks for taking the time to read this issue and the quick response!
I think my understanding of the default behavior might be a little different. To me, default is what happens when you don't specify any config. I'm on board with the balance of wanting nothing done and wanting everything copied by default. I think I fall into the camp of wanting everything done by default (as in no configuration file) except the operations that could potentially cause security issues. I think it's reasonable to have to opt into those.
|
But the ssh config does not sync any key by default: https://github.com/lra/mackup/blob/master/mackup/applications/ssh.cfg Are you talking about something else? |
I think I might be misunderstanding. I was responding to this line of your reply:
Does "every application" include SSH? Or are you saying that every application except the excluded ones? |
Yes, it includes SSH but only the files referenced in the SS config: https://github.com/lra/mackup/blob/master/mackup/applications/ssh.cfg No private key is synced. |
Okay, I think I understand. So can this line be removed from the help documentation?
Specifically the "including private keys" part. |
Yes, you are right, it's outdated. Want to PR or want me to remove it? |
I'm happy to tackle this. It's the least I can do. I'll try to wrap it up this weekend. |
please do ;) |
I've been using mackup for years and I find that my private keys are backed up. I can find no record of where I would have manually configured that to be different than the default. I have concerns about changing the default behavior. Programs should follow the principle of "least surprise". If 10 users install this program, what percentage of them would assume mackup backups private keys by default (opt out)? What percentage would assume it doesn't back them up by default (opt in). I would argue 90% of people would assume a backup utility would backup things that are important by default. Furthermore not backing them up is dangerous since the average user wouldn't notice until they go to restore, when it is too late. |
With this now included, how can I include private keys? I have a ton of them and don't wanna manually sync on all boxes. |
@abiusx you can follow the instructions for syncing whatever files you want. |
I tried that, it didn't work. Apparently because there's already a .ssh config and files copied over. |
Correct, you can overwrite the existing mackup config file by giving it the same application name: Create an ssh config file in your Mackup folder (ex:
Can you clarify
You can manually remove the symbolic links mackup creates and rerun |
I did all of that. First, I don't wanna list all my 50 private keys in the config file (plus ones that will be added later). I think just synching |
@abiusx yeah, that's a lot of keys! I wouldn't want to do that either. Just change my steps above with this:
This will sync the Hope it helps. |
If you have already run |
The ability to backup or restore one app at a time hasn't been built (but suggested before). If you have any suggestions please share them with us. I plan to write a guide on mackup this year, I'll keep this edge-case in mind to help future users :) |
Today I was using Mackup and I noticed this in the help documentation:
I really like Mackup—it saves a ton of time when setting up a new computer. However, the idea of automatically syncing SSH keys by default really scares me. A few years ago I accidentally exposed an SSH key and someone used it to charge a few thousand dollars to AWS for my company. I'd really like to avoid doing anything like this again in the future.
In reading through #512 and #109, it looks like this behavior was turned off. However, the help documentation doesn't seem to indicate that. So which one is correct? I feel strongly that synching private keys by default is not obvious behavior, and it has the potential to have some serious consequences.
Also, will Mackup sync other types of sensitive information in the future? What scares me most about this is not necessarily what Mackup is syncing today, but what it might add in the future that I don't notice.
Thanks!
The text was updated successfully, but these errors were encountered: