pystorm / streamparse

Run Python in Apache Storm topologies. Pythonic API, CLI tooling, and a topology DSL.
http://streamparse.readthedocs.io/
Apache License 2.0
1.5k stars 218 forks source link

Fix permissions when env user cannot be used for ssh login #455

Closed dan-blanchard closed 5 years ago

dan-blanchard commented 5 years ago

This PR makes it possible for you to use your own user account as the SSH login account for a server and then sudo to a different user for creating virtualenvs. This handles the common scenario where the superuser that you need to use to write the virtualenv is not a login account.

emmettbutler commented 5 years ago

Is there anything blocking the merge of this PR?

dan-blanchard commented 5 years ago

It needs to be expanded upon for backward compatibility. I was planning on adding new settings so you can specify the user that the virtualenv creation/deletion commands run as independently of the SSH user.

emmettbutler commented 5 years ago

I'm happy to make the remaining necessary changes here if you can convey some more specific idea of what's left to be done, @dan-blanchard.

dan-blanchard commented 5 years ago

I can add it just as quickly as I could explain it, so I'll just bang it out.