-
Notifications
You must be signed in to change notification settings - Fork 59
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
Separate secrets from the rest of Klipper-Backup config #137
Comments
Just to be clear
In the first section you mention secrets being excluded but in the second half you mention wanting the token, username, etc... in a seperate file so it could be included in the backup. Did you actually mean excluded? as including the token in the backup is a major security risk and not to mention github we immediately revoke your token the second it was pushed to the repo. Once the restore branch is finished and released you will get a restore.config file that will look like this https://github.com/Tylerjet/test/blob/55d37627f86f9aff7701c0de0f536dfa238f2620/klipper-backup-restore/restore.config with cetain data excluded from the variables. |
Thank you for taking the time to look into this. I’m sorry if my initial request wasn’t clear! Let me clarify: What I meant was to separate the secrets from the rest of the configuration so that only the non-secret parts of the configuration can be safely backed up. My goal is to ensure that secrets like the GitHub token, username, and repository remain in the local The idea of moving the non-secret configuration to a file in I hope this clears up the misunderstanding. Let me know if I can explain further! |
If I have understood correctly: Sensitive data such as the token, etc. remain in the .env file. Other data that is "not secret" (like repository name, user name, which folders should be included in the backup) is stored in an extra config file. This extra config file is then pushed so that, for example, the backup folder structure can be saved.
I think it would be technically easy to solve and not an issue. However, we would then have to migrate all users to this new version automatically, as otherwise the existing users would run into an error. I'm still thinking about it, but the effort involved in the migration is not in proportion to the benefits. In the meantime, I would advise you to save the data (except the token, of course) in a new file |
Yeah in that case as mentioned at the end of my reply something like that will already be in the restore release.
As the file paths and other data is needed to properly restore files back to the paths they were pulled from. |
For now I'm doing what you suggested, keep a manual backup of the Klipper-Backup config. I agree that it's not super important, and maybe it's not worth it, but it would be nice that the config of the backup tool get's also backed up without manual intervention. This occurred to me just because I just installed a fresh OS image on my printer and the time it takes to replicate all the config of all the modules quickly adds up, even for small config files like this one.
I don't see how this helps if the secrets are still in the same file as the rest of the configuration. I'm probably missing something here. |
In that restore.config file I linked you will see that the secret variables are still there but the values are removed before being pushed to the repo that way there is no need for two separate files. All the important data like the paths being backed up and exclusion list are backed up to the repo. Along with added data like the theme you are using (if applicable) |
Ohhhh! That sounds like an even better solution! Thanks for clarifying 🙂 With that feature already in the roadmap, I believe this request is no longer necessary. Feel free to close this issue. |
Is your feature request related to a problem? Please describe.
While not indispensable, it would be nice to have Klipper-Backup config backed-up with the rest of the printer configuration, excluding the secrets contained in .env file.
Describe the solution you'd like
I would like to have the secrets, say, this part:
separated from the rest of the Klipper-Backup configuration, ideally in a file in
~/printer_data/config
so that it can be included in the actual backups.Describe alternatives you've considered
Still use just one config file, but allow some kind of include mechanism so the user can separate the part of the configuration he needs to be backed up.
Additional information
No response
The text was updated successfully, but these errors were encountered: