-
Notifications
You must be signed in to change notification settings - Fork 121
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
CLI fails from behind proxy #1038
Comments
Same for me since |
Well, you seem to be the proxy tester 😄 I assume this is because PHP's stream functions need tcp://, while cURL needs http:// |
I guess so to.
TEST ALL THE PROXIES!!! 😛 |
Hmmm... the change to Api.php was to add |
I haven't found anything very clear yet, but here's an attempt ^ |
I've checked out the branch locally, ran http_proxy=http://localhost \
https_proxy=http://localhost \
PLATFORMSH_CLI_TOKEN=xxx-yyy-zzz \
php ./bin/platform project:info command, but it still says
|
Thanks, good point I can just try that myself. I've pushed an update, can you git pull and try again please? |
Looking better, i now get
which (again) makes sense since I don't actually have a proxy running. |
Thanks. Hm. It looks like Guzzle (5) doesn't do any adapting for this proxy setting. It might be more helpful (but also might be annoyingly 'magical') to check for |
Is there anything more that I can do/test? |
It's in release 3.65.3 so please try again with your gitlab! |
Hi again! I've tested the 3.65.3 release but it still fails :(
A quick search points here for a possible solution that I want to try, but I can't make out from the documentation how to configure/integrate this. Thanks for the help so far! |
The GitHub thing only works because they expose SSH over port 443 as well as 22 (https://docs.github.com/en/github/authenticating-to-github/using-ssh-over-the-https-port) I don't think we have an equivalent... I'll check. (but firstly.. does the GitHub thing work for you, e.g. for cloning GitHub repositories via SSH? your firewall may or may not be able to block SSH over any port) |
I've asked if SSH over 443 should work (asked because I don't have direct access to the build server so I can't try out myself) and the answer was "443 is open, until someone decides to turn on protocol inspection in the firewall" followed by the question if it isn't easier to just use https (over 443). |
We happen to support Git-over-HTTPS, via a custom authorization scheme. It doesn't have any particularly convenient client implementation.. essentially you'd want to send an HTTP header with For SSH to the container (and therefore |
Dear @pjcdawkins ; any new about git over https support ? Mandatory in my enterprise. Thanks |
Up |
When the environment variables
http_proxy
/https_proxy
are set, the CLI fails:Results in
I suspect that the change in
src/Service/Api.php
from #1037 was a bit overenthusiastic.To test this I've reverted that and ran the same command again. Now I got:
which makes sense since I don't actually run a proxy on my machine, but at least it seems to try to connect instead of just bailing.
The text was updated successfully, but these errors were encountered: