I am using cloudcontrols standard buildback-php. I am using composer to install third party libs. These also includes private git repositories typically accessible via ssh deployment keys.
Problem: accessing private repositories during the cloudcontrol image build process does not work due to missing ssh private keys.
I found a workaround solution that seems to work with heroku (private key is downloaded, decrypted and installed during build process):
https://github.com/taniele/heroku-buildpack-php-mongo#composer-private-repository-support
Another solution is provided by fortrabbit (one time server side ssh key generation):
http://fortrabbit.com/docs/in-depth/git-hooks/sshkeygen
Questions:
Is there any known secure solution for cloudcontrol?
How can I access CONFIG_VARS added via the config addon or the related creds.json file during the image build process before composer is executed?