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

Use a proxy with sfcc-ci #204

Open
ajimeneg opened this issue Mar 5, 2021 · 2 comments
Open

Use a proxy with sfcc-ci #204

ajimeneg opened this issue Mar 5, 2021 · 2 comments

Comments

@ajimeneg
Copy link

ajimeneg commented Mar 5, 2021

Hi,

I'm trying to use sfcc-ci in a Jenkins linux machine which is behind a proxy. I tried setting the proxy this way before the auth (groovy jenkins file):

sh 'export HTTP_PROXY="http://myproxy.example.com:8080"'
sh 'export HTTPS_PROXY="http://myproxy.example.com:8080"'
sh 'export http_proxy="http://myproxy.example.com:8080"'
sh 'export https_proxy="http://myproxy.example.com:8080"'
sh 'export PROXY="http://myproxy.example.com:8080"'
sh 'export proxy="http://myproxy.example.com:8080"'

but it is not working. The communication through my proxy to account.demandware.com and to my sandboxes should be open though.

I already checked the sfcc-ci source code, but I couldn't find anything related to setting a proxy.

Is there any way to make sfcc-ci run through a proxy server?

Thanks

Greetings
Antonio

@tobiaslohr
Copy link
Contributor

There is no support yet for running the CLI with proxy settings for http and https traffic. Suggestions through contributions however are welcome.

@dmcdermott-petsmart
Copy link

dmcdermott-petsmart commented Jul 9, 2021

We had an issue with this. Under the hood, it appears Node is what is making calls out to the internet, so as long as Node is correctly configured for your proxy, you should be good.
Edit: I realized after my initial comment that not all proxies work the same. Our traffic is routed through the proxy automatically, our problem is the cert for the proxy causing HTTPS connections to fail (man in the middle scenario). When Node has the additional cert configured, SFCC-CI will work just fine.

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

No branches or pull requests

3 participants