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

allow gs_downloader to use GS_APPLICATION_CREDENTIALS #1086

Merged
merged 1 commit into from Sep 16, 2019

Conversation

GaryPWhite
Copy link
Contributor

Behind our firewall, the default google client will explode when performing some operations. This PR is to address that issue by allow us to authenticate during the download process with the client. By not using the default client, we're able to download protected artifacts and bypass the firewall restriction.

Let me know if we have any problems/questions, and thanks!

@lox
Copy link
Contributor

lox commented Sep 11, 2019

Is newGoogleClient defined somewhere else?

@GaryPWhite
Copy link
Contributor Author

It's defined in gs_uploader. Anything you think I ought to do?

@GaryPWhite
Copy link
Contributor Author

Bumping in case y'all have more questions or if I need to contribute elsewhere to make this work 😁

@lox
Copy link
Contributor

lox commented Sep 16, 2019

For future generations, the function this change references is at

func newGoogleClient(scope string) (*http.Client, error) {

I reckon in future we should avoid new* on constructors that have extra behaviour like reading env.

@lox
Copy link
Contributor

lox commented Sep 16, 2019

Of course I wrote that code. 🤦🏼‍♂️

@lox lox merged commit 31874d3 into buildkite:master Sep 16, 2019
@lox
Copy link
Contributor

lox commented Sep 16, 2019

Sorry that took me so long @GaryPWhite. Gotta get us some more Golang developers.

@GaryPWhite
Copy link
Contributor Author

Hiring? ;)

@harrietgrace
Copy link
Contributor

Docs updated: buildkite/docs#556

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

Successfully merging this pull request may close these issues.

None yet

3 participants