- Issue created by @tedbow
- 🇺🇸United States phenaproxima Massachusetts
A hard requirement on the php_openssl extension
This can be as simple as adding a requirement on
ext-openssl
in our composer.json. - 🇺🇸United States tedbow Ithaca, NY, USA
re #5 I am not sure if Catch meant a "hard" requirement in that way.
If we added
ext-openssl
our Composer.json it would mean that if distro's composer.json haddrupal/automatic_updates
as a requirement then the distro could only be used in cases where ext-openssl was available even if some people(or most) would use that distro without wanting to use Automatic Updates or Package manager in any wayBut more importantly if HTTPS becomes a requirement for package manager(which I think it will) in core we would NOT want to add it to core composer.json file. Since this would make a requirement for running package manager now a requirement for installing Drupal. We already have a few requirements for package manager that don't stop you from otherwise running Drupal, mostly a writeable codebase and access to the Composer executable.
- 🇬🇧United Kingdom catch
By hard requirement I meant in hook_requirements() - could be an install error in contrib, then we'd need to figure out in the core https issue whether it stays like that, or becomes a warning etc.
We can't put an openssl requirement in core's composer.json since that would prevent sites installing core at all even if they don't want to use package_manager, so would have to be hook_requirements() there anyway.
- 🇺🇸United States tedbow Ithaca, NY, USA
So I did some investigating and manual testing and basically our current state is fine but these extra test will give better error messages
- If a composer.json has
"disable-tls": true,
thencomposer config secure-http
whether or not is setSee https://getcomposer.org/doc/06-config.md#disable-tls
Enabling this will implicitly disable the secure-http option.
- I manually changed package_manager/tests/fixtures/fake_site/composer.json to have
"disable-tls": true,
and indeed our kernel tests will fail because of validation error inComposerSettingsValidator
because of 1). this happens in 8.x-2.x and 3.0.x - I manually tried making a composer project and use our 8.x-2.7 version and it also failed status checks because of the
ComposerSettingsValidator
If failed if set just
"disable-tls": true,
and"disable-tls": true, "secure-http": true,
Even here
secure-http
reports as false becausedisable-tls
overrides it as intended.
- If a composer.json has
- Assigned to omkar.podey
- @omkarpodey opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 9:47am 4 April 2023 - 🇮🇳India omkar.podey
It was indeed the
JsonProcessOutputCallback
failing on warning messages. - 🇮🇳India omkar.podey
I have a work around until 📌 Allow JsonProcessOutputCallback and other Composer runner callbacks to gracefully handle deprecated command options Fixed gets in (which i think should be merged first).
- 🇺🇸United States phenaproxima Massachusetts
I think this looks pretty good generally. There are a few small things I'd like to clean up, but I think this is otherwise quite solid.
The one thing that really needs to be fixed is that we need to explain in a comment that
disable-tls
andsecure-http
are linked, because that it not at all obvious, and without that context, the logic is confusing. - Assigned to omkar.podey
- Status changed to Needs work
over 1 year ago 5:52am 5 April 2023 - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:29am 5 April 2023 - Status changed to Needs work
over 1 year ago 6:45pm 6 April 2023 - 🇺🇸United States tedbow Ithaca, NY, USA
Need to merge in 3.0.x with fixes to 📌 Allow JsonProcessOutputCallback and other Composer runner callbacks to gracefully handle deprecated command options Fixed
- Assigned to omkar.podey
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:28am 7 April 2023 - Status changed to Needs work
over 1 year ago 5:42pm 11 April 2023 - Assigned to tedbow
- Status changed to Needs review
over 1 year ago 10:35am 13 April 2023 - Status changed to Needs work
over 1 year ago 9:27am 17 April 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
also this was discussed in the scrum.
Can you please summarize what was said in that meeting on the issue? Thanks! 🙏
- Status changed to Needs review
over 1 year ago 12:06pm 18 April 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
#25:
make a follow-up to merge
ComposerValidator
andComposerSettingsValidator
into a single validator.📌 Merge ComposerSettingsValidator into ComposerValidator Fixed 👍 — linking.
- Status changed to Needs work
over 1 year ago 12:54pm 18 April 2023 - Assigned to omkar.podey
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 7:46am 19 April 2023 - Status changed to RTBC
over 1 year ago 7:50am 19 April 2023 - Assigned to omkar.podey
- Status changed to Needs work
over 1 year ago 12:32pm 19 April 2023 - 🇺🇸United States phenaproxima Massachusetts
Very little to complain about here, but we do need a few changes (one explanatory comment, one tiny revert, and one optimization).
- last update
over 1 year ago 727 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:05am 20 April 2023 - last update
over 1 year ago 727 pass - Status changed to RTBC
over 1 year ago 10:08am 20 April 2023 - last update
over 1 year ago 728 pass - Status changed to Needs work
over 1 year ago 1:50pm 20 April 2023 - 🇺🇸United States phenaproxima Massachusetts
This needs an issue summary update before commit. The summary mentions openssl and adding another validator, which was clearly not needed; can we remove all mention of that so that the issue describes what I'm about to commit?
- Status changed to Needs review
over 1 year ago 8:41am 21 April 2023 - Status changed to RTBC
over 1 year ago 11:04am 21 April 2023 - last update
over 1 year ago 754 pass - last update
over 1 year ago 758 pass - last update
over 1 year ago 758 pass -
phenaproxima →
committed aaa3f3f9 on 3.0.x authored by
omkar.podey →
Issue #3351247 by omkar.podey, phenaproxima, tedbow, Wim Leers, catch:...
-
phenaproxima →
committed aaa3f3f9 on 3.0.x authored by
omkar.podey →
- Status changed to Fixed
over 1 year ago 11:46am 21 April 2023 - 🇬🇧United Kingdom catch
The issue summary says that #6 and #8 are why the MR doesn't handle the openssl extension, but in #8 I said we should do that in hook_requirements() instead of composer.json, not that we shouldn't do it at all, and I think if we're going to require https, we should check it there. I've opened 📌 Flag a warning during status check if the OpenSSL extension is not enabled Fixed .
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
👍 Bumped it to critical and added it to the roadmap. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.