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

Add env var to disable GAR blob bypass logic and let the proxy handle artifact downloads #47

Closed
wants to merge 2 commits into from

Conversation

maheperera
Copy link

Adds an optional env var DISABLE_GAR_BLOB_BYPASS which can be used to force the blob downloads through the proxy.
This is required in scenarios where general internet access is restricted and ALL traffic must flow through the proxy server.

}

updateTokenEndpoint(resp, origHost)
return resp, nil
}

// updateTokenEndpoint modifies the response header like:
// Www-Authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahmetb, which formatter do you use? I'd like to configure mine similarly to avoid making unnecessary changes like this.

@maheperera maheperera marked this pull request as ready for review February 12, 2025 05:49
@ahmetb
Copy link
Owner

ahmetb commented Feb 12, 2025

@maheperera I'd recommend forking, this is not a mainline feature that most users would need.

@maheperera
Copy link
Author

@ahmetb Sure, will close this PR now. Thanks heaps for a really useful repo 😄

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.

2 participants