|
Hi,
I was wondering if this idea is "secure". Currently I manually create a server SSH key using my stackscript then I manually add this to my github whilst the stackscript is paused, then I confirm that it has been added and the stackscript continues to run, cloning my code from my private github.
What about if I always had the same ssh access key added on github that doesnt change. Then I use this key hardcoded into my stackscript to add it as the servers SSH key, and then have the SSH key password as a UDF variable that I enter when deploying a server.
This way, I wouldnt have to do anything manually on deployment, I would just need to put the SSH key password in as a stackscript variable on deploy.
Any thoughts would be much appreciated.
James
|