Jump to content

Talk:Incidents/2026-10-21 PHP security update/Community

From Wikitech

Exceptions

Toolforge is available again for all users. Note that many deployments may be missing environment variables, so your webservice may need to be restarted:
toolforge webservice restart
And your jobs may have to be reloaded:
toolforge jobs dump > jobs.yaml && toolforge jobs flush && toolforge jobs load jobs.yaml

Tools using the php8.4 and php8.2 webservice types may now be re-enabled.

The php7.4 type and older (php5, php7.2, php7.3) will not be updated; tool developers must upgrade their tool to a later PHP version.

Tools using PHP via the Build Service (buildpacks, php versions >= 8.2.35, 8.3.36, 8.4.27 or 8.5.12) are all now enabled, if you had an image relying on the old PHP version it will have been deleted, so you might need to rebuild it. Support for installing PHP using Aptfile or project.toml remains disabled.

A list of Toolforge tools using older versions of PHP is here.

Please specify if your tool doesn't run PHP and/or if you need help or find problems bringing it back up.

Why not just enable Toolforge without PHP images

From what I recall, TF works with the images enabled in the web configuration. You could try disabling, removing, or renaming those images, then running TF again. Afterward, you can work on restoring the PHP services by upgrading images.

I believe the information about what image is available in the configuration files, so admins may be able to find it using grep. There should be no need for people manually writing which service doesn't use PHP (unless they enable PHP, but not actually using it). Personally I don't even remember what my setup is. Would be easier if some TF admin would post a list. Nux (talk) 08:33, 22 October 2026 (UTC)Reply

That would only cover a subset of tools (those using web images) - component based tools would require the images analysis (SBOM) to see what software is installed.
I do agree it would be easier to just block all web traffic, allowing access to check tool users/files and then make a case for un-blocking (would also allow patching), alas that is not the current strategy. damian (talk) 11:17, 22 October 2026 (UTC)Reply
Aren't you required to use pre-built images on Toolforge (I'm not talking about VPS)? I remember there were at least a few times when I had to change my web config for Toolforge tools and migrate stuff. There seems to be a closed list of images, and not a huge one at that. The list is form: Help:Toolforge/Kubernetes#Container images.
The list of images doesn't even seem to include PHP now, so... Why is TF still down? I mean, the tools that are disabled due to the missing PHP image could at least respond with an HTML web page. This is something that was already in place, I think. When my web server instance crashed, I had to start it manually, and until I did that, there was a nice message (formatted and all that). Why not just use that? I think that would be better then just a generic browser message. Nux (talk) 12:53, 22 October 2026 (UTC)Reply
@Nux No, the recommendation now at Help:Toolforge/Web is to build your own image using the Toolforge Build Service. There's also the ability to run other web servers on the prebuilt images by passing a script to the webservice (see Help:Toolforge/Web#Other / generic web servers). I'm not sure what your "closed list of images" is, but it doesn't seem to include most of the webservice images that were available a month ago (as listed at Module:Toolforge images/data.json). Ahecht (talk) 13:49, 22 October 2026 (UTC)Reply
And how many people are actually using this? I'd guess not much since all final depreciation messages always end in a long list of tools that were not upgraded yet 😉 Nux (talk) 15:45, 22 October 2026 (UTC)Reply
There are nearly 800 artefacts (currently store 1 per component), personally I have 68 components, so I would say there is a reasonable amount of usage.
You could also compare nfs vs non-nfs worker distribution (you can use nfs with build services, but not the other way around, though the nfs workers can run non-nfs containers), that is roughly 500 to 2500, so again a non-insignificant amount.
Anyway, you will be pleased to know TF is coming back online, currently with partial tool support. damian (talk) 13:06, 23 October 2026 (UTC)Reply
Unless there is a solution I'm not seeing, one downside of the containerized Build Service is that it's quite slow to rebuild and deploy. So while testing and iterating on something that needs to run on the Wikimedia network side, this can be a real bummer compared to directly working with "webservice restart" and k8s pods. The documentation for Build Service itself says, "Testing locally is not fully supported. Toolforge injects some buildpacks and runs some fixes at runtime that are not available in the builder image." So that also limits somewhat of what you can do for local testing. - Fuzheado (talk) 14:16, 23 October 2026 (UTC)Reply
@Fuzheado, the build service is not currently designed to be a quick iteration platform of any kind. Every project is a unique snowflake, but I would personally recommend developing locally, probably using an OCI/Docker container system to isolate your local runtime from the rest of your desktop/laptop. Ssh tunneling can be used to connect your local environment to things like the Wiki Replicas that cannot be reached over the open internet. For a very large percentage of tools the intricacies of the build service created images should not matter. If you'd like to talk about specific local development challenges you have we should probably start a new discussion somewhere. The cloud mailing list might not be a bad choice so various folks could info dump on how they do what they do. If neat things are disclosed we could try to document them on wiki somewhere to make sharing tips easier. -- BryanDavis (talk) 20:38, 23 October 2026 (UTC)Reply
Thanks, yes SSH tunneling is what I have been doing especially when working with ML inference on LiftWing where the budget for requests from Toolforge servers is more generous than from anonymous IPs. For a few projects when I'm well past test mode I have moved to the Build Service. Basing the deployment on a well-kept Git repo seems a lot more sustainable and repeatable. - Fuzheado (talk) 20:52, 23 October 2026 (UTC)Reply
Well, I spoke too soon now that https://lists.wikimedia.org/hyperkitty/list/cloud-announce@lists.wikimedia.org/thread/TCUZGJX6H4OYZKOIPNVNKB63LIPGQFG6/ is out. :) Definitely a case where taking matters into your own hands and using modern/patched versions via Build Service is a better route.Fuzheado (talk) 21:48, 23 October 2026 (UTC)Reply
Yeah, the prebuilt images are still stuck on node20. Ahecht (talk) 03:02, 24 October 2026 (UTC)Reply
Buildpack should support the patched version - the nodejs and python updates where included in the builder update to get the patched PHP version. damian (talk) 18:57, 24 October 2026 (UTC)Reply

Centralnotice

Sorry to post in here if this is not the right place to do so, but shouldn't the centralnotice be translatable, because not every registered user understands English. Thanks! ToadetteEdit (talk) 16:47, 22 October 2026 (UTC)Reply

you can do this Wargo (talk) 18:14, 22 October 2026 (UTC)Reply
Thanks and it appears it has already been translated. ToadetteEdit (talk) 08:41, 23 October 2026 (UTC)Reply

No healthy upstream

My non-PHP tools were all getting a no healthy upstream error until I did a webservice restart. Is this to be expected? Ahecht (talk) 21:53, 22 October 2026 (UTC)Reply

Same with me - had to do that with a number of my node and plain web served apps. - Fuzheado (talk) 22:02, 22 October 2026 (UTC)Reply
I found that somehow my pods did not have an environment loaded correctly so $HOME was not set, and that caused the repeated failure. A restart gave it back a usable env and all was well. - Fuzheado (talk) 22:49, 22 October 2026 (UTC)Reply

php 7.4 still set as default

I noticed that the command "toolforge webservice start" still uses php 7.4 as the default resulting in all tools breaking if they use the default webservice. GPSLeo (talk) 16:15, 23 October 2026 (UTC)Reply

This needs a new release of webservice-cli to change, until then you can `toolforge webservice php8.4 start`. Tracked under T442199 to make the change. damian (talk) 17:01, 23 October 2026 (UTC)Reply
Yes Done The tool now requires the type to be specified for anything other than `status`. damian (talk) 17:17, 28 October 2026 (UTC)Reply
@damian even if a service manifest exists? Ahecht (talk) 17:47, 28 October 2026 (UTC)Reply
A manifest or a service template file will still work as previously. Taavi-WMF (talk) 17:56, 28 October 2026 (UTC)Reply

Xtools

For several days now, I have been trying to use the edit count tool to check my total number of edits, but I have been unable to do so because the tool will not open. Could you provide some information regarding this specific tool—specifically, how much longer it might be before it is available again so that I can check my accumulated edits? --Leonpolanco (talk) 22:09, 23 October 2026 (UTC)Reply

In the mean time you can check your edits here: https://en.wikipedia.org/wiki/Special:CentralAuth/Leonpolanco Nux (talk) 00:37, 24 October 2026 (UTC)Reply
Yes Done As of around ~16 hours ago. Many thanks to Cloud Services for giving me special treatment to fix it on my end so we could get it back up and running. — MusikAnimal talk 18:10, 24 October 2026 (UTC)Reply

CropTool

I understand that this process takes time and a lot of hard work. However, CropTool has been out of service for five days now. I am not sure if fixing the issue with this tool is highly complex, or if those in charge of this tool haven't noticed yet that it needs to be resolved. Please, provide us with some feedback. Thank you. Leonprimer (talk) 15:22, 25 October 2026 (UTC)Reply

Hi @Leonprimer, CropTool seems to be running on Toolforge, so in theory it might be enablable. It is probably a question for the maintainer(s) at this time ( should be the list). However, according to the source code, it uses Build Service, which is not yet fully in service, and it will take a while to get there. So, the maintainers might be waiting on that as well. Best, Martin Urbanec (talk) 20:27, 25 October 2026 (UTC)Reply
Build service has PHP support for the patched versions, CropTool does not appear to pin a specific version (8.2 branch) so will likely build.
It will require a maintainer (possibly Danmichaelo) to rebuild the images to get the patched version and coordinate with admins to get it removed from the image block list. damian (talk) 21:03, 25 October 2026 (UTC)Reply
My fork of this tool (https://croptool2.toolforge.org/) is up now. bawolff (talk) 13:18, 26 October 2026 (UTC)Reply
The block has been lifted, the tool should be able to build and run again. Let us know if you find any issuses. DCaro (WMF) (talk) 13:21, 26 October 2026 (UTC)Reply
@Danmichaelo is mostly inactive these days. I think @Taavi-WMF helped with the kubernetes migration of this tool, not sure if he's able to help here. Bawolff, you might want to look into being added as a maintainer of that tool (worst-case via Toolforge/Abandoned tool policy), especially since you've added quite a bit of code to it. Ahecht (talk) 19:21, 26 October 2026 (UTC)Reply
I tried asking Danmichaelo if he would make be a maintainer. I did not get a response so we went with forking instead (I say we because i am maintaining this on behalf of WikiProject Med. Other people associated with WikiProject med are also involved). I think at that point Dan was still active enough to prevent forced adoption. At this point most links have changed to croptool2 and it has been developed quite a bit. If nobody is around to restart the original croptool, perhaps it makes sense to redirect the tool to croptool2. Perhaps user:Doc James has opinions. bawolff (talk) 02:01, 27 October 2026 (UTC)Reply
Yah happy to have the original croptool redirect to croptool2. If Danichaelo become active again we can reconsider. By the way the croptool2 is working well for me today. Doc James (talk) 02:09, 27 October 2026 (UTC)Reply
Seems like the best way forward is an Help:Toolforge/Abandoned tool policy request for the original tool name, then. Taavi-WMF (talk) 09:48, 27 October 2026 (UTC)Reply

Thank you all. https://croptool2.toolforge.org/ is working well. Can you lift the block of the original version (https://croptool.toolforge.org/) too? I prefer to work with this last one. Leonprimer (talk) 03:52, 27 October 2026 (UTC)Reply

PAWS tool

Could you check why the PAWS tool (https://hub-paws.wmcloud.org/) is still down? Has no one looked into this yet? Thanks. Leonprimer (talk) 03:59, 27 October 2026 (UTC)Reply

PAWS is actively worked on. Taavi-WMF (talk) 09:46, 27 October 2026 (UTC)Reply
For completeness, PAWS is back and operational. Fuzheado (talk) 12:07, 30 October 2026 (UTC)Reply

Commons Delinker log

The CommonsDelinker log has not been working properly for some time; this is likely related to the update. (commons-delinquent.toolforge.org). Could someone please look into this, maybe {{ping|Grin}}? Being able to view the log is sometimes extremely helpful for Commons administrators. Thank you and best regards, Ziv (talk) 11:34, 29 October 2026 (UTC)Reply

Ping did not work first time. @Grin Ziv (talk) 11:37, 29 October 2026 (UTC)Reply
Hmm, possibly. Multiple things were broken, the databases the bot used were changed, and it seems the log db needs a review too. I ask a little patience, I'll check soon. -- Grin (talk) 23:35, 29 October 2026 (UTC)Reply
@Grin: With many thanks. Ziv (talk) 07:44, 30 October 2026 (UTC)Reply
Shall be fine now. Thanks! -- Grin (talk) 17:40, 6 November 2026 (UTC)Reply
Thank you very much that everything is back to being working perfect. Best regards, Ziv (talk) 21:40, 6 November 2026 (UTC)Reply