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

[5.0] Add proxy support to the 'dusk:install' command #659

Merged
merged 12 commits into from
Jul 9, 2019

Conversation

aand18
Copy link
Contributor

@aand18 aand18 commented Jul 8, 2019

Running php artisan dusk:install fails behind a proxy.

This commit adds two new options:

  • --proxy=PROXY_ADDRESS - e.g. --proxy=tcp://127.0.0.1:9000, the address gets passed to file_get_contents() via stream context

  • --ssl-no-verify - skips SSL certificate verification by file_get_contents(); useful when the proxy replaces the original SSL certificate with it's own for HTTPS traffic inspection. In that case the dusk:install command fails:

 ErrorException  : file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

PS: I could not test this commit without a proxy! Please test the defaults (no proxy) before merging.

Currently 'php artisan dusk:install' fails if you are behind a proxy. This commit adds two new options:
 --proxy= - e.g. "--proxy=tcp://127.0.0.1:9000" - is passed to file_get_contents() via stream context
 --ssl-no-verify - skips SSL certificate verification; useful when the proxy replaces the original SSL certificate with it's own for HTTPS traffic inspection
@driesvints driesvints changed the title Add proxy support to the 'dusk:install' command [5.0] Add proxy support to the 'dusk:install' command Jul 8, 2019
@staudenmeir
Copy link
Contributor

Should we also support proxies with authentication?

@taylorotwell taylorotwell merged commit e4d760e into laravel:5.0 Jul 9, 2019
@aand18
Copy link
Contributor Author

aand18 commented Jul 9, 2019

Should we also support proxies with authentication?

I'm not sure how complicated it can get to implement (there are various types of proxy auth).
Currently, with my set-up, I'm not able to test it.

Also,

PS: I could not test this commit without a proxy! Please test the defaults (no proxy) before merging.

Bye

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

Successfully merging this pull request may close these issues.

3 participants