Use pipe to pass password to borg#1004
Conversation
|
Which problem will this solve? We actually want to pass this password to Borg only. It also adds a good bit of complexity to the code. So there would need to be a strong reason to make this change. |
|
In Linux the environment (and a command line) of every process is available in its directory under |
|
BTW. I have tested this patch only on Linux. I expect it to work properly on macos, but I've got no proof. Please make sure it works fine before merging. |
|
I see the issue, appreciate the contribution and understand the security concern, even if it's minor. Concrete reservations I have:
|
Depending on system configuration environment variables of a process may be readable for other processess. Password passed through a pipe is not visible to other processes.
That is a matter of judgement and of course it is up to you to decide.
Fair point. I'll see, what I can do.
As I wrote above, I expect it to work on macOS. I can check Windows. I'll write some short testing code and put it here.
Fixed, pushed. |
|
Are you still working on this @steelman? |
|
I agree that this needs thorough platform testing. About minimum borg requirement being borg 1.1.8: There was a major bugfix in 1.1.11 that fixed a hashtable issue, see also the advisory at top of the change log. Thus, nobody should use anything older than 1.1.11 nowadays (only exception being patched/fixed versions like e.g. 1.1.9 in debian or ubuntu). |
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
I'll revisit it. |
Depending on system configuration environment variables of a process
may be readable for other processess. Password passed through a pipe
is not visible to other processes.