Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vaprobash with private fork / clone #501

Closed
tommedema opened this issue Sep 18, 2015 · 5 comments
Closed

Vaprobash with private fork / clone #501

tommedema opened this issue Sep 18, 2015 · 5 comments

Comments

@tommedema
Copy link

Hi,

We're trying to use Vaprobash inside our company. Because we have some sensitive configuration settings and architectural files within our vaprobash fork, we'd like to make our github branch private.

However, even after setting a github_pat in the Vagrantfile, curl fails to download files from our private repo, returning a 404 error -- I expect this is because of authentication issues. We tried to clone the entire repo locally and set the github url to . (this folder), but then the problem is that helpers like vhost.sh cannot be downloaded from within the virtual machine (e.g. in apache.sh).

Have you ever tried this yourself? Is there a good way to do this?

@fideloper
Copy link
Owner

Gotcha, interesting! I think you'll end up needing to clone a copy of your
repository to a local folder, and use local file paths instead of URLs, or
perhaps clone the repository to a local network and use those URLs instead
of the github ones.
On Thu, Sep 17, 2015 at 23:35 Tom Medema [email protected] wrote:

Hi,

We're trying to use Vaprobash inside our company. Because we have some
sensitive configuration settings and architectural files within our
vaprobash fork, we'd like to make our github branch private.

However, even after setting a github_pat in the Vagrantfile, curl fails
to download files from our private repo, returning a 404 error -- I expect
this is because of authentication issues. We tried to clone the entire repo
locally and set the github url to . (this folder), but then the problem
is that helpers like vhost.sh cannot be downloaded from within the
virtual machine (e.g. in `apache.sh).

Have you ever tried this yourself? Is there a good way to do this?


Reply to this email directly or view it on GitHub
#501.

@tommedema
Copy link
Author

Okay, that'd be the easy way, but then we can't track the changes you make here, right?

@lukewaite
Copy link
Contributor

@tommedema Perhaps explaining our use case will help you figure out the best way for you to do it.

We maintain a private fork of Vaprobash. It has been customized and tuned to our needs. We track Vaprobash by setting it as an additional remote on our working copy.

Changes to Vaprobash (upstream) can be merged in, then pushed up to origin, where other members of our team pull down the latest version when required.

 ~/its-a-box   master 
 git remote -v
luke-upstream   [email protected]:lukewaite/Vaprobash.git (fetch)
luke-upstream   [email protected]:lukewaite/Vaprobash.git (push)
origin  git@<redacted>/its-a-box.git (fetch)
origin  git@<redacted>/its-a-box.git (push)
upstream    [email protected]:fideloper/Vaprobash.git (fetch)
upstream    [email protected]:fideloper/Vaprobash.git (push)

@chrispelzer
Copy link
Contributor

@lukewaite
Until #493, the github_pat wasn't being set to /scripts/composer.sh, which you probably are installing to clone from the private repos.

@chrispelzer
Copy link
Contributor

@lukewaite Thinking a bit more about this. How are you needing the Github Personal Access Token exposed? Expanding on my previous comment, the github_pat is only being exposed to composer, if you aren't using composer but still want the github_pat passed to something else, it will need to be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants