-
Notifications
You must be signed in to change notification settings - Fork 323
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] Adjust ChromeDriver command to beta releases #644
Conversation
is there no HTTPS link we can download from? |
The download URL itself has HTTPS: https://github.com/laravel/dusk/blob/5.0/src/Console/ChromeDriverCommand.php#L47 We are only using the HTTP URL to get the latest version number. The regular expression limits it to digits and dots, so I think this should be secure. Do you see a possible MITM vulnerability? |
not necessarily, just more of an "always use HTTPS to be safe" comment. |
Unfortunately, https://chromedriver.chromium.org/home doesn't work. |
@staudenmeir could we maybe use Guzzle instead of the |
@driesvints I don't think there's a difference in security. I chose |
I believe the latest stable release version can also be found at https://chromedriver.storage.googleapis.com/LATEST_RELEASE (see https://chromedriver.storage.googleapis.com/index.html). Well, at least this version matches the latest stable version from http://chromedriver.chromium.org/home. |
@Wiejeben Last week, the From http://chromedriver.chromium.org/downloads/version-selection:
|
Slight tangent I've been thinking would it not be better to build in a possible detection mechanism for which chrome version you have installed anyways? E.g. for Mac, we can expect the default location to be |
@peterfox I've been experimenting with that a while ago, it's definitely feasible. I wouldn't make it the default behavior, but we could add an option like |
@peterfox I was thinking similarly for CI environments too, where their image installs a version we don't control. It'd be nice to just-use-it, or if dusk thinks it's too outdated "then" it can intelligently grab a compatible one. |
@staudenmeir I agree and was also thinking a |
@peterfox The optional path is a great idea. |
I've added the Chrome version detection to my updater package: staudenmeir/dusk-updater |
The first ChromeDriver beta version has been released and the ChromeDriver command would now download it by default. That's not really useful, as it doesn't work with the stable version of Chrome.
As suspected in #643 (comment), the index page doesn't allow us to differentiate between stable and beta releases. We can get the latest stable version by parsing http://chromedriver.chromium.org/home (which hopefully keeps the current structure).
The command hasn't been released yet, so this is not a breaking change.