Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

add support for specifying custom proxy options #15

Closed
wants to merge 3 commits into from

Conversation

aryan9600
Copy link
Member

This PR adds support for specifying custom proxy options (transport.ProxyOptions) alongside any remote operation. Earlier the only way to use a proxy was via an env var, which is restrictive when using this project as a package.
Furthermore, the HTTP(s) client has been refactored to make sure that all transport level configurations do not affect the client itself. Earlier, any custom client installed for the https would be ignored ifep.InsecureSkipTls was true or if ep.CaBundle was non-empty. Lastly, tests have been added for both SSH and HTTP clients alongside separate tests for env vars.

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
Add support for HTTP proxying to the HTTP client. Also, refactor the
client fetching logic to allow support for custom clients for the `https` scheme.
Earlier, any client installed for the `https` would be ignored if
`ep.InsecureSkipTls` was true or if `ep.CaBundle` was non-empty.

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
@pjbgf
Copy link
Member

pjbgf commented Apr 12, 2023

Master compatibility is orthogonal, and fixed upstream via go-git#739.

@hiddeco
Copy link
Member

hiddeco commented May 23, 2023

Closing this given fluxcd/pkg#562, which makes this repository obsolete.

@hiddeco hiddeco closed this May 23, 2023
@aryan9600 aryan9600 deleted the proxy-support branch May 24, 2023 07:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants