#Proxy authentication for Go (GOPROXY)

1 messages · Page 1 of 1 (latest)

clear acorn
#

@wicked bluff , is using GOPRIVATE an option for you? It works for me in my company

wicked bluff
#

@clear acorn Thanks for your reply. We are using JFrog Artifactory so it's HTTPS based with authentication. As far as I understand GOPRIVATE is then not working. My findings are confirmed by this statement in the issue you shared:
Breaks when: Enterprise requires HTTPS+PAT, blocks SSH

clear acorn
#

We have a similar setup. If I don't set auth on GOPROXY but set GOPRIVATE, go uses git auth to pull directly from the internal repo. Our Arty proxy for Go is very new though, so it's possible things will change.

wicked bluff
#

But that means you have the Go modules stored in a Git repo and not in a repository manager like Artifactory right?

cerulean girder
#

unfortunately the only option for this to work today is to hardcode the user+password in the GOPROXY variable. We're working at this moment in a new auth spec that will fix this 🙏