Page MenuHomePhabricator

Enforce exclusion of private IP addresses from $wmgThrottlingExceptions in CI
Closed, ResolvedPublic

Description

According to Mass account creation § Requesting temporary lift of IP cap, private IP addresses are not suitable for throttling exceptions:

Please check carefully the IP addresses the conference venue gives you.

If the IP address starts by 10. or by 192.168., this is a private address, used internally on the network, but not routable.

If the IP address is included between 172.16.0.0 and 172.31.255.255, this is also a private address.

Apparently this is not currently enforced in CI; this change with an 172.16.29.137 IP address was merged and deployed, and only afterwards reverted.

I think we should check for private IP addresses in CI rather than hoping that the reviewers or deployers will notice it.

Event Timeline

(No idea what a good tag for this task would be, to be honest. Wikimedia-Site-requests is my best guess.)

Change #1073487 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[operations/mediawiki-config@master] Check that throttling exceptions use valid public IP addresses

https://gerrit.wikimedia.org/r/1073487

Change #1073488 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[operations/mediawiki-config@master] DNM: Add various invalid IP ranges

https://gerrit.wikimedia.org/r/1073488

Change #1073488 abandoned by Hashar:

[operations/mediawiki-config@master] DNM: Add various invalid IP ranges

Reason:

That was to exercise Ic4701011bcc422f5e25a2378e5ccfa9f48f1a7f6

https://gerrit.wikimedia.org/r/1073488

Change #1073487 merged by jenkins-bot:

[operations/mediawiki-config@master] Check that throttling exceptions use valid public IP addresses

https://gerrit.wikimedia.org/r/1073487

Mentioned in SAL (#wikimedia-operations) [2024-09-18T13:09:24Z] <dreamyjazz@deploy1003> Started scap sync-world: Backport for [[gerrit:1073739|GrowthExperiments: enable Community Updates module in testwiki (T374577)]], [[gerrit:1073487|Check that throttling exceptions use valid public IP addresses (T374980)]], [[gerrit:1073790|Hide temp account IP address viewing right from non-temp account wikis (T369187)]], [[gerrit:1073586|Lift IP cap on 2024-10-07/08 for edit-a-thon (T374964)]]

Mentioned in SAL (#wikimedia-operations) [2024-09-18T13:11:53Z] <dreamyjazz@deploy1003> sgimeno, anzx, lucaswerkmeister-wmde, cscott, hnowlan, dreamyjazz: Backport for [[gerrit:1073739|GrowthExperiments: enable Community Updates module in testwiki (T374577)]], [[gerrit:1073487|Check that throttling exceptions use valid public IP addresses (T374980)]], [[gerrit:1073790|Hide temp account IP address viewing right from non-temp account wikis (T369187)]], [[gerrit:1073586|Lift IP cap on

Mentioned in SAL (#wikimedia-operations) [2024-09-18T13:20:33Z] <dreamyjazz@deploy1003> Finished scap sync-world: Backport for [[gerrit:1073739|GrowthExperiments: enable Community Updates module in testwiki (T374577)]], [[gerrit:1073487|Check that throttling exceptions use valid public IP addresses (T374980)]], [[gerrit:1073790|Hide temp account IP address viewing right from non-temp account wikis (T369187)]], [[gerrit:1073586|Lift IP cap on 2024-10-07/08 for edit-a-thon (T374964)]