I have a bunch of CI runner VMs that should not normally be phoning home to the ...
Andrew Zonenberg @azonenberg@ioc.exchange
I have a bunch of CI runner VMs that should not normally be phoning home to the internet, but do need to be able to make git clones of code to build it.
Anyone have suggestions on how to lock this down? There's two obvious options:
* HTTP proxy that blocks requests not to approved repo hosts. Not sure how hard it is to restrict to only git clones though
* Check out the code on the orchestrator VM once, then sftp the entire checkout over to the VM for each runner. This will work and also allow caching to some extent (one hit to the git host per build, vs one per configuration) but might come with high overhead.
Thoughts on pros and cons of each? Is there another option I'm missing? Is there a "git proxy" that I can point stuff to that will cache checkouts and allow me to do filtering of approved repo URLs?