-
Notifications
You must be signed in to change notification settings - Fork 31
Add password for SSH, AWS and GDrive config #600
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
base: main
Are you sure you want to change the base?
Conversation
53a5a05 to
274fe29
Compare
44af5de to
5c21724
Compare
350ac89 to
0c2c1b2
Compare
cs7-shrey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @JoeZiminski, this is really well thought out. You have covered all the cases here very elegantly. I have dropped a few minor suggestions here and there, otherwise the implementation is logically and structurally very sound.
Co-authored-by: Shrey Singh <96627769+cs7-shrey@users.noreply.github.com>
Co-authored-by: Shrey Singh <96627769+cs7-shrey@users.noreply.github.com>
….com:neuroinformatics-unit/datashuttle into add_password_to_rclone_config_for_aws_gdrive
…d encryption set up, and some small tidy ups.
Co-authored-by: Shrey Singh <96627769+cs7-shrey@users.noreply.github.com>
….com:neuroinformatics-unit/datashuttle into add_password_to_rclone_config_for_aws_gdrive
cs7-shrey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just one small change.
|
|
||
| self.interface = interface | ||
| self.no_browser_stage: None | str = "show_command_to_generate_code" | ||
| self.no_browser_stage: None | str = "pending" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that this variable could be called something like self.client_secret_stage
This PR adds the option to encrypt the RClone config file containing SSH, AWS or GDrive connection information (e.g. private key, passwords, access tokens). The main changes are:
.conffiles (previously, the RClone default to store everything in RClone'srclone.confwas used. This is still kept forlocal_filesystemfor backwards compatibility.This required quite a lot of refactoring to the setup connection functions (API and TUI) as well as the internal calls to rclone. Now, these calls are wrapped in some functionality that handles unencrypting the rclone config if required.
Tests and documentation have been updated.
This implementation is okay but there is still room for improvement. However, as this PR is pretty big and we just need to get this out, these are reversed for the future (#636).