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

how to set a https proxy for wsk #514

Open
GitHubDiom opened this issue Sep 18, 2021 · 2 comments
Open

how to set a https proxy for wsk #514

GitHubDiom opened this issue Sep 18, 2021 · 2 comments

Comments

@GitHubDiom
Copy link

Hello there,

I am wondering if can set a http/https proxy for openwhisk-cli.

I search document of repo:openwhisk and found there is some related instruction for setting it.

I set the mentioned env variable HTTPS_PROXY in one of my terminal by export HTTPS_PROXY=127.0.0.1:8080, where the 127.0.0.1:8080 is the address of my web proxy.

Then when I invoke an action wsk action invoke -r {action_name}, the action flow does not through my proxy.

The web proxy work fine when I invoke the action by curl --proxy 127.0.0.1:8080 http://localhost:3233/api/v1/web/{action_name}

Could anyone please tell me how to set up a HTTP/HTTPS proxy for wsk?

@rabbah
Copy link
Member

rabbah commented Sep 23, 2021

I am not sure, I have not used this feature myself. What you did looks right according to the docs. Is the proxy http or https?

@GitHubDiom
Copy link
Author

The proxy I used is mitmproxy, which can intercept both HTTP and HTTPS requests.

The mitmproxy listens localhost:8080 by default, so I try to let the wsk to through the proxy by export HTTPS_PROXY=127.0.0.1:8080 in my terminal.

But it didn't work

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

2 participants