Coder Social home page Coder Social logo

Support for https proxy about kraken HOT 5 CLOSED

uber avatar uber commented on August 15, 2024
Support for https proxy

from kraken.

Comments (5)

paulsjohnson91 avatar paulsjohnson91 commented on August 15, 2024

Update: most of the query strings are hardcoded to http, when manually updating all of these hardcoded string I got it to work with a https repository but also the http client get function seems to override to http which also had to be updated.

from kraken.

codygibb avatar codygibb commented on August 15, 2024

So internally, all urls are hardcoded as http. We use the SendTLS option in package httputil to enable https, which swaps http for https:

// SendTLS sets the transport with TLS config for the HTTP client.
func SendTLS(config *tls.Config) SendOption {
	return func(o *sendOptions) {
		if config == nil {
			return
		}
		o.transport = &http.Transport{TLSClientConfig: config}
		o.url.Scheme = "https"
	}
}

from kraken.

evelynl94 avatar evelynl94 commented on August 15, 2024

I think as long as you have the correct tls config it should do the right thing. For example, in the example devcluster we pull from dockerhub using https://github.com/uber/kraken/blob/master/examples/devcluster/config/build-index/development.yaml#L8

from kraken.

paulsjohnson91 avatar paulsjohnson91 commented on August 15, 2024

Yes you're right I was seeing the request in the logs as http because it was falling back to http due to me not adding the correct certificates to the build for my nexus. Thanks for the help

from kraken.

yiranwang52 avatar yiranwang52 commented on August 15, 2024

So the problem is solved?

from kraken.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.