-
Notifications
You must be signed in to change notification settings - Fork 0
RClone Config Encrypted file - How to encrypt and what are the base contents in the project file? #2
Comments
Hi, I'm not sure I entirely understand the question, but you could generate an RClone configuration file to look inside using RClone itself: https://rclone.org/commands/rclone_config/. Once you create a remote it will show you a config file. By default without any encryption or configuration, it could be as simple as:
In terms of configuration, it is configured automatically and isn't intended to be edited manually as it contains keys. |
Sorry for the lack of better context, I mean this file: https://github.com/balena-labs-research/secure-store/blob/main/keys/encrypt.conf That I'm not sure what it does or how it got itself encrypted |
It is generated in this step from the readme: Encrypt your files using a secure password. My example password is my-password-eQ4al9jgPxlWDwxL6uiGdznhhVJzaVQPnkNRjwvwoTvqWpeBJJJZ and is included below, replace it with your own.
The files generated in ./keys should be stored in your GitHub Secrets and written to your container on build rather than kept in your GitHub repo but for now we will continue by copying them in to the containers through the Dockerfiles to be more transparent on how it works.
You should remove the default encrypt.conf, and then it will generate you a new one. |
In that command by specifying Sorry I'm not very familiar with Golang so it's a bit complex to me go over all the code without understanding first how the CLI works... |
Yes. If encrypt.conf exists, it will use that to encrypt the files. These are good questions, I am going to try and push a change in a minute to make it clearer and to avoid accidentally using the encrypt.conf that is already there. |
I think it's great to have a file created there already that works with the Balena application that can be deployed to test... In my case I just struggled understanding the steps and how flexible the process as later I need to adapt this into my own services |
I was thinking something like this: https://github.com/balena-labs-research/secure-store/pull/3/files The demo still works, but now when you run the docker command I mentioned above, you see a new encrypt.conf file generated rather than it using the one that already exists. I know it's still not going to be super easy to understand, but think that's a bit better? |
It makes sense! If I could add a recommendation, for the commands to start the |
Did you run in to an instance where that was required? Where in the docs would it be helpful? |
So when testing with my own password and just the project in general with small variations I made mistakes testing and I would get errors later like:
This would be fixed by doing the same command but like this:
But I got lucky that I found the command when checking the |
I see what you mean. You can run
Not sure how best to incorporate it. Maybe a note for users to check You think you could raise a PR on wherever you think it would be most helpful to have had that info? |
Sure, I'm working right now on the integration of these projects, I'll give it some thought on where I can incorporate it in the README. Initially I think just a note to check the I'll give it a bit more thought... |
Hi @Maggie0002 ,
After trying the project I noticed that the encrypted RClone configuration file has no instructions about how to configure it neither of what are the contents of the file previous to the encryption.
Is it possible to get some info on that?
Thanks
The text was updated successfully, but these errors were encountered: