hal-platform / hal

:shipit: Hal Deployment Platform - Web UI/API
MIT License
18 stars 4 forks source link

Move ssh credential management into DB #35

Closed skluck closed 6 years ago

skluck commented 7 years ago

Currently it is not possible to use different credentials per host without redeploying hal-agent.

This should be managed within the db (encrypted, obviously) and allow multiple types (pw, filesystem keyfile, provided keyfile). Deployments would then be assigned a credential and they would use that when deploying.

Server Commands should be able to use a different credential from deployment.

AWS deployments currently use this system, but rsync-based deployments are more complex, as we need to be able to connect using native ssh with php, but also command line rsync.

Perhaps we need to figure out a good way to pass db-based credentials to the cli rsync.