Unitech / pm2-deploy

Deploy part of PM2
http://pm2.keymetrics.io/docs/usage/deployment/
MIT License
178 stars 72 forks source link

Multi-user environment #83

Open BrandonCopley opened 8 years ago

BrandonCopley commented 8 years ago

How do we deal with a multi-user environment, but sharing the ecosystem across machines? Can I have an array of "users"? or how does this work?

ex: root can push, but I don't want to give my users access to root. For PCI compliance I want to have each employee that can push live code to have a separate username. user1, user2, user3 should all be able to push code, but have the server track which user is pushing code. I can't have a "node" user where we all share that ssh key since that goes against best security practices.

BrandonCopley commented 8 years ago

It seems like allowing an array of users and to attempt to connect with all users might be a nice addition. If this is something we could add I could build the array functionality. I just need approval and then I'll get the pull request going.

This is useful and needed when doing PCI compliance so that passwords/keys aren't shared between users, but multiple users need access to push production code.