gaia
gaia copied to clipboard
✨ : Pulling modules from private github
Is your feature request related to a problem? Please describe. I really want to use Gaia for creating and managing stacks of terraform, but most of the modules that I would need to import are actually being hosted on a private github enterprise. I am not sure of the steps to make importing these modules possible.
Describe the solution you'd like I would like to be able to import from the url provided the modules using some sort of connection from gaia to the github enterprise. This also could be done by allowing to set the git user per stack possibly.
Describe alternatives you've considered An alternative could be allow to manually add a module using a zip file of the module directly to be stored on gaia.
Hi @asheliahut Thank you for contributing by opening this issue. As for now, pulling a module from a private Github entreprise or self-hosted Gitlab is not possible. We plan to add this feature in a future version.
We also plan for Gaia to implement the Terraform registry API, which will behave like the alternative solution you're describing.
As for now, you should be able to manually import the module using the URL field in the module edition page. Follow these steps :
- on the modules page, click "import a module"
- input a name
- in the 'Git repository URL' field, input the git URL of your module in your private Github instance.
If your private Github instance uses authentication, you will need to use a personal authentication token (with a repo
scope), and add it in the URL, in this kind of form : http://username:token@your_github_instance/your_module.git
Hope it helps :)
Oh that is a great idea! Thanks so much! I love the open source nature of this product as so many others in this field are not. I need to find some time to help. I have high hopes for it!
this didnt work for me. it worked when you import the module, but when the stack runs, it doesn't run. it appears to drop the username:token
this is an admirable project, but without private auth I think the escape velocity of its success will be very, very high, as 99% of orgs are private.